body {
    font-family: 'Segoe UI', Tahoma, Helvetica, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 500;
    border-bottom: none;
}

.card-body.bg-light {
    background-color: #f9fafb !important;
}

.dashboard-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 20px;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-primary {
    background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
}

.table th, .table td {
    vertical-align: middle;
}

.table .table-primary th {
    text-align: left !important; /* Force left-align headers with high specificity */
    color: #333;
    font-weight: 500;
    padding-left: 1rem; /* Consistent padding for left alignment */
}

.table .table-primary th a {
    color: #333 !important;
    text-decoration: none !important;
}

.table .table-primary th a:hover {
    text-decoration: underline !important;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

.list-group-item {
    border-left: 4px solid #007bff;
    margin-bottom: 10px;
    border-radius: 4px;
}

.btn {
    border-radius: 4px;
    padding: 6px 12px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #d1e7ff;
    color: #004085;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #007bff;
}

.nav-link {
    color: #ffffff !important;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.form-control, .form-select {
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    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.5);
}

.form-check-input {
    margin-top: 0.3rem;
}

.pagination .page-link {
    border-radius: 4px;
    margin: 0 2px;
    transition: background-color 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.text-primary {
    color: #007bff !important;
}

.text-secondary {
    color: #6c757d !important;
}

.animate-card {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

/* Search Box Styles */
.search-container {
    position: relative;
}

.search-container .input-group-text {
    background: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
}

.search-container .form-control {
    border-radius: 25px;
    padding-left: 2.5rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.search-container .bi-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}

.navbar-nav.me-auto {
    flex-grow: 1;
    gap: 0.5rem; /* Add spacing between buttons */
}

.navbar .form-check {
    margin-right: 1rem;
}

.navbar .form-check-label {
    font-size: 0.9rem;
}

/* Table Button Alignment */
.table .d-flex.flex-nowrap {
    gap: 0.5rem;
}

.table .btn-sm {
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

/* Case View Page Styles */
.card dl.row dt {
    font-weight: 500;
    color: #333;
}

.card dl.row dd {
    margin-bottom: 0.5rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

.table.align-middle th,
.table.align-middle td {
    vertical-align: middle;
}

.card-body {
    padding: 1.5rem;
}

.card-header.bg-primary {
    padding: 1rem;
}

h1.display-5 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Header Menu Button Styles */
.navbar-nav .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.navbar-nav .btn i {
    font-size: 0.9rem;
}

.navbar-nav .btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}