/* ============================================
   SMK Negeri Bansari - Pengumuman Kelulusan
   Premium Dark Theme + Glassmorphism
   Mobile-First Design
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #0a1628;
    --primary-light: #111d35;
    --accent: #f5a623;
    --accent-glow: rgba(245, 166, 35, 0.3);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0a1628 0%, #0f1f3d 50%, #0a1628 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* --- Main Container --- */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px 40px;
    max-width: 480px;
    margin: 0 auto;
}

/* --- School Badge --- */
.school-badge {
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease;
    justify-items: center;
}

.badge-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), #e8930e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow), 0 0 40px var(--accent-glow);
    animation: pulse 3s ease-in-out infinite;
}

.badge-icon i {
    display: block;
    line-height: 1;
    transform: translate(1px, 1px);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 30px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

/* --- Title Section --- */
.title-section {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.subtitle-top {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.school-name {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tahun-ajaran {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

/* --- Countdown Section --- */
.countdown-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.countdown-label {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 500;
}

.countdown-separator {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: -14px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown-open {
    color: var(--success);
    padding: 10px;
}

.countdown-open i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.countdown-open p {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.btn-refresh {
    background: var(--success);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-refresh:hover {
    transform: scale(1.05);
}

/* --- Login Card --- */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 22px;
    width: 100%;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 0.8s ease 0.4s both;
    transition: var(--transition);
}

.login-card.disabled-card {
    opacity: 0.5;
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-header h2 i {
    color: var(--accent);
}

.card-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Form --- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--accent);
    font-size: 0.75rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Date input styling for mobile */
.form-group input[type="date"] {
    -webkit-appearance: none;
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* --- Error Message --- */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: var(--danger-glow);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: #fca5a5;
}

.error-message i {
    color: var(--danger);
    margin-top: 2px;
    flex-shrink: 0;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* --- Button --- */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), #e8930e);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- Pengumuman Link --- */
.pengumuman-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.pengumuman-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.pengumuman-link i {
    color: var(--accent);
}

.badge-count {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
}

/* --- Footer --- */
.footer {
    margin-top: 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.footer p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-address {
    margin-top: 2px;
    font-size: 0.68rem !important;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   DASHBOARD PAGE - Envelope & Results
   ============================================ */

/* --- Dashboard Container --- */
.dashboard-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.welcome-text h2 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.welcome-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 4px;
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Envelope --- */
.envelope-wrapper {
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 30px;
    animation: scaleIn 0.8s ease 0.3s both;
}

.envelope {
    width: 280px;
    height: 200px;
    position: relative;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.03);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #c9a962, #f5d78e, #c9a962);
    border-radius: 4px 4px 10px 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(245, 166, 35, 0.15);
    overflow: hidden;
}

.envelope-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08));
}

/* Flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    transform-origin: top center;
    z-index: 3;
    transition: transform 0.6s ease;
}

.envelope-flap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 100px solid #d4ad56;
    filter: brightness(0.9);
}

/* Seal */
.envelope-seal {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.5);
    transition: var(--transition);
}

.envelope-seal i {
    color: #ffeaa7;
    font-size: 1.4rem;
    line-height: 1;
    display: block;
    transform: translateY(1px);
}

/* Letter inside envelope */
.envelope-letter {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 140px;
    background: #fff;
    border-radius: 4px;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.envelope-letter-lines {
    width: 70%;
}

.envelope-letter-lines span {
    display: block;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 6px;
}

.envelope-letter-lines span:nth-child(2) { width: 80%; }
.envelope-letter-lines span:nth-child(3) { width: 50%; }

/* Envelope tap hint */
.envelope-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    animation: bounceHint 2s ease-in-out infinite;
}

.envelope-hint i {
    color: var(--accent);
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Envelope Open State */
.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope.opened .envelope-seal {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.envelope.opened .envelope-letter {
    transform: translateY(-160px);
}

/* --- Result Section --- */
.result-section {
    display: none;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.result-section.show {
    display: block;
}

.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    margin-bottom: 20px;
}

.result-status {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.result-status.lulus {
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.result-status.tidak-lulus {
    background: linear-gradient(135deg, var(--danger), #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.result-icon.lulus {
    color: var(--success);
    animation: celebrateIcon 1s ease;
}

.result-icon.tidak-lulus {
    color: var(--danger);
}

@keyframes celebrateIcon {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.result-message {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
}

.result-student-info {
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 400;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* --- Action Buttons --- */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-print {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--success-glow);
}

.btn-pengumuman {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-pengumuman:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-logout:hover {
    background: var(--danger-glow);
}

/* ============================================
   PENGUMUMAN PAGE
   ============================================ */
.page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 30px 16px;
    max-width: 640px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.page-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Pengumuman Cards */
.pengumuman-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease both;
    transition: var(--transition);
}

.pengumuman-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.pengumuman-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pengumuman-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pengumuman-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.pengumuman-content p { margin-bottom: 10px; }
.pengumuman-content ul, .pengumuman-content ol { padding-left: 20px; margin-bottom: 10px; }
.pengumuman-content li { margin-bottom: 4px; }
.pengumuman-content strong { color: var(--text-primary); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   SKL / CETAK PAGE
   ============================================ */
.skl-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.skl-paper {
    background: #fff;
    color: #000;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.6;
    position: relative;
}

.skl-header {
    text-align: center;
    border-bottom: 3px double #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.skl-header h3 {
    font-size: 14pt;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.skl-header h2 {
    font-size: 16pt;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.skl-header p {
    font-size: 10pt;
    margin: 0;
}

.skl-kop-image {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.skl-title {
    text-align: center;
    margin: 20px 0;
}

.skl-title h2 {
    font-size: 14pt;
    text-decoration: underline;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.skl-title p {
    font-size: 10pt;
}

.skl-body p {
    margin-bottom: 10px;
    text-align: justify;
}

.skl-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.skl-table td {
    padding: 3px 8px;
    vertical-align: top;
    font-size: 12pt;
}

.skl-table td:first-child {
    width: 160px;
}

.skl-table td:nth-child(2) {
    width: 15px;
    text-align: center;
}

.skl-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.skl-sign {
    text-align: center;
    min-width: 200px;
}

.skl-sign .sign-space {
    height: 70px;
}

.skl-sign .sign-name {
    font-weight: bold;
    text-decoration: underline;
}

.skl-sign .sign-nip {
    font-size: 10pt;
}

.btn-cetak-wrap {
    text-align: center;
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cetak {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-cetak:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-cetak.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* Print styles */
@page {
    size: A4;
    margin: 2cm 2cm 2cm 2cm;
}

@media print {
    html, body {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 0;
    }

    body {
        background: #fff !important;
    }

    .bg-animation, .btn-cetak-wrap, .page-header {
        display: none !important;
    }

    .page-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .skl-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .skl-paper {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        font-size: 12pt;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 480px) {
    .main-container {
        padding: 40px 24px;
    }

    .school-name {
        font-size: 1.6rem;
    }

    .countdown-number {
        font-size: 2.4rem;
    }

    .countdown-item {
        min-width: 70px;
    }

    .login-card {
        padding: 32px 28px;
    }

    .envelope {
        width: 320px;
        height: 220px;
    }

    .envelope-flap::before {
        border-left-width: 160px;
        border-right-width: 160px;
    }
}

@media (min-width: 768px) {
    .main-container {
        padding: 60px 24px;
        max-width: 520px;
    }

    .badge-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .school-name {
        font-size: 1.8rem;
    }
}
