/* Style dasar untuk body dan header */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-size: 14px;
    
}

header {
    background: #002366;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo-title img {
    height: 40px;
}

header .logo-title h1 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

header nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

header nav a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #002366;
    border-radius: 5px;
    background-color: #FFD700;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

header nav a:hover {
    background-color: #FFC300;
    transform: translateY(-2px);
}

header nav a.logout-btn {
    background-color: #dc3545;
    color: #ffffff;
}

header nav a.logout-btn:hover {
    background-color: #c82333;
    color: #ffffff;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }
    header .logo-title {
        margin-bottom: 10px;
    }
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    header nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.breadcrumb {
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.breadcrumb span {
    padding: 2px 5px;
    border-radius: 3px;
}

/* Style untuk custom alert */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.5s ease-out, fadeOut 5s ease-in forwards;
}

.custom-alert.success {
    background: #28a745;
}

.custom-alert.error {
    background: #dc3545;
}

@keyframes slideIn {
    from { right: -300px; }
    to { right: 20px; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Style untuk search box */
.search-container {
    margin: 0 0 20px 0;
    position: relative;
}

.search-container input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    padding-right: 40px;
}

.search-container input:focus {
    border-color: #002366;
    box-shadow: 0 0 5px rgba(0,35,102,0.3);
}

.search-container .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Style untuk tombol tambah data */
.btn-tambah-data {
    background: #002366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: -35px;
}

.btn-tambah-data:hover {
    background: #001a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-tambah-data i {
    margin-right: 5px;
}

/* Style untuk tombol aksi */
.btn-aksi {
    text-decoration: none;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s ease;
    font-size: 14px;
    margin: 2px;
}

.btn-lihat {
    background: #0d47a1;
}

.btn-edit {
    background: #ff9800;
}

.btn-hapus {
    background: #f44336;
}

.btn-aksi:hover {
    opacity: 0.9;
}

/* Style untuk confirmation dialog yang lebih modern */
.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none;
    width: 400px;
    max-width: 90%;
}

.confirmation-dialog .message {
    margin-bottom: 25px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    text-align: center;
}

.confirmation-dialog .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.confirmation-dialog button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.confirmation-dialog button.confirm {
    background: #dc3545;
    color: white;
}

.confirmation-dialog button.confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.confirmation-dialog button.cancel {
    background: #6c757d;
    color: white;
}

.confirmation-dialog button.cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

/* New styles for moved inline styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 3% 0 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
}

.modal-content h3 {
    margin-bottom: 20px;
}

.modal-input {
    width: 92%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.modal-input:focus {
    outline: none;
    border-color: #002366;
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.1);
    background-color: #fff;
}

.modal-form-group {
    margin-bottom: 20px;
    position: relative;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.modal-form-group:last-child {
    margin-bottom: 25px;
}

/* Efek hover dan focus yang lebih modern */
.modal-input:hover {
    border-color: #b3b3b3;
}

/* Animasi untuk label saat input focus */
.modal-form-group.focused label {
    color: #002366;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.modal-buttons {
    text-align: right;
}

.modal-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-button.cancel {
    background: #ccc;
    margin-right: 10px;
}

.modal-button.submit {
    background: #002366;
    color: white;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    padding: 8px; /* Mengurangi padding dari 12px ke 8px */
    text-align: left;
    background: #0d47a1;
    color: white;
    border-right: 1px solid rgba(255,255,255,0.2);
    font-size: 13px; /* Menambahkan ukuran font yang lebih kecil */
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 8px; /* Mengurangi padding dari 12px ke 8px */
    border-bottom: 1px solid #ddd;
    border-right: 1px solid rgba(0,0,0,0.1);
    font-size: 13px; /* Menambahkan ukuran font yang lebih kecil */
    line-height: 1.3; /* Mengurangi line-height */
}

.data-table td:last-child {
    border-right: none;
}

.data-table .no-data {
    padding: 20px;
    text-align: center;
    border-right: none; /* Pastikan tidak ada border untuk pesan no-data */
}

.action-buttons {
    padding: 8px;
}

.action-button {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
    text-decoration: none;
}

.action-button.view {
    background: #002366;
    color: white;
}

.action-button.edit {
    background: #FFD700;
    color: #002366;
}

.action-button.delete {
    background: #dc3545;
    color: white;
}
.action-button.add {
    background: #28a745;
    color: white;
}


