/* Base styles for consistency */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.navbar {
    background: #20c997 !important; /* Teal background for navbar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #099268; /* Darker teal border for separation */
}

.navbar-brand {
    font-weight: 700; /* Bolder font for visibility */
    color: #ffffff !important; /* High-contrast white */
    font-size: 1.5rem;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7); /* Stronger shadow for readability */
}

.nav-link {
    color: #ffffff !important; /* High-contrast white for unselected links */
    font-weight: 600; /* Bolder for emphasis */
    padding: 8px 12px;
    transition: background 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7); /* Stronger shadow for better contrast */
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.4) !important; /* Stronger hover effect */
    border-radius: 4px;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.nav-link.active {
    background: #099268 !important; /* Darker teal for active link */
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 700; /* Bolder for active state */
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8); /* Strongest shadow for active link */
}

.container {
    background: #dee2e6; /* Darker gray background for better navbar text contrast */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: #20c997; /* Match teal theme */
    box-shadow: 0 0 5px rgba(32, 201, 151, 0.3);
}

.form-label {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
}

.btn-primary {
    background: #20c997; /* Match teal theme */
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #099268; /* Darker teal for hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.alert-success {
    background: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
}

.alert-danger {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Report table adjustments */
.table-responsive {
    overflow-x: auto;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.table {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    table-layout: auto;
}

.table th {
    background: #20c997; /* Match teal theme */
    color: #ffffff;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 6px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.75rem;
    padding: 6px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Datepicker styling */
.datepicker {
    border-radius: 4px;
    font-size: 0.9rem;
}

.datepicker table {
    font-family: Arial, sans-serif;
    background: #ffffff;
}

.datepicker th, .datepicker td {
    padding: 6px;
}

.datepicker .day:hover, .datepicker .day.active {
    background: #20c997; /* Match teal theme */
    color: #ffffff;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .table th, .table td {
        font-size: 0.7rem;
        padding: 5px;
        max-width: 100px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}