:root {
    --primary-color: #293681;
    --secondary-color: #4274D9;
    --third-color: #95CCDD;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-left {
    background: var(--primary-color);
    padding: 40px;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.login-left p {
    opacity: 0.9;
    line-height: 1.8;
}

.login-right {
    background: white;
    padding: 40px;
}

.login-right h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 116, 217, 0.4);
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--primary-color);
    color: white;
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-brand {
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-brand i {
    margin-right: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 3px solid var(--third-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 0;
}

.topbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
}

.page-content {
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar-toggle {
        display: block;
    }
    
    .login-left {
        display: none;
    }
    
    .login-card {
        max-width: 400px;
    }
}

/* Card Styles */
.card-dashboard {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-dashboard .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.stat-card .stat-icon {
    font-size: 30px;
    color: var(--secondary-color);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* Role Badge Styles */
.role-super_admin {
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-admin_scg {
    background: #0d6efd;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-instansi {
    background: #198754;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-kontraktor {
    background: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-dept_head {
    background: #6f42c1;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-head_of_site {
    background: #fd7e14;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.role-default {
    background: #6c757d;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

