/* --- 1. DEFAULT TEMA (BIRU) --- */
:root, body.theme-biru {
    --sidebar-bg: #0000FF;        
    --active-color: #1974D2;      
    --sidebar-text: #e2e8f0;      
    --body-bg: #f8fafc;        
    --accent-color: #f59e0b;
    --sidebar-border: #0a58ca;
    --hover-bg: rgba(59, 130, 246, 0.2);
    --hover-text: #bae6fd;
}

/* --- 2. TEMA DEPAG (HIJAU KEMENAG) --- */
body.theme-hijau {
    --sidebar-bg: #065f46;        
    --active-color: #10b981;      
    --sidebar-text: #d1fae5;      
    --body-bg: #f0fdf4;        
    --accent-color: #fbbf24;
    --sidebar-border: #047857;
    --hover-bg: rgba(16, 185, 129, 0.2);
    --hover-text: #a7f3d0;
}

/* --- 3. TEMA MERAH --- */
body.theme-merah {
    --sidebar-bg: #7f1d1d;        
    --active-color: #ef4444;      
    --sidebar-text: #fee2e2;      
    --body-bg: #fef2f2;        
    --accent-color: #f59e0b;
    --sidebar-border: #991b1b;
    --hover-bg: rgba(239, 68, 68, 0.2);
    --hover-text: #fecaca;
}

/* --- 4. TEMA PUTIH CLEAN --- */
body.theme-putih{
    --sidebar-bg: #ffffff;        
    --active-color: #0284c7;      
    --sidebar-text: #334155;      
    --body-bg: #f8fafc;        
    --accent-color: #f59e0b;
    --sidebar-border: #e2e8f0;
    --hover-bg: rgba(2, 132, 199, 0.1);
    --hover-text: #0284c7;
}
body { 
    background-color: var(--body-bg); 
    font-family: 'FontModern', sans-serif; 
    font-size: 15px; 
    color: #1e293b; 
}

.sidebar { 
    min-height: 100vh; 
    background: var(--sidebar-bg); 
    color: var(--sidebar-text); 
    width: 260px; 
}

.nav-link { 
    display: flex; 
    align-items: center;
    color: var(--sidebar-text); 
    opacity: 0.8;
    transition: all 0.3s ease-in-out; 
    padding: 12px 15px; 
    margin: 0 10px 8px 10px; 
    border-radius: 12px;
    white-space: nowrap; 
}

.nav-link:hover { 
    color: var(--hover-text) !important; 
    background: var(--hover-bg); 
    opacity: 1;
}

.nav-link.active { 
    color: #ffffff; 
    background: var(--active-color); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); 
    opacity: 1;
}

.collapse .nav-link {
    margin-left: 30px; 
    font-size: 0.9rem;
    border-left: 2px solid var(--sidebar-border);
    border-radius: 0 12px 12px 0;
}

.sidebar-header {
    flex-shrink: 0;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-border);
    font-weight: bold;
    color: var(--sidebar-text);
}

.profile-img {
    width: 150px;        
    height: 150px;       
    object-fit: cover;  
    border-radius: 50%;  
    border: 4px solid var(--sidebar-bg); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            margin: 0;
            background-color: var(--body-bg, #f8fafc);
        }

        .sandik-top-header {
            background-color: var(--sidebar-bg, #1e293b);
            color: var(--sidebar-text, #ffffff);
            padding: 25px 40px 25px 40px;
            border-bottom: 4px solid var(--active-color, #3b82f6);
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .header-title h5 {
            margin: 0;
            font-weight: 700;
            font-size: 1.2rem;
            letter-spacing: 0.5px;
        }

        .header-title span {
            font-size: 0.85rem;
            opacity: 0.8;
        }

        /* Area Konten Utama */
        .sandik-main-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 15px;
        }

        .sandik-card {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
            border: 1px solid #e2e8f0;
            width: 100%;
            max-width: 440px;
            overflow: hidden;
            position: relative;
            margin-top: -40px;
            z-index: 5;
        }

        .sandik-card-header {
            background-color: #ffffff;
            padding: 20px 25px;
            border-bottom: 1px solid #e2e8f0;
            text-align: center;
        }

        .sandik-card-header h4 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: #1e293b;
        }

        .sandik-card-body {
            padding: 30px;
        }
        
		.sandik-card-header .header-logo,
        .sandik-card .header-logo {
            height: 40px !important;    
            width: auto !important;     
            max-width: 100%;
            object-fit: contain;
            display: block;
            margin: 0 auto 12px auto;  
        }
		
        .form-control {
            border-radius: 8px;
            padding: 10px 14px;
            font-size: 0.95rem;
            border: 1px solid #cbd5e1;
        }

        .form-control:focus {
            border-color: var(--active-color);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }


       .input-group:focus-within {
    border-color: var(--active-color, #0d6efd) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
        .form-label {
            font-weight: 600;
            color: #334155;
            font-size: 0.85rem;
        }

        .btn-login {
            background-color: #0000FF;
            border: none;
            border-radius: 8px;
            padding: 12px;
            font-weight: 600;
            width: 100%;
            color: #ffffff;
            transition: all 0.2s ease;
        }

        .btn-login:hover {
			 background-color: var(--active-color);
            opacity: 0.9;
            color: #ffffff;
        }

        .sandik-footer-page {
            text-align: center;
            padding: 20px;
            font-size: 0.75rem;
            color: #64748b;
        }

        .sandik-top-header .header-logo {
            height: 50px;         
            width: auto;          
            margin-right: 15px;   
            object-fit: contain;
        }

       

        @media (max-width: 768px) {
            .sandik-top-header {
                padding: 20px 20px 50px 20px; 
                flex-direction: column;
                text-align: center;
            }

            .sandik-top-header i {
                margin-right: 0 !important;
                margin-bottom: 10px; 
            }

            .header-title h5 {
                font-size: 1rem; 
            }

            .header-title span {
                font-size: 0.75rem;
            }

            .sandik-main-container {
                padding: 0 10px;
            }

            .sandik-card {
                width: 92%; 
                margin-top: -35px;
            }

            .sandik-card-body {
                padding: 20px; 
            }
			.sandik-top-header .header-logo {
                height: 40px;      
                margin-right: 0;
                margin-bottom: 10px; 
            }
        }