
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}


.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background-color: #ffffff; 
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

.logo h2 {
    font-weight: 600;
    color: #007bff; 
    font-size: 1.4rem;
}


.nav-links {
    list-style: none;
    display: flex; 
}

.nav-links li {
    margin-left: 25px; 
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}


.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%; 
}


.logout-link {
    color: #dc3545;
    font-weight: 500;
}
.logout-link:hover {
    color: #a71d2a;
}
.logout-link::after {
    background-color: #dc3545;
}


.content-body {
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.content-body h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
}

.info-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    margin-top: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #28a745; 
    color: white;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}
.btn-primary:hover {
    background-color: #218838;
}

.btn-action {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-right: 5px;
    border: none;
    text-shadow: none;
}

.btn-edit {
    background-color: #ffc107; 
    color: #343a40;
}
.btn-edit:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #dc3545; 
    color: white;
}
.btn-delete:hover {
    background-color: #c82333;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse; 
    text-align: left;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6; 
}

.data-table th {
    background-color: #f8f9fa; 
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Baris */
.data-table tbody tr:hover {
    background-color: #e9ecef; 
}

.data-table td:last-child {
    text-align: center;
    white-space: nowrap; 
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}


.access-adm { 
    background-color: #007bff !important; /* Biru terang untuk Admin */
    color: white !important; 
}

.access-usr { 
    background-color: #6c757d !important; /* Abu-abu gelap untuk User */
    color: white !important; 
}

.access-admin {
    background-color: #007bff !important;
    color: white !important; 
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #ccc; 
}

.access-operator {
    background-color: #ffc107; 
    color: #343a40;
}


.aksi-col {
    text-align: center; 
    width: 150px; 
    white-space: nowrap;
}

.data-table th.aksi-col {
    text-align: center;
}

.access-usr { 
    background-color: #6c757d; 
    color: white; 
}

.form-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    max-width: 600px; 
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block; 
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}


.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da; 
    border-radius: 4px;
    font-size: 1rem;
    color: #495057;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff; 
    outline: none; 
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); 
}

.form-actions {
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right; 
}

.btn-secondary {
    background-color: #6c757d; 
    color: white;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
    margin-right: 10px;
    cursor: pointer;
    border: none;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.form-actions input[type="submit"] {
    cursor: pointer;
}

.form-actions input[type="submit"].btn-primary {
    background-color: #28a745;
    color: white;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s;
    border: none;
}
.form-actions input[type="submit"].btn-primary:hover {
    background-color: #218838;
}


.data-table .small-col {
    width: 80px;
    font-weight: 600;
}

.data-table .right-align {
    text-align: right;
    font-weight: 500;
    white-space: nowrap; 
}

.data-table th.right-align {
    text-align: right;
}



.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif; 
    font-size: 1rem;
    color: #495057;
    resize: vertical; 
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea:focus {
    border-color: #007bff; 
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.data-table .date-col {
    width: 100px; 
    text-align: center;
    font-weight: 500;
}