:root {
    --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-bg: #e6fffa;
    --success-text: #2c7a7b;
    --error-bg: #fff5f5;
    --error-text: #c53030;
    --text-main: #2d3748;
    --text-muted: #718096;
}


/* ---------------------------- TIMER ------------------------------- */
/* Container Utama */
.pk-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pk-card {
    background: #ffffff;
    max-width: 700px;
    margin: 0 auto;
	border: 1px solid #f8fafc;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    padding: 50px 30px;
    text-align: center;
    overflow: hidden;
}

.pk-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Header & Badge */
.pk-icon-calendar { font-size: 44px; margin-bottom: 15px; }
.pk-subtitle { color: #64748b; font-size: 15px; margin-bottom: 12px; }
.pk-date-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 40px;
}
.pk-date-badge span { color: #3b82f6; }

/* Grid Countdown */
.pk-countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pk-number-box {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    width: 65px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.pk-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 1.5px; }
.pk-countdown-divider { font-size: 24px; color: #cbd5e1; margin-top: -25px; font-weight: bold; }

/* Animasi */
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-out { animation: fadeOut 0.5s ease forwards; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* Responsif Mobile */
@media (max-width: 500px) {
    .pk-countdown-divider { display: none; }
    .pk-number-box { width: 55px; height: 65px; font-size: 24px; }
    .pk-card { padding: 30px 15px; }
}

/* -------------------- FORM ------------------------ */
.pk-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pk-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Styling */
.pk-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pk-form input {
    width: 100% !important;
    padding: 25px 20px !important;
    border-radius: 12px !important;
    border: 2px solid #edf2f7 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.pk-form input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.pk-btn {
    background: var(--primary-grad);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    
}

a.pk-btn, a.pk-btn:hover, a.pk-btn:visited, a.pk-btn:focus{    
    text-decoration: none;
    color: white;
    display: block;
}

.pk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

/* Result Section */
.pk-result-card {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #edf2f7;
}

.pk-student-name {
    font-size: 22px;
    margin: 10px 0 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pk-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    margin: 20px 0;
}

.is-lulus {
    background: var(--success-bg);
    color: var(--success-text);
}

.is-tidak-lulus {
    background: var(--error-bg);
    color: var(--error-text);
}

.pk-alert {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.pk-alert.error {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #c53030;
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* -------------- WIDGET --------------------- */
.pk-widget {
    text-align:center;
    padding:15px;
    
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pk-widget-title {
    font-size:16px;
    margin-bottom:10px;
}

#pk-widget-countdown {
    display:flex;
    justify-content:center;
    gap:5px;
}

.pk-mini-count {
    flex:1;
    padding:8px 4px;
    border-radius:6px;
    background:#f1f5f9;
    text-align:center;
}

.pk-mini-count span {
    display:block;
    font-size:13px;
    font-weight:bold;
    line-height:1;
}

.pk-mini-count small {
    display:block;
    font-size:9px;
    color:#666;
    margin-top:2px;
}


.pk-widget-btn, 
.pk-widget-btn:hover,
.pk-widget-btn:visited, 
.pk-widget-btn:focus {
    background: var(--primary-grad);
    margin-top: 20px;
    display: block;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}


.pk-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}