/* =========================================================
   SHRiL INFOTECH — CERTIFICATE VERIFICATION PAGE
   Modern Premium UI
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #06b6d4;
    --success: #10b981;

    --text-dark: #172033;
    --text: #475569;
    --muted: #94a3b8;

    --bg: #f4f7fb;
    --white: #ffffff;
    --border: #e5eaf1;

    --shadow:
        0 20px 60px rgba(15, 23, 42, 0.08),
        0 4px 15px rgba(15, 23, 42, 0.04);
}


/* =========================================================
   BODY
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.verify-bg {
    margin: 0;
    min-height: 100vh;

    font-family: 'Inter', sans-serif;

    color: var(--text-dark);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37, 99, 235, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(6, 182, 212, 0.08),
            transparent 30%
        ),
        #f5f8fc;

    display: flex;
    flex-direction: column;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   TOP VERIFICATION STRIP
   ========================================================= */

.verify-strip {
    width: 100%;

    padding: 14px 20px;

    background: linear-gradient(
        90deg,
        #eff6ff,
        #ecfeff,
        #f0fdf4
    );

    border-bottom: 1px solid rgba(37, 99, 235, 0.08);

    color: #553348;

    text-align: center;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: 0.1px;

    animation: slideDown 0.7s ease both;
}

.verify-strip i {
    margin-right: 7px;

    color: var(rgb(160, 6, 111));

    font-size: 15px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.verify-container {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    padding: 55px 20px 25px;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.verify-card {
    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(226, 232, 240, 0.9);

    border-radius: 28px;

    padding: 42px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;

    animation: cardReveal 0.8s cubic-bezier(.2,.8,.2,1) both;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Decorative top line */

.verify-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #06b6d4,
        #10b981
    );
}


/* Soft decorative circle */

.verify-card::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -130px;
    right: -100px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.035);

    pointer-events: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.verify-header {
    text-align: center;

    padding-bottom: 30px;

    position: relative;

    z-index: 1;
}


/* Logo */

.verify-header img {
    width: 76px;
    height: 76px;

    object-fit: contain;

    margin-bottom: 18px;

    border-radius: 18px;

    padding: 8px;

    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.verify-header img:hover {
    transform: translateY(-5px) scale(1.04);

    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.16);
}


/* Student name */

