@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-orange: #f97316;
    --dark-orange: #ea580c;
    --light-orange: #fed7aa;
    --dark-blue: #0832f4;
    --limau-red: #f90000;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.brand-sifonn {
    font-family: "Sifonn-Pro", sans-serif;
    text-transform: lowercase;
}

.limau { color: var(--limau-red); }
.digital { color: var(--dark-blue); }

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card {
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    transition: all 0.3s;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

.btn-primary:not(:disabled):hover {
    animation: button-shine 1.5s ease-in-out infinite;
}

@keyframes button-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.status-badge:hover {
    transform: scale(1.1) rotate(-2deg);
}

.status-pending { 
    background: #fef3c7; 
    color: #92400e;
    animation: wiggle 3s ease-in-out infinite;
}

.status-completed { 
    background: #d1fae5; 
    color: #065f46;
    animation: bounce-subtle 2s ease-in-out infinite;
}

.status-missing { 
    background: #fee2e2; 
    color: #991b1b;
    animation: shake 4s ease-in-out infinite;
}

.status-reviewing { 
    background: #dbeafe; 
    color: #1e40af;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 4px rgba(30, 64, 175, 0);
    }
}

.timetable-card {
    border-left: 4px solid var(--primary-orange);
    background: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timetable-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.2);
}

.timetable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    transition: width 0.3s ease;
}

.timetable-card:hover::before {
    width: 8px;
}

.timetable-card.completed {
    border-left-color: #10b981;
    opacity: 0.9;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.timetable-card.completed::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.timetable-card.completed:hover {
    transform: translateX(4px) scale(1.01);
    opacity: 1;
}

.timetable-card.completed .status-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '📤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    opacity: 0;
    transition: all 0.4s ease;
}

.upload-zone:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
}

.upload-zone:hover {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
}

.upload-zone:hover .fa-cloud-upload-alt {
    animation: float-upload 2s ease-in-out infinite;
}

@keyframes float-upload {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-zone.dragover {
    border-color: var(--primary-orange);
    background: #fff7ed;
    transform: scale(1.05);
    border-width: 4px;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.upload-zone.dragover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.teacher-status-card {
    border-radius: 20px;
    padding: 24px;
    background: white;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.teacher-status-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.1);
}

.progress-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.3s ease;
}

.progress-ring.complete circle:last-child {
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { 
        stroke-width: 8;
        opacity: 1;
    }
    50% { 
        stroke-width: 10;
        opacity: 0.8;
    }
}

.progress-ring .confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: confetti-burst 0.8s ease-out;
    pointer-events: none;
}

@keyframes confetti-burst {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 0;
    }
}

.fun-progress-bar {
    height: 30px;
    border-radius: 15px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.fun-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 50%, #fb923c 100%);
    border-radius: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fun-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer-progress 2s infinite;
}

@keyframes shimmer-progress {
    0% { left: -100%; }
    100% { left: 200%; }
}

.fun-progress-fill.complete {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #34d399 100%);
    animation: celebrate-progress 1s ease-in-out;
}

@keyframes celebrate-progress {
    0%, 100% { transform: scaleY(1); }
    25% { transform: scaleY(1.1); }
    50% { transform: scaleY(0.9); }
    75% { transform: scaleY(1.05); }
}

.progress-emoji {
    font-size: 20px;
    margin-left: 10px;
    display: inline-block;
    animation: bounce-emoji 0.6s ease-in-out;
}

@keyframes bounce-emoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.star-burst {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    font-size: 16px;
    animation: star-fall 1.5s ease-out forwards;
}

@keyframes star-fall {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(50px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ai-reflection-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid var(--light-orange);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.verification-qr {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.signature-pad {
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    cursor: crosshair;
    background: white;
}

.hidden { display: none !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.week-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.week-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.week-btn:hover {
    border-color: var(--primary-orange);
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.week-btn.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    border-color: var(--primary-orange);
    transform: scale(1.1);
    animation: week-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

@keyframes week-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.week-btn.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    animation: check-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes check-bounce {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.slip-pengesahan {
    background: white;
    border: 3px solid var(--primary-orange);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.1);
}

@media print {
    .no-print { display: none !important; }
    body { background: white; }
}

.loading-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    animation: pulse-notification 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes pulse-notification {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes fall-down {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* FORCE brand font: limaudigital (override all) */
.brand-sifonn,
.brand-sifonn *{
  font-family: "Sifonn-Pro","Sifonn Pro",sans-serif !important;
}
