/**
 * Style CSS - Aplikasi Kegiatan Ramadhan SDN 2 Cihirup
 */

:root {
    --bg: #faf6eb;
    --fg: #0a3d2e;
    --muted: #5a7d6e;
    --accent: #d4a418;
    --card: #ffffff;
    --border: #c9b896;
    --primary: #0d4f3c;
    --secondary: #1a6b52;
}

/* Base Styles */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

/* Islamic Geometric Pattern Background */
.islamic-pattern {
    background-color: var(--primary);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M40 10L70 40L40 70L10 40z' fill='none' stroke='%23d4a418' stroke-width='0.3' opacity='0.15'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
}

.islamic-pattern-light {
    background-color: var(--bg);
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%230d4f3c' stroke-width='0.5' opacity='0.06'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23d4a418' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lanternSwing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes lanternGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 164, 24, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(212, 164, 24, 0.7)); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease-out forwards; }

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }

.lantern {
    animation: lanternSwing 4s ease-in-out infinite, lanternGlow 2s ease-in-out infinite;
    transform-origin: top center;
}

.lantern-delayed .lantern {
    animation-delay: 1s;
}

/* Input Styles */
.input-islamic {
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.input-islamic:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 164, 24, 0.15);
    outline: none;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 79, 60, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent) 0%, #e8b923 100%);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #e8b923 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 164, 24, 0.4);
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 79, 60, 0.15);
}

/* Custom Checkbox */
.checkbox-islamic {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-islamic:checked {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

.checkbox-islamic:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-islamic:focus {
    box-shadow: 0 0 0 3px rgba(13, 79, 60, 0.15);
}

/* Modal */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Table */
table tbody tr {
    transition: background-color 0.2s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}