/* --------------------------------------------------------------------------
   E.H Certificate Management System
   -------------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}


html {
    background: #f3f5f7;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Tahoma,
        "Segoe UI",
        sans-serif;

    background: #f3f5f7;
    color: #1f2937;

    line-height: 1.6;
}


.page {
    min-height: 100vh;
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.navbar {
    background: #123b5d;
    color: white;
    padding: 18px 25px;
}


.navbar-inner {
    max-width: 1100px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}


.brand {
    font-size: 20px;
    font-weight: bold;
}


.brand-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}


.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.nav-links a {
    color: white;
    text-decoration: none;

    padding: 8px 12px;

    border-radius: 6px;
}


.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}


/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    max-width: 1100px;

    margin: 30px auto;

    padding: 0 20px;
}


.card {
    background: white;

    padding: 28px;

    border-radius: 12px;

    box-shadow:
        0 3px 16px rgba(0, 0, 0, 0.07);

    margin-bottom: 24px;
}


h1,
h2,
h3 {
    margin-top: 0;
}


h1 {
    color: #123b5d;
}


h2 {
    color: #234e70;
}


.subtitle {
    color: #667085;
    margin-bottom: 25px;
}


.break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* --------------------------------------------------------------------------
   Statistics
   -------------------------------------------------------------------------- */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.stat {
    background: #f8fafc;

    border: 1px solid #e5e7eb;

    padding: 20px;

    border-radius: 10px;
}


.stat-title {
    color: #667085;
    font-size: 14px;
}


.stat-number {
    font-size: 30px;
    font-weight: bold;

    margin-top: 8px;

    color: #123b5d;
}


/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

label {
    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    font-weight: bold;

    color: #344054;
}


input {
    width: 100%;

    padding: 12px 14px;

    border:
        1px solid #d0d5dd;

    border-radius: 7px;

    font-size: 16px;

    background: white;
}


input:focus {
    outline: none;

    border-color: #1769aa;

    box-shadow:
        0 0 0 3px rgba(23, 105, 170, 0.12);
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

button,
.button {
    display: inline-block;

    margin-top: 20px;

    padding: 11px 18px;

    border: none;

    border-radius: 7px;

    background: #1769aa;
    color: white;

    text-decoration: none;

    cursor: pointer;

    font-size: 15px;

    font-family: inherit;
}


button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible {
    opacity: 0.9;
}


.button.green {
    background: #198754;
}


.button.red {
    background: #dc3545;
}


.button.gray {
    background: #667085;
}


.button.light {
    background: #e9eef3;
    color: #123b5d;
}


.button.small {
    margin-top: 0;

    padding: 7px 11px;

    font-size: 13px;
}


.actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    align-items: center;
}


form {
    margin: 0;
}


/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
}


th,
td {
    padding: 13px 10px;

    border-bottom:
        1px solid #eaecf0;

    text-align: right;

    vertical-align: middle;
}


th {
    background: #f8fafc;
    color: #344054;
}


.ltr {
    direction: ltr;
    text-align: left;
}


/* --------------------------------------------------------------------------
   Status
   -------------------------------------------------------------------------- */

.status {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;
}


.status-valid {
    background: #d1e7dd;
    color: #0f5132;
}


.status-revoked {
    background: #f8d7da;
    color: #842029;
}


/* --------------------------------------------------------------------------
   Certificate ID
   -------------------------------------------------------------------------- */

.certificate-id {
    direction: ltr;

    text-align: center;

    font-size: 30px;

    font-weight: bold;

    color: #1769aa;

    letter-spacing: 1px;

    padding: 18px;

    background: #f8fafc;

    border-radius: 8px;

    overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   QR Code
   -------------------------------------------------------------------------- */

.qr-container {
    text-align: center;
}


.qr {
    width: 280px;
    height: 280px;

    max-width: 100%;

    image-rendering: pixelated;

    border: 1px solid #ddd;

    padding: 10px;

    background: white;
}


/* --------------------------------------------------------------------------
   PowerPoint data
   -------------------------------------------------------------------------- */

.powerpoint-data {
    direction: ltr;
}


.copy-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;
}


.copy-label {
    width: 180px;

    font-weight: bold;

    color: #344054;
}


.copy-value {
    flex: 1;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    padding: 10px;

    border-radius: 6px;

    word-break: break-word;
}


.copy-button {
    margin-top: 0;

    min-width: 75px;
}


.copy-all {
    margin-bottom: 20px;
}


/* --------------------------------------------------------------------------
   Verification
   -------------------------------------------------------------------------- */

.verification-box {
    text-align: center;

    padding: 25px;
}


.valid-title {
    color: #198754;

    font-size: 28px;

    font-weight: bold;
}


.revoked-title {
    color: #dc3545;

    font-size: 28px;

    font-weight: bold;
}


.not-found-title {
    color: #dc3545;

    font-size: 28px;

    font-weight: bold;
}


/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */

.empty {
    text-align: center;

    color: #667085;

    padding: 30px;
}


.info {
    padding: 15px;

    background: #e8f1f8;

    color: #123b5d;

    border-radius: 8px;

    margin-bottom: 20px;
}


.warning {
    padding: 15px;

    background: #fff3cd;

    color: #664d03;

    border-radius: 8px;

    margin-bottom: 20px;
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    text-align: center;

    color: #667085;

    padding: 30px;

    font-size: 13px;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {

    .stats {
        grid-template-columns: 1fr;
    }


    .navbar-inner {
        flex-direction: column;

        align-items: flex-start;
    }


    .nav-links {
        width: 100%;
    }


    .nav-links a {
        background: rgba(255, 255, 255, 0.08);
    }


    table {
        display: block;

        overflow-x: auto;
    }


    .copy-row {
        flex-direction: column;

        align-items: stretch;
    }


    .copy-label {
        width: auto;
    }


    .certificate-id {
        font-size: 22px;
    }

}
