/* Import Google Font biar gak kaku */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Navbar Custom */
.navbar {
    background: linear-gradient(135deg, #0d6efd 0%, #0046af 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.login-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Input Styling */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

/* Button Custom */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Table Styling untuk Mobile */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #666;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Preview Gambar */
.img-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Status Badge */
.badge-unit {
    background-color: #e7f1ff;
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 280px;
    max-width: 280px;
    min-height: 100vh;
    background: #212529;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
}

#content {
    width: 100%;
    padding: 20px;
    margin-left: 280px; /* Sesuai lebar sidebar */
    min-height: 100vh;
}

.topbar {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 10px;
}

.logout-area {
    margin-top: auto; /* Memaksa logout ke paling bawah */
    padding-top: 20px;
}

@media (max-width: 768px) {
    #sidebar { margin-left: -280px; }
    #content { margin-left: 0; }
}