/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #343a40;
    min-height: 100vh;
    padding-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar .sidebar-header {
    padding: 15px 20px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background-color: #495057;
}

/* Content */
.content {
    margin-left: 250px;
    padding: 10px;
    max-width: 1500px; /* Added to limit content width */
}

/* Card */
.card {
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-body {
    padding: 10px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}
/* Form */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.input-group .btn-primary {
    border-radius: 0 5px 5px 0;
}

/* Table */
.table {
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    width: auto; /* Ensure table adjusts to content */
    max-width: 100%; /* Prevent table from stretching beyond container */
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #343a40;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* Pagination */
.pagination .page-link {
    border-radius: 5px;
    margin: 0 3px;
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-danger,
.btn-warning {
    padding: 6px 12px;
    border-radius: 5px;
}

/* Modal */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
        padding: 15px;
        max-width: 100%; /* Adjust for smaller screens */
    }

    .table-responsive {
        border: 0;
    }
}

/* Tambahan untuk Kotak Statistik */
.card .card-body .list-group-item {
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
}

.card .card-body .badge {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.card .card-body h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}