/* Custom Styles */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

.btn {
    border-radius: 0.375rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 80vh;
}

.dashboard-container .card {
    transition: transform 0.2s ease-in-out;
}

.dashboard-container .card:hover {
    transform: translateY(-2px);
}

.dashboard-container .card-body h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.dashboard-container .fa-2x {
    opacity: 0.8;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.dashboard-container canvas {
    max-height: 300px !important;
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #090a0a;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.table-actions {
    white-space: nowrap;
}

.nav-link.active {
    font-weight: 600;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Sections */
.form-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.form-section h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.btn-top-menu {
    position: fixed;
    right: 20px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }
}

/* Utility Classes */
.text-truncate-200 {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.menu-list {
    position: fixed;
    right: 15px;
    top: 64px;
    z-index: 999;
    background: #ccc;
    width: 146px;
}

.bg-1 {
    background: linear-gradient(135deg, #04143cb8 0%, #04143c 100%);
}