/* ============================================
   CUSTOM CSS - Minimal & Tailwind-First
   Hanya untuk custom yang tidak bisa dengan Tailwind
   ============================================ */

:root {
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(17, 24, 39, 0.1);
    border: 1px solid rgba(55, 65, 81, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Theme toggle animations */
.theme-toggle-btn {
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.theme-toggle-btn:hover::before {
    width: 100px;
    height: 100px;
}

.theme-option {
    position: relative;
    overflow: hidden;
}

.theme-option::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: left 0.5s ease;
}

.theme-option:hover::before {
    left: 100%;
}

.theme-icon-container {
    position: relative;
    overflow: hidden;
}

.theme-icon-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.theme-option:hover .theme-icon-container::after {
    width: 100%;
    height: 100%;
}

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Desktop dropdown - Minimal custom CSS, using Tailwind for most styling */

/* Mobile sidebar - Using Tailwind CSS classes instead of custom CSS */

/* Hamburger menu - Minimal custom CSS for animation */
.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 7px;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

/* Mobile responsive - Minimal custom CSS, using Tailwind for most styling */
@media (max-width: 640px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #notificationsModal {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        max-width: calc(100vw - 1rem);
        width: 240px !important;
        margin-right: 0.5rem;
        position: absolute !important;
    }
    
    #notificationsModal .space-y-2 > div {
        padding: 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    #notificationsModal .space-y-2 > div h4 {
        font-size: 0.75rem !important;
        line-height: 1rem !important;
    }
    
    #notificationsModal .space-y-2 > div span {
        font-size: 0.625rem !important;
    }
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* CRITICAL: Force hero images to be visible in dark mode */
.dark img {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dark [style*="background-image"] {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background-image: inherit !important;
}

.dark .hero-section {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dark .hero-section > div {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dark .hero-section .absolute.inset-0 {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background-image: inherit !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
}

.dark .hero-section .absolute.inset-0[style*="background-image"] {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    background-image: inherit !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
}

.dark .hero-section > div[style*="background-image"] {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dark .dashboard-hero-image {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dark .hero-section img {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.dark .hero-section img,
.dark .dashboard-hero img,
.dark .hero-section .absolute.inset-0 img {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Optimasi rendering */
* {
    box-sizing: border-box;
}

/* Optimasi animasi */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimasi font loading - akan diterapkan ke font yang ada */

/* ============================================
   HEADER TITLE OPTIMIZATION
   ============================================ */

/* Judul website di header - pastikan terlihat di semua ukuran */
header h1 {
    font-size: 1.5rem !important; /* 24px - minimum size */
    font-weight: bold !important;
    color: #1f2937 !important; /* gray-800 */
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive judul website */
@media (min-width: 640px) {
    header h1 {
        font-size: 1.75rem !important; /* 28px */
    }
}

@media (min-width: 768px) {
    header h1 {
        font-size: 2rem !important; /* 32px */
    }
}

@media (min-width: 1024px) {
    header h1 {
        font-size: 2.25rem !important; /* 36px */
    }
}

/* Hover effect untuk judul */
header h1:hover {
    color: #2563eb !important; /* blue-600 */
    transform: scale(1.02) !important;
    transition: all 0.3s ease !important;
}

/* ============================================
   FOOTER STYLES - MODE GELAP DENGAN BIRU LAUT
   ============================================ */

/* Footer utama - Mode gelap */
.custom-footer-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: #22d3ee !important;
}

/* Teks footer */
.custom-footer-text {
    color: #22d3ee !important;
    text-shadow: none !important;
}

/* Icon footer - LEBIH KUAT */
.custom-footer-icon,
.custom-footer-dark .fab,
.custom-footer-dark .fas,
.custom-footer-dark i {
    color: #22d3ee !important;
    text-shadow: none !important;
}

/* Icon di dalam link footer */
.custom-footer-link i,
.custom-footer-link .fas,
.custom-footer-link .fab {
    color: #22d3ee !important;
    text-shadow: none !important;
}

/* Icon di contact item */
.custom-footer-dark .contact-item i,
.custom-footer-dark .contact-item .fas {
    color: #22d3ee !important;
    text-shadow: none !important;
}

/* Judul footer */
.custom-footer-title {
    color: #06b6d4 !important;
    text-shadow: none !important;
    font-size: 1.125rem !important;
    font-weight: bold !important;
    margin-bottom: 1.5rem !important;
}

/* Link footer */
.custom-footer-link {
    color: #22d3ee !important;
    text-shadow: none !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.custom-footer-link:hover {
    color: #06b6d4 !important;
    text-shadow: none !important;
    transform: translateX(5px) !important;
}

/* Animasi dihapus - tidak ada efek cahaya */

/* Force override untuk semua icon di footer - SUPER KUAT */
.custom-footer-dark * i,
.custom-footer-dark * .fas,
.custom-footer-dark * .fab,
.custom-footer-dark * .fa,
footer * i,
footer * .fas,
footer * .fab,
footer * .fa,
footer i,
footer .fas,
footer .fab,
footer .fa {
    color: #22d3ee !important;
    text-shadow: 0 0 8px #22d3ee !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Icon di social media */
.custom-footer-dark .social-icons i,
.custom-footer-dark .social-icons .fab {
    color: #22d3ee !important;
    text-shadow: 0 0 8px #22d3ee !important;
}

/* Icon di menu */
.custom-footer-dark ul li i,
.custom-footer-dark ul li .fas {
    color: #22d3ee !important;
    text-shadow: 0 0 8px #22d3ee !important;
}

/* Icon di contact */
.custom-footer-dark .contact-icon i,
.custom-footer-dark .contact-icon .fas {
    color: #22d3ee !important;
    text-shadow: 0 0 8px #22d3ee !important;
}

/* CSS SUPER EKSTREM - PASTI TERLIHAT */
footer,
footer *,
footer p,
footer span,
footer a,
footer li,
footer div,
footer i,
footer .fas,
footer .fab,
footer .fa {
    color: #22d3ee !important;
    text-shadow: none !important;
}

/* Force semua icon di footer */
footer i,
footer .fas,
footer .fab,
footer .fa,
footer a i,
footer li i,
footer div i,
footer span i,
footer p i {
    color: #22d3ee !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-footer-text,
    .custom-footer-icon,
    .custom-footer-link {
        animation-duration: 1.5s !important;
    }
}