/* ==================================== */
/* Gaya Umum & Variabel                 */
/* ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4a4a6a;
    --secondary-color: #f0f0f5;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --card-bg: #fff;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-color-dark);
}

/* ==================================== */
/* Gaya Halaman Login                   */
/* ==================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.login-form h2 {
    font-size: 2em;
    color: #4a4a6a;
    margin-bottom: 30px;
    font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #4a4a6a;
    outline: none;
}

.login-form button {
    width: 100%;
    padding: 15px;
    background-color: #4a4a6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-form button:hover {
    background-color: #383b54;
    transform: translateY(-2px);
}

.login-form .error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: 500;
}

.login-form p {
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
}

.login-form a {
    color: #4a4a6a;
    text-decoration: none;
    font-weight: 600;
}

.login-form a:hover {
    text-decoration: underline;
}

/* ==================================== */
/* Gaya Dashboard (Sidebar & Konten)    */
/* ==================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--secondary-color);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 25px 0;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 5px;
    padding: 0 20px;
}

.sidebar-header h2 {
    font-size: 1.6em;
    margin: 0;
    font-weight: 600;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 0 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 400;
    border-radius: 8px;
    transition: background-color 0.3s, padding-left 0.3s;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 1.1em;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: #5e5e80;
    padding-left: 20px;
}

.sidebar .logout {
    margin-top: auto;
    border-top: 1px solid #5e5e80;
    padding-top: 10px;
}

/* Top-Bar Dashboard */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 20px;
}

.user-info .user-role {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.user-info .user-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.logout a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.logout a:hover {
    background-color: #ffe8e8;
}

.logout a i {
    margin-right: 8px;
}


/* Konten Utama Dashboard */
.main-content {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.main-header {
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

/* Kartu Dashboard */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #4a4a6a;
}

.card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #888;
    font-weight: 400;
}

.card p {
    margin: 5px 0 0;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-color-dark);
}

/* Gaya Tabel */
.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.data-table-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 25px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.data-table th {
    background-color: #fafafa;
    color: #666;
    font-weight: 600;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Gaya untuk Tabs */
.tabs-container {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.tab-item {
    padding: 10px 20px;
    text-decoration: none;
    color: #777;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-right: 15px;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Tombol Aksi Tabel */
.btn-action {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 5px;
}

.btn-action.edit {
    background-color: #2980b9;
    color: white;
}

.btn-action.delete {
    background-color: #c0392b;
    color: white;
}
/* ==================================== */
/* Gaya Submenu Sidebar                 */
/* ==================================== */
.has-submenu .sidebar-item-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-submenu .toggle-icon {
    transition: transform 0.3s ease;
}

.has-submenu.active .toggle-icon {
    transform: rotate(180deg);
}

.has-submenu .submenu-list {
    display: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.has-submenu .submenu-list a {
    padding-left: 45px;
    font-size: 0.95em;
    background-color: #5e5e80;
    margin-bottom: 5px;
}

.has-submenu.active .submenu-list {
    display: block;
}
.btn-tambah {
    background-color: #007bff; /* Warna biru */
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-tambah:hover {
    background-color: #0056b3;
}
/* ==================================== */
/* Gaya Form Pendaftaran Pengguna       */
/* ==================================== */

/* Perbesar form container */
.form-container {
    background-color: var(--card-bg);
    padding: 40px; /* Tambah padding agar ruang lebih luas */
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    max-width: 750px; /* Perpanjang lebar form container */
    margin: 20px auto;
}

.user-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Tambah jarak antar grup input */
}

/* Perbesar font label */
.user-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: block;
    font-size: 16px; /* Perbesar ukuran font label */
}

/* Perpanjang dan perbesar kolom input */
.user-form .form-group input,
.user-form .form-group select {
    width: 100%;
    padding: 15px; /* Tambah padding agar kolom lebih tinggi */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 18px; /* Perbesar ukuran font di dalam input */
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.user-form .form-group input:focus,
.user-form .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}


/* ... kode CSS lainnya untuk warna dan pesan tetap sama ... */
