/* Info tanggal pengumuman di wrap countdown */
.countdown-date-info {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #3f3f3f6c;
    font-size: 0.7rem;
    margin-left: 8px;
}
/* Pengumuman sudut kiri bawah container */
.countdown-announcement-left {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    color: #000000;
    font-size: 0.7rem;
}
/* Pengumuman di countdown */
.countdown-announcement {
    font-weight: bold;
    color: #111;
    font-size: 1.1rem;
}
.countdown-footer-bar {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.container {
    position: relative;
    min-height: 100vh;
}

body:not(.admin-dashboard) .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}
/* SNBP Countdown Styles */
/* SNBP Countdown Styles */
.snbp-countdown-wrapper {
    position: relative;
    width: min(92vw, 700px);
    max-width: 700px;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(33,150,243,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 200px;
    z-index: 10;
    justify-content: center;
    align-items: center;
}
.snbp-countdown-top {
    background: #0d47a1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0 3px 0;
    flex: 0 0 80%;
    min-height: 180px;
}
.snbp-countdown-bottom {
    background: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    flex: 0 0 20%;
    min-height: 20px;
}
#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
}
.countdown-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.countdown-value {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: bold;
    color: #fff;
}
.countdown-separator {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-top: 0rem;
}
.countdown-label {
    font-size: 0.9rem !important;
    font-weight: 300 !important;
    letter-spacing: 0px;
    color: #fff;
}
.snbp-countdown-value {
    color: #fff;
    font-size: 5rem;
    font-weight: bold;
    margin: 0 6px;
}
.snbp-countdown-value {
    color: #fff;
    font-size: 10rem;
    font-weight: bold;
    margin: 0 6px;
}
@keyframes snbpPulse {
    0% { box-shadow: 0 4px 16px rgba(33,150,243,0.12); }
    100% { box-shadow: 0 8px 32px rgba(33,150,243,0.18); }
}
/* SNBP Search Form Styles - mirip dengan Countdown */
.snbp-search-wrapper {
    width: min(98vw, 720px);
    margin: 0 auto;
    border-radius: 0px;
    box-shadow: 0 18px 48px rgba(71, 69, 69, 0.39);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    z-index: 10;
}
.snbp-search-top {
    background: rgba(44, 44, 44, 0.741);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(24px, 4vw, 34px) clamp(24px, 5vw, 36px) clamp(18px, 3vw, 24px) clamp(24px, 5vw, 36px);
    gap: clamp(14px, 2.5vw, 18px);
}
.snbp-search-logo {
    width: clamp(150px, 22vw, 170px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.snbp-search-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.snbp-search-title {
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.2px;
    text-align: left;
    line-height: 1.05;
}
.snbp-search-header {
    width: 100%;
}
.snbp-search-subtitle {
    color: rgba(255, 255, 255, 0.467);
    font-size: clamp(0.98rem, 1.5vw, 1.05rem);
    margin: 10px 0 0 0;
    line-height: 1.6;
    max-width: 640px;
}
.snbp-search-bottom {
    background: rgba(43, 43, 43, 0.716);
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(24px, 4vw, 30px) clamp(24px, 5vw, 36px) clamp(24px, 4vw, 36px) clamp(24px, 5vw, 36px);
}
.snbp-search-form {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 24px);
    width: 100%;
    max-width: 640px;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.snbp-search-form input[type="text"],
.snbp-search-form input[type="date"] {
    font-size: 0.95rem;
    padding: clamp(10px, 2vw, 14px) clamp(12px, 2vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    outline: none;
    transition: all 0.25s ease;
    font-family: Arial, sans-serif;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}
.snbp-search-form #nisn {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.dob-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: clamp(6px, 1vw, 10px);
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.dob-row input[type="text"] {
    width: 100% !important;
}
.dob-divider {
    color: #ffffff8f;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    line-height: 1;
}
.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #63c7ff;
    display: block;
    margin-bottom: clamp(8px, 1.5vw, 10px);
    letter-spacing: 0.35px;
}
.snbp-search-form input[type="text"]::placeholder,
.snbp-search-form input[type="date"]::placeholder {
    color: #c6c6c675;
    opacity: 1;
}
.snbp-search-form input[type="text"]:focus,
.snbp-search-form input[type="date"]:focus {
    border-color: rgba(255, 255, 255, 0.95);
    color: #ffffff;
    background-color: #363636;
}
.snbp-search-form button {
    background: linear-gradient(135deg, #0086ff 0%, #0072d6 100%);
    color: #fff;
    font-size: 1.05rem;
    padding: clamp(12px, 2vw, 14px) clamp(20px, 3vw, 28px);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0;
    width: auto;
    min-width: clamp(200px, 25vw, 220px);
}
.snbp-search-form button:hover {
    box-shadow: 0 12px 24px rgba(0, 134, 255, 0.3);
    transform: translateY(-1px);
}
.button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 16px);
    margin-top: clamp(8px, 1.5vw, 10px);
    width: 100%;
    flex-wrap: wrap;
}
.button-container button {
    width: auto;
    min-width: clamp(200px, 25vw, 220px);
    flex: none;
}
.download-skl-text {
    color: #55b7ff;
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    padding: 0;
    border: none;
    background: transparent;
}
.download-skl-text:hover {
    color: #8ed3ff;
}
.download-skl-text.is-disabled {
    color: rgba(85, 183, 255, 0.45);
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive: Center alignment for laptop/desktop */
@media (min-width: 768px) {
    .snbp-search-top {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
    }
    .snbp-search-header {
        max-width: 100%;
    }
    .snbp-search-title {
        font-size: clamp(2.2rem, 3vw, 2.6rem);
    }
    .snbp-search-subtitle {
        margin-top: 10px;
    }
    .snbp-search-bottom {
        align-items: flex-start;
        justify-content: flex-start;
    }
    .button-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }
    .button-container button {
        width: auto;
        min-width: 220px;
    }
    .download-skl-text {
        width: auto;
        font-size: 0.95rem;
        text-align: right;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        justify-content: flex-end;
    }
}

/* Full-Screen Result Page Styles */
.result-page-wrapper {
    position: fixed;
    top: clamp(6px, 1.2vh, 12px);
    bottom: clamp(6px, 1.2vh, 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 16px);
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.result-page-top {
    width: 100%;
    flex: 0 0 auto;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-align: center;
}
.result-page-title {
    font-size: clamp(1.4rem, 3vw, 2.35rem);
    font-weight: bold;
    color: #fff;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    margin: 15px 0 0 0;
    word-break: break-word;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: slideUp 0.6s ease-out 0.5s both;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}
.result-page-title-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}
.result-page-title-logo {
    width: clamp(150px, 22vw, 170px);
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}
.result-page-bottom {
    width: 100%;
    flex: 1 1 auto;
    background: rgba(45, 45, 45, 0.84);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(20px, 4vh, 42px) clamp(16px, 4vw, 32px);
    overflow-y: auto;
}
.result-page-footer {
    width: 100%;
    flex: 0 0 auto;
    padding: 12px 16px;
    background: rgba(47, 46, 46, 0.796);
    border-top: 1px solid rgba(255, 255, 255, 0);
    box-sizing: border-box;
}
.result-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.result-label {
    font-size: 0.95rem;
    color: #00bfff;
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.result-name {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: left;
}
.result-nisn-large {
    font-size: 1.3rem;
    color: #00bfff;
    margin: 0 0 40px 0;
    font-weight: 500;
    letter-spacing: 1px;
}
.status-lulus-large {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
}
.status-tidak-lulus-large {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: #fff;
}
.result-status-large {
    font-size: 2.5rem;
    font-weight: bold;
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.result-back-button {
    display: block;
    margin: 0;
    padding: 12px 30px;
    background: #0d47a1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.result-back-button:hover {
    background: #0d47a1;
    box-shadow: 0 4px 12px rgba(13,71,161,0.3);
    transform: translateY(-2px);
}

.result-extra-note {
    width: 95%;
    margin-top: 14px;
    margin-left: -8px;
    padding: 14px 18px 14px 10px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(34, 109, 174, 0);
    color: #f5f8ff;
    font-size: 0.95rem;
    line-height: 1.6;
    display: block;
}

.result-extra-note + .result-extra-note {
    margin-top: 10px;
}

.result-extra-note-text {
    width: 100%;
}

.result-extra-note-text::after {
    content: "";
    display: block;
    clear: both;
}

.result-extra-note-text p,
.result-extra-note-text ul,
.result-extra-note-text ol {
    margin: 0;
}

.result-extra-note-text ul,
.result-extra-note-text ol {
    padding-left: 1.15rem;
}

.result-extra-note-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 0.4rem;
    border-radius: 8px;
}

.result-extra-note-text .float-left {
    float: left;
    margin: 0.2rem 0.85rem 0.55rem 0;
}

.result-extra-note-text .note-float-left {
    float: left;
    margin: 0.2rem 0.85rem 0.55rem 0;
}

.result-extra-note-text .float-right {
    float: right;
    margin: 0.2rem 0 0.55rem 0.85rem;
}

.result-extra-note-text .note-float-right {
    float: right;
    margin: 0.2rem 0 0.55rem 0.85rem;
}

.result-extra-note-text .text-left {
    text-align: left;
}

.result-extra-note-text .text-center {
    text-align: center;
}

.result-extra-note-text .text-right {
    text-align: right;
}

.result-extra-note-text .text-justify {
    text-align: justify;
}

.result-extra-note-text p + p,
.result-extra-note-text p + ul,
.result-extra-note-text p + ol,
.result-extra-note-text ul + p,
.result-extra-note-text ol + p,
.result-extra-note-text ul + ul,
.result-extra-note-text ol + ol {
    margin-top: 0.3rem;
}

/* Checkmark Icon for Lulus */
.checkmark-icon-large {
    font-size: 4.5rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

/* Greeting Text for Lulus */
.result-greeting {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d47a1;
    letter-spacing: 0.5px;
    margin: 0 0 25px 0;
    line-height: 1.4;
    animation: slideUp 0.6s ease-out 0.5s both;
}

/* Declaration Text */
.result-declaration {
    font-size: 2.8rem;
    font-weight: bold;
    color: #1b5e20;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    animation: slideUp 0.6s ease-out 0.5s both;
}

.result-declaration-fail {
    font-size: 2.8rem;
    font-weight: bold;
    color: #c62828;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    animation: slideUp 0.6s ease-out 0.5s both;
}

/* Divider */
.result-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, #fff 100%);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

/* Info Box Container */
.result-info-box {
    width: 95%;
    margin: 25px 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-info-layout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-direction: row;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(42, 42, 42, 0.521);
    border: 1px solid rgba(34, 109, 174, 0.614);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    min-height: 240px;
}

.result-photo-column {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 278px;
    padding: 26px 18px 26px 24px;
}

.result-data-column {
    min-width: 0;
    flex: 1 1 0;
    padding: 28px 28px 26px 18px;
    display: flex;
    align-items: center;
    min-height: 170px;
    box-sizing: border-box;
}

.result-photo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
}

.result-info-photo-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.result-photo-frame {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    height: 234px;
    min-height: 234px;
    max-height: 234px;
    aspect-ratio: 3 / 4;
    padding: 2px;
    border-radius: 6px;
    background: #ffffff;
    border: 0.2px solid rgba(216, 178, 92, 0.35);
    box-shadow: 0 6px 14px rgba(9, 30, 66, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.result-student-photo {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    border: 0.1px solid rgba(193, 205, 222, 0.295);
    background: #dde1e7;
    box-sizing: border-box;
}

.result-student-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #56729c;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
}

.result-info-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    width: 100%;
    justify-content: center;
    min-height: 100%;
}

.result-name {
    margin: 0;
    color: #ffffff;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.result-label {
    margin-bottom: 2px;
    color: #7fd8ff;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

/* Two Column Row */
.result-row-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding-left: 0;
}

.result-col {
    text-align: left;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-info-text {
    font-size: 0.96rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    line-height: 1.25;
}
.result-predikat-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 191, 255, 0.14);
    border: 1px solid rgba(0, 191, 255, 0.4);
    width: fit-content;
    max-width: 100%;
}
.result-predikat-inline-label {
    font-size: 0.74rem;
    color: #8adfff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.result-predikat-inline-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Spacing utilities */
.mt-3 {
    margin-top: 20px !important;
}

.mt-4 {
    margin-top: 25px !important;
}

/* Hide search form when showing results */
body:not(.admin-dashboard) .container:has(.result-page-wrapper) .snbp-search-wrapper {
    display: none;
}

/* Animations */
@keyframes slideInFrom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out 0.3s both;
}

/* Responsive Result Page */
@media (max-width: 768px) {
    .result-page-wrapper {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }
    .result-page-top {
        min-height: 96px;
        padding: 14px 14px;
    }
    .result-page-title {
        font-size: 1.25rem;
        text-align: left;
        margin: 0;
    }
    .result-page-title-wrap {
        gap: 8px;
    }
    .result-page-title-logo {
        width: clamp(150px, 22vw, 170px);
        height: 190px;
    }
    .result-greeting {
        font-size: 1.8rem;
    }
    .result-name {
        font-size: 1.4rem;
    }
    .result-status-large {
        font-size: 1.8rem;
        padding: 20px 30px;
    }
    .result-row-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .result-info-layout {
        min-height: auto;
        gap: 0;
        align-items: center;
    }
    .result-photo-column {
        width: 186px;
        padding: 18px 10px 18px 16px;
    }
    .result-photo-frame {
        width: 128px;
        min-width: 128px;
        max-width: 128px;
        height: 170px;
        min-height: 170px;
        max-height: 170px;
        padding: 2px;
        border-width: 0.2px;
    }
    .result-data-column {
        padding: 18px 16px 18px 10px;
        min-height: 128px;
    }
    .result-label {
        font-size: 0.64rem;
    }
    .result-info-text {
        font-size: 0.9rem;
    }
    .result-content {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .result-page-wrapper {
        height: 100dvh;
    }
    .result-page-top {
        min-height: 82px;
        padding: 12px 10px;
    }
    .result-page-title-wrap {
        gap: 6px;
    }
    .result-page-title-logo {
        width: clamp(90px, 30vw, 120px);
        height: auto;
    }
    .result-page-bottom {
        padding: 14px 12px 18px;
    }
    .result-page-footer {
        padding: 10px 12px;
    }
    .result-content {
        max-width: 100%;
        min-height: 100%;
    }
    .result-info-box {
        padding: 0 10px 0 6px;
        box-sizing: border-box;
    }
    .result-info-layout {
        margin-right: 4px;
        margin-left: 2px;
    }
    .result-extra-note {
        width: auto;
        margin-right: 4px;
        margin-left: -6px;
        padding: 12px 14px 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .result-info-layout {
        align-items: center;
        margin-right: 12px;
        margin-left: 2px;
    }
    .result-info-box {
        padding: 0 12px 0 8px;
    }
    .result-extra-note {
        margin-right: 12px;
        margin-left: -4px;
        font-size: 0.88rem;
    }
    .result-photo-column {
        width: 194px;
        padding: 16px 14px 16px 12px;
    }
    .result-photo-frame {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
    .result-data-column {
        padding: 16px 12px 16px 8px;
        min-height: 150px;
    }
}
.result-card {
    width: 100%;
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.result-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}
.result-header h3 {
    font-size: 1.5rem;
    color: #0d47a1;
    margin: 0 0 8px 0;
    font-weight: bold;
}
.result-nisn {
    font-size: 0.95rem;
    color: #00bfff;
    margin: 0;
    font-weight: 500;
}
.status-badge {
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-lulus {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.status-tidak-lulus {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Responsive Result Card */
@media (max-width: 768px) {
    .result-card {
        margin: 30px 15px;
        padding: 20px;
    }
    .result-header h3 {
        font-size: 1.2rem;
    }
    .status-badge {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}

/* Results Table Styles */
table {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(33,150,243,0.12);
    overflow: hidden;
}
table thead {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}
table thead tr th {
    color: #fff;
    padding: 16px;
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}
table tbody tr:hover {
    background-color: #f5f5f5;
}
table tbody tr td {
    padding: 14px 16px;
    font-size: 1rem;
    color: #333;
}
table tbody tr td:first-child {
    font-weight: 500;
    color: #0d47a1;
}
table tbody tr:last-child {
    border-bottom: none;
}
.not-found {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(33,150,243,0.12);
    color: #d32f2f;
    font-size: 1.1rem;
}
/* style.css */
html, body {
    margin: 0;
    padding: 0;
}

body.admin-dashboard {
    height: 100%;
    overflow: hidden;
}

body:not(.admin-dashboard) {
    height: 100vh;
    overflow: hidden;
}
body.admin-dashboard h1 {
    text-align: center;
    color: #333;
}

/* Admin Header Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #0d47a1;
}
.admin-header .app-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-header .app-logo {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.admin-header .app-logo-placeholder {
    height: 40px;
    width: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}
.admin-header a.logout {
    background: #d32f2f;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Responsive header and logout button */
@media (max-width: 600px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 10px;
    }
    .admin-header .app-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
        text-align: center;
    }
    .admin-header a.logout {
        align-self: center;
        width: auto;
        font-size: 1rem;
        margin: 8px auto 0 auto;
        padding: 6px 12px;
        display: block;
        margin-right: 0;
    }
}

/* enable scrolling when admin dashboard class applied */
body.admin-dashboard {
    overflow: auto;
}
body {
    font-family: Arial, sans-serif;
    background: #0d0707 url('assets/background.jpg') no-repeat center/cover;
    background-attachment: fixed;
    -webkit-text-size-adjust: 100%;
}

.admin-header a.logout:hover {
    background: #aa0000;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}
body.admin-dashboard h1 {
    text-align: center;
    color: #333;
}
body.admin-dashboard form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
body.admin-dashboard input[type="text"] {
    flex: 2;
    min-width: 300px;
    padding: 8px;
    font-size: 16px;
}
body.admin-dashboard button, body.admin-dashboard input[type="submit"], body.admin-dashboard input[type="button"] {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #0066cc;
    color: #fff;
    border-radius: 4px;
    transition: background 0.2s;
}
body.admin-dashboard button:hover, body.admin-dashboard input[type="submit"]:hover, body.admin-dashboard input[type="button"]:hover {
    background: #0055aa;
}
body.admin-dashboard table {
    width: 100%;
    border-collapse: collapse;
}
body.admin-dashboard th, body.admin-dashboard td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
body.admin-dashboard th {
    background: #f7f7f7;
}
.not-found {
    text-align: center;
    color: #a00;
}
body.admin-dashboard #countdown {
    /* SNBP-style countdown: big, bold, centered with a subtle backdrop */
    text-align: center;
    font-size: 2rem;          /* larger text */
    font-weight: bold;
    margin: 30px 0;
    padding: 15px 20px;
    color: #222;
    background: #0d47a1;
    border: 2px solid #0d47a1;
    border-radius: 8px;
    display: inline-block;
    min-width: 300px;
}

/* individual segments (days/hours/minutes/seconds) separated by colon */
body.admin-dashboard #countdown span {
    display: inline-block;
    min-width: 60px;
}

body.admin-dashboard #countdown .label {
    font-size: 0.75rem;
    display: block;
    color: #555;
}

/* admin dashboard cards and modern table/form styles */
.card {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.modern-table th, .modern-table td {
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}
.modern-table th {
    background: linear-gradient(90deg,#f7f7f7,#e9e9e9);
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #bbb;
}
.modern-table tr:nth-child(even) {
    background: #f9f9f9;
}
.modern-table tr:hover {
    background: #e6f2ff;
}
.modern-table td {
    vertical-align: middle;
}
.modern-table button {
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 4px;
}
}
.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
}
.admin-table tbody tr:hover {
    background: #f0f8ff;
}
.admin-table th {
    border-bottom: 2px solid #ddd;
}

/* inputs in admin forms */
.admin-form input[type="text"], .admin-form select, .admin-form input[type="datetime-local"] {
    width: calc(100% - 16px);
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.teks-lulus {
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, sans-serif; /* Pilih font yang tegas */
}

/* Responsive styles for SNBP search form */
@media (max-width: 600px) {
  .snbp-countdown-wrapper {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    min-height: 170px;
    margin-left: 0;
    margin-right: 0;
  }
  .snbp-countdown-top {
    min-height: 140px;
    padding: 10px 12px;
  }
  .countdown-wrapper {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .countdown-item {
    gap: 4px;
  }
  .countdown-value {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }
  .countdown-separator {
    font-size: clamp(1.95rem, 10.8vw, 2.85rem);
    transform: translateY(3px);
  }
  .countdown-label {
    font-size: 0.68rem !important;
  }
  .countdown-announcement-left {
    font-size: 0.58rem;
  }
  .countdown-date-info {
    font-size: 0.58rem;
    text-align: right;
    white-space: nowrap;
  }
  .countdown-footer-bar {
    bottom: 12px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }
  .snbp-search-wrapper {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    border-radius: 0;
    margin: 16px 0;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }
  .snbp-search-top {
    padding: clamp(20px, 4vw, 24px) clamp(16px, 3vw, 18px) clamp(16px, 3vw, 18px) clamp(16px, 3vw, 18px);
    gap: clamp(12px, 2vw, 14px);
    align-items: flex-start;
    justify-content: flex-start;
  }
  .snbp-search-logo {
    width: clamp(90px, 30vw, 120px);
    padding: 0px 0px 0px 8px;
    border-radius: 0;
  }
  .snbp-search-title {
    font-size: clamp(1.65rem, 7vw, 1.95rem);
    text-align: left;
    word-break: break-word;
    padding: 0px 0px 0px 8px;
    margin: 0;
    width: 100%;
  }
  .snbp-search-subtitle {
    font-size: 0.8rem;
    word-break: break-word;
    padding: 0px 0px 0px 8px;
    margin-top: 8px;
    max-width: 100%;
    line-height: 1.5;
  }
  .snbp-search-form {
    max-width: 100%;
    padding: 0;
    gap: 18px;
  }
  .snbp-search-form input[type="text"],
  .snbp-search-form input[type="date"] {
    font-size: 0.95rem;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2vw, 14px);
    width: 100%;
    min-width: 0;
  }
  .snbp-search-form #nisn,
  .dob-row {
    width: calc(100% - 14px);
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
  }
  .snbp-search-form #nisn,
  .dob-row {
    max-width: 90%;
    margin-left: 0;
    margin-right: 0;
  }
  .snbp-search-form #nisn {
    width: 100%;
  }
  .dob-row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: clamp(6px, 1vw, 8px);
    align-items: center;
    width: 100%;
  }
  .dob-row input[type="text"] {
    width: 100% !important;
  }
  .form-label {
    font-size: 0.92rem;
    margin-bottom: clamp(6px, 1vw, 8px);
    margin-left: -2px;
  }
  .snbp-search-form button {
    font-size: 1.05rem;
    padding: 14px 16px;
    width: auto;
    flex: 1;
    border-radius: 999px;
  }
  .button-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
  }
  .button-container button,
  .download-skl-text {
    width: 100%;
    min-width: 0;
  }
  .button-container button {
    margin: 0;
  }
  .download-skl-text {
    width: auto;
    max-width: none;
    flex: 1;
    font-size: 0.92rem;
    text-align: left;
    padding: 0;
    margin: 0px 50px 0px 20px;
    color: #4db5ff;
    background: transparent;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
}

/* Extra responsive for very small screens */
@media (max-width: 400px) {
  .snbp-countdown-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }
  .countdown-wrapper {
    gap: 4px;
  }
  .countdown-value {
    font-size: clamp(1.15rem, 8.2vw, 1.55rem);
  }
  .countdown-separator {
    font-size: clamp(0.95rem, 5.8vw, 1.25rem);
  }
  .countdown-label {
    font-size: 0.62rem !important;
  }
  .snbp-search-title {
    font-size: 1rem;
  }
  .snbp-search-form input[type="text"],
  .snbp-search-form input[type="date"] {
    font-size: 1rem;
    padding: 10px 12px;
  }
  .dob-row {
    gap: 6px;
  }
  .snbp-search-form button {
    padding: 12px 14px;
  }
}
/* Responsive: wrapper search form selalu 100% */
@media (max-width: 900px) {
  .snbp-countdown-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .snbp-search-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

/* Alert modal styles */
.alert-modal-overlay {position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; z-index: 999; padding: 14px;}
.alert-modal-card {background: #fff; border-radius: 10px; width: min(95%, 420px); max-width: 420px; box-shadow: 0 12px 28px rgba(0,0,0,0.35); animation: modalScale 0.25s ease-out both;}
.alert-modal-header {display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e5e5;}
.alert-modal-title {font-size: 1rem; color: #283e56; font-weight: 700;}
.alert-modal-close {border: none; background: transparent; font-size: 1.4rem; cursor: pointer; color: #333;}
.alert-modal-body {padding: 18px 20px; color: #2f3a4a; font-size: 1rem; line-height: 1.5;}
.alert-modal-footer {display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px;}
.alert-modal-action {background: linear-gradient(135deg,#0d47a1 0%,#1565c0 100%); color:#fff; border:none; border-radius: 6px; padding: 9px 16px; font-weight: 600; cursor: pointer;}
@keyframes modalScale {from {opacity: 0; transform: scale(0.92);} to {opacity: 1; transform: scale(1);} }

