body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.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: #f8f9fa;
}

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: #f2f2f2;
}

.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 */
}


/* Existing style.css content remains the same, adding the following enhancements */

.table-responsive {
    background-color: #f9fafb;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px;
}

.table-bordered {
    border: 2px solid #e0e4e8;
}

.table thead {
    background: linear-gradient(to right, #4a90e2, #50c878);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table thead th {
    font-weight: 600;
    border: none;
    padding: 15px;
    vertical-align: middle;
    color: white;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:nth-child(even) {
    background-color: #f4f6f8;
}

.table tbody tr:hover {
    background-color: #e9f5ff;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.table tbody td {
    vertical-align: middle;
    padding: 12px;
    color: #2c3e50;
    border-color: #e0e4e8;
    font-size: 14px;
}

.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;
}

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;
}