/* Custom CSS untuk Sistem Kantor */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
} 

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Header */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #dee2e6;
}

/* Dashboard Content Spacing */
.main-content {
    padding-top: 20px;
}

.dashboard-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.dashboard-content {
    margin-top: 15px;
}

/* Welcome Card Spacing */
.welcome-card {
    margin-bottom: 20px;
}

.welcome-card .card-body {
    padding: 20px;
}

/* Stats Cards Spacing */
.stats-row {
    margin-bottom: 25px;
}

.stats-card {
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-1px);
}

/* PT-5 Class with Bottom Border */
.pt-5 {
    padding-top: 8rem !important;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Profile Info Styling */
.profile-info {
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    flex: 0 0 40%;
}

.info-value {
    color: #212529;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.info-value .badge {
    font-size: 0.7rem;
}

/* Settings Styling */
.settings-info {
    font-size: 0.9rem;
}

.security-tips {
    font-size: 0.9rem;
}

.security-tips ul li {
    margin-bottom: 8px;
}

.database-info {
    font-size: 0.9rem;
}

.database-info ul li {
    margin-bottom: 8px;
}

/* Form Switch Styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #58d68d);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f7dc6f);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #f1948a);
    border: none;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-left: 4px solid var(--secondary-color);
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
}

/* Dashboard */
.dashboard-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding-top: 15px;
    }
    
    .dashboard-header {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .dashboard-content {
        margin-top: 10px;
    }
    
    .welcome-card {
        margin-bottom: 15px;
    }
    
    .welcome-card .card-body {
        padding: 15px;
    }
    
    .stats-row {
        margin-bottom: 20px;
    }
    
    .stats-card {
        margin-bottom: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Status Badges */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status-hadir {
    background-color: #d4edda;
    color: #155724;
}

.status-izin {
    background-color: #fff3cd;
    color: #856404;
}

.status-sakit {
    background-color: #f8d7da;
    color: #721c24;
}

.status-alpha {
    background-color: #f5c6cb;
    color: #721c24;
}
