/* 
   Premium Dark Glassmorphic Design System
   Website Validasi, Verifikasi & Kelulusan Siswa
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #070814;
    --bg-dark-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.15);
    
    /* Harmonious Neon Color Palette */
    --accent-primary: #8b5cf6; /* Violet */
    --accent-primary-glow: rgba(139, 92, 246, 0.5);
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-secondary-glow: rgba(6, 182, 212, 0.5);
    --accent-success: #10b981; /* Emerald Green */
    --accent-error: #f43f5e; /* Rose Red */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Ambient Lighting Blobs */
.ambient-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(30px, -30px); }
}

/* Premium Glassmorphism Container */
.glass-panel {
    background: var(--bg-dark-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-panel-glow-purple:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.15);
}

.glass-panel-glow-cyan:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 32px 0 rgba(6, 182, 212, 0.15);
}

/* Glowing Neon Interactive Buttons */
.btn-neon-purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-neon-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-neon-purple:active {
    transform: translateY(1px);
}

.btn-neon-cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-neon-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-neon-cyan:active {
    transform: translateY(1px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Beautiful Frosted Inputs */
.frosted-input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.frosted-input:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25) !important;
}

/* Custom Micro-Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-scale-up {
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Custom Toga Loading Animation */
.toga-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 8, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toga-animation {
    width: 120px;
    height: 120px;
    position: relative;
    animation: floatToga 2s infinite ease-in-out;
}

@keyframes floatToga {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

.toga-spinner {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-right: 3px solid var(--accent-secondary);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    position: absolute;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Beautiful Custom Toast Notifications */
.toast-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25) !important;
}

.toast-error {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.25) !important;
}

/* Table styling for dark theme */
.custom-table th {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: #e5e7eb;
}

.custom-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.01) !important;
}

/* Twibbon Editor Canvas Frame */
.canvas-wrapper {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.canvas-wrapper:hover {
    border-color: var(--accent-primary);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