.verify-name {
    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: clamp(25px, 4vw, 34px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.7px;

    color: #172033;

    margin-bottom: 9px;
}


/* Course */

.verify-course {
    color: #64748b;

    font-size: 15px;

    font-weight: 500;

    margin-bottom: 18px;
}


/* =========================================================
   VERIFIED BADGE
   ========================================================= */

.verify-badge {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 14px;

    border-radius: 999px;

    background: #ecfdf5;

    border: 1px solid #bbf7d0;

    color: #059669;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(16, 185, 129, 0.08);

    animation: badgePop 0.6s 0.3s ease both;
}

.verify-badge i {
    font-size: 14px;
}


/* =========================================================
   DETAILS GRID
   ========================================================= */

.details-grid {
    display: grid;

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

    gap: 14px;

    padding: 25px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* Details item */

.details-item {
    padding: 18px 19px;

    background: #f8fafc;

    border: 1px solid #edf1f6;

    border-radius: 16px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.details-item:hover {
    transform: translateY(-3px);

    background: #ffffff;

    border-color: rgba(37, 99, 235, 0.16);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.06);
}


/* Label */

.details-label {
    margin-bottom: 7px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


/* Value */

.details-value {
    color: #1e293b;

    font-size: 14px;

    line-height: 1.5;

    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   CERTIFICATE REFERENCE
   ========================================================= */

.cert-ref {
    display: flex;

    justify-content: center;

    margin: 24px 0 22px;
}

.cert-ref code {
    display: inline-flex;

    align-items: center;

    padding: 9px 15px;

    border-radius: 10px;

    background: #f1f5f9;

    border: 1px solid #e2e8f0;

    color: #475569;

    font-family: 'Inter', sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.5px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.cert-ref code:hover {
    background: #eff6ff;

    border-color: #bfdbfe;

    color: #2563eb;
}


/* =========================================================
   ACTION BUTTON AREA
   ========================================================= */

.verify-actions {
    text-align: center;

    padding-top: 2px;
}


/* =========================================================
   MAIN BUTTON
   ========================================================= */

.btn-main {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 155px;

    margin: 5px 4px;

    padding: 12px 19px;

    border: 1px solid transparent;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #0ea5e9
    );

    color: #ffffff !important;

    text-decoration: none;

    font-family: 'Inter', sans-serif;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.18);

    position: relative;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


/* Shine animation */

.btn-main::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.28),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.btn-main:hover::before {
    left: 140%;
}

.btn-main:hover {
    transform: translateY(-3px);

    filter: brightness(1.04);

    box-shadow:
        0 13px 28px rgba(37, 99, 235, 0.25);
}

.btn-main:active {
    transform: translateY(-1px);
}


/* PDF icon */

.btn-main i {
    font-size: 14px;
}


/* =========================================================
   OUTLINE BUTTON
   ========================================================= */

.btn-outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 105px;

    margin: 7px 3px 0;

    padding: 10px 17px;

    border: 1px solid #dbe3ed;

    border-radius: 11px;

    background: #ffffff;

    color: #334155 !important;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-outline:hover {
    transform: translateY(-3px);

    background: #f8fbff;

    border-color: #93c5fd;

    color: #2563eb !important;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.09);
}


/* =========================================================
   FOOTER
   ========================================================= */

.verify-footer {
    margin-top: 24px;

    padding: 0 10px 15px;

    color: #94a3b8;

    font-size: 12px;

    text-align: center;

    animation: fadeIn 1s 0.5s ease both;
}


/* =========================================================
   NOT FOUND
   ========================================================= */

.verify-card .text-center {
    padding: 35px 10px;
}

.verify-card .text-center h5 {
    margin: 0;

    font-family: 'Plus Jakarta Sans', sans-serif;

    color: #334155;

    font-size: 20px;

    font-weight: 700;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes cardReveal {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes slideDown {

    from {
        opacity: 0;

        transform: translateY(-12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


@keyframes badgePop {

    0% {
        opacity: 0;

        transform: scale(0.8);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;

        transform: scale(1);
    }
}


@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 700px) {

    .verify-container {
        padding-top: 35px;
    }

    .verify-card {
        padding: 30px 24px;

        border-radius: 23px;
    }

    .details-grid {
        gap: 10px;
    }

    .details-item {
        padding: 15px;
    }

    .btn-main {
        min-width: 140px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .verify-strip {
        padding: 12px 15px;

        font-size: 12px;

        line-height: 1.5;
    }

    .verify-container {
        padding: 25px 12px 15px;
    }

    .verify-card {
        padding: 27px 17px;

        border-radius: 20px;
    }

    .verify-header {
        padding-bottom: 23px;
    }

    .verify-header img {
        width: 68px;
        height: 68px;

        margin-bottom: 14px;
    }

    .verify-name {
        font-size: 24px;

        letter-spacing: -0.4px;
    }

    .verify-course {
        font-size: 13px;
    }

    .details-grid {
        grid-template-columns: 1fr;

        padding: 20px 0;

        gap: 9px;
    }

    .details-item {
        padding: 14px 15px;

        border-radius: 13px;
    }

    .details-label {
        font-size: 10px;
    }

    .details-value {
        font-size: 13px;
    }

    .cert-ref {
        margin: 20px 0;
    }

    .cert-ref code {
        max-width: 100%;

        font-size: 10px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .verify-actions {
        display: flex;

        flex-wrap: wrap;

        justify-content: center;
    }

    .btn-main {
        width: 100%;

        margin: 4px 0;

        min-width: 0;

        padding: 12px 15px;
    }

    .btn-outline {
        flex: 1;

        min-width: 90px;

        margin-top: 8px;
    }

    .verify-footer {
        font-size: 11px;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
   ========================================================= */

@media (max-width: 350px) {

    .verify-card {
        padding: 23px 13px;
    }

    .verify-name {
        font-size: 21px;
    }

    .btn-outline {
        font-size: 11px;

        padding: 9px 10px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

:root {
  --navy: #0e2b54;
  --navy-light: #163a6e;
  --gold: #c49b3c;
}

body { background: #f4f6f9; }

/* ---------- Admin ---------- */
.admin-navbar { background: var(--navy); }
.admin-navbar .nav-link { color: rgba(255,255,255,.85); }
.admin-navbar .nav-link:hover { color: #fff; }

.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-outline-primary { color: var(--navy); border-color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); }

.stat-card { border-left: 4px solid var(--gold); }

.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a8a 100%);
}
.login-card { border-radius: 16px; }


/* ---------- Mobile refinements ---------- */
@media (max-width: 576px) {
  .verify-card .card-body { padding: 1.75rem 1.25rem !important; }
  .details-list .d-flex { flex-wrap: wrap; }
  .details-list .d-flex span:last-child { text-align: right; word-break: break-word; }
  .login-card .card-body { padding: 1.75rem 1.25rem !important; }
  .admin-navbar .navbar-brand { font-size: 1rem; }
  .stat-card .fs-2 { font-size: 1.6rem !important; }
}
