body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #f8f9fa;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
th
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: #007bff;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.navbar {
    background-color: #333;
    padding: 10px 0;
}

.navbar a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #575757;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-block {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #243447;
    color: #ffffff;
}

tr:hover {
    background-color: #f1f1f1;
}

.table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.table th {
    background-color: #243447;
    color: #ffffff;
}

.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.btn-container .btn {
    margin-left: 10px;
}

#addUserForm {
    display: none;
    margin-top: 20px;
}

#addUserForm h2 {
    text-align: center;
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.pt-3 {
    padding-top: 1rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .navbar a {
        display: block;
        text-align: center;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #00bcd4);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #17a2b8, #00bcd4);
}

.bg-gradient-danger {
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
}

.btn-sm {
    padding: 5px 15px;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #fff;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.card-body {
    padding: 1.5rem;
}

.icon-circle i {
    font-size: 24px;
    line-height: 1;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Optional: spreads content evenly */
    padding: 1.5rem; /* Already present, kept for reference */
}

.card-body .btn {
    margin-top: auto; /* Pushes the button to the bottom */
}

.dashboard-container {
    margin-top: 1rem; /* 16px, overrides Bootstrap if needed */
}

.dashboard-container .sidebar .dashboard-dropdown-section {
    margin-bottom: 10px !important;
}

.dashboard-container .sidebar .dashboard-dropdown-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
}

.dashboard-container .sidebar .dashboard-dropdown-heading:hover,
.dashboard-container .sidebar .dashboard-dropdown-heading:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

.dashboard-container .sidebar .dashboard-dropdown-heading a {
    color: inherit;
    text-decoration: none;
}

.dashboard-container .sidebar .dashboard-dropdown-caret {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.dashboard-container .sidebar .dashboard-dropdown-section.dropdown-closed .dashboard-dropdown-caret {
    transform: rotate(-90deg);
}

.dashboard-container .sidebar .dashboard-dropdown-menu {
    margin: 0 0 14px 0 !important;
    padding-left: 0 !important;
}

.dashboard-container .sidebar .dashboard-dropdown-section.dropdown-closed > .dashboard-dropdown-menu,
.dashboard-container .sidebar .dashboard-dropdown-menu[hidden] {
    display: none !important;
}

/* Existing style.css content remains the same, adding the following enhancements */

.table-responsive {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px;
}

.table-bordered {
    border: 1px solid #cfd8e3;
}

.table thead {
    background: #243447;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table thead th {
    font-weight: 600;
    border-color: #35465c;
    padding: 15px;
    vertical-align: middle;
    background: #243447;
    color: #ffffff;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:nth-child(even) {
    background-color: #f6f8fb;
}

.table tbody tr:hover {
    background-color: #e8f1ff;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table tbody td {
    vertical-align: middle;
    padding: 12px;
    color: #1f2933;
    background-color: inherit;
    border-color: #d7dee8;
    font-size: 14px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #ffffff;
    background-color: #ffffff;
    color: #1f2933;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    --bs-table-bg-type: #f6f8fb;
    background-color: #f6f8fb;
    color: #1f2933;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #e8f1ff;
    background-color: #e8f1ff;
    color: #111827;
}

.table tbody td:nth-child(5) {
    font-weight: 600;
}

.table tbody td:nth-child(5):contains('Good') {
    color: #28a745;
}

.table tbody td:nth-child(5):contains('Excellent') {
    color: #007bff;
}

.table tbody td:nth-child(5):contains('Poor') {
    color: #dc3545;
}

.table tbody td:nth-child(7),
.table tbody td:nth-child(8) {
    font-weight: 500;
    color: #6c757d;
}

@media (max-width: 768px) {
    .table-responsive {
        padding: 10px;
        margin: 10px;
        font-size: 12px;
    }

    .table thead th {
        padding: 10px;
    }

    .table tbody td {
        padding: 8px;
    }
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a90e2, #50c878);
    border-radius: 4px;
}

/* System-wide DataTables polish */
.dt-container,
.dataTables_wrapper {
    width: 100%;
    color: #1f2933;
}

.dt-container .row,
.dataTables_wrapper .row {
    align-items: center;
    row-gap: 12px;
}

.dt-container .dt-layout-row {
    margin: 0 0 14px;
}

.dt-container .dt-layout-row.dt-layout-table {
    margin-bottom: 0;
}

.dt-container .dt-length,
.dt-container .dt-search,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dt-container .dt-search,
.dataTables_wrapper .dataTables_filter {
    justify-content: flex-end;
}

.dt-container .dt-search label,
.dt-container .dt-length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2933;
}

.dt-container .form-control,
.dt-container .form-select,
.dataTables_wrapper .form-control,
.dataTables_wrapper .custom-select {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    box-shadow: none;
    background-color: #ffffff;
    color: #1f2933;
}

.dt-container .dt-search input,
.dataTables_wrapper .dataTables_filter input {
    width: min(280px, 100%);
    margin-left: 0;
}

.dt-container .table,
.dataTables_wrapper .table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #1f2933;
}

.dt-container .table thead th,
.dataTables_wrapper .table thead th {
    white-space: nowrap;
    background: #243447;
    border-bottom: 1px solid #35465c;
    color: #ffffff;
    text-align: left;
}

.dt-container .table tbody td,
.dataTables_wrapper .table tbody td {
    text-align: left;
    color: #1f2933;
}

.dt-container .table tbody tr:hover,
.dataTables_wrapper .table tbody tr:hover {
    transform: none;
    box-shadow: none;
}

.dt-container .dt-info,
.dataTables_wrapper .dataTables_info {
    color: #4b5563;
    font-size: 0.875rem;
    padding-top: 0;
}

.dt-container .dt-paging,
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.dt-container .pagination,
.dataTables_wrapper .pagination {
    margin: 0;
    gap: 4px;
}

.dt-container .page-link,
.dataTables_wrapper .page-link {
    border-radius: 6px;
    color: #0d6efd;
    min-width: 36px;
    text-align: center;
}

.dt-container .active .page-link,
.dataTables_wrapper .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.table-responsive .dt-container,
.table-responsive .dataTables_wrapper {
    min-width: 720px;
}

@media (max-width: 768px) {
    .dt-container .dt-search,
    .dt-container .dt-length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dt-container .dt-paging,
    .dataTables_wrapper .dataTables_paginate {
        justify-content: flex-start;
    }

    .dt-container .dt-search input,
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
}

h1.mb-4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px !important;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h1.mb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #4a90e2, #50c878);
}



.add-items-dashboard {
    padding-top: 50px; /* Adds space at the top */
}

.dashboard-return-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dashboard-return-link:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.dashboard-return-link i {
    margin-right: 8px;
}
