body {
    background-color: #F4F6F8;
    font-family: Arial, sans-serif;
    padding-top: 80px;
}

.navbar {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Logo */
.logo {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #002B5B;
}

.navbar-brand img, .logo img {
    height: 50px;
}


.active-link {
    border-bottom: 2px solid #D6A800;
    font-weight: bold;
}

.logout-form {
    display: none;
}

/* Filter Styling */
.filter-select {
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    padding: 10px 15px;
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.filter-btn {
    border-radius: 20px;
    font-size: 16px;
}

/* Card styling */
.card-container {
    margin-bottom: 20px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
}

.badge-new { background-color: #002B5B; }
.badge-reduced { background-color: #D6A800; }
.status { font-weight: bold; }

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.card-body {
    flex-grow: 1;
}

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

.login_card {
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #002B5B;
    border: none;
}

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

.card-title {
    color: #002B5B; /* Navy Blue */
    font-weight: bold;
}

.card-body p {
    color: #333333; /* Dark Gray */
    font-size: 16px;
}

.card-body strong {
    color: #6C757D; /* Muted Gray */
}

.text-primary {
    color: #004AAD !important; /* Gold */
    font-weight: bold;
}

.card-footer .btn {
    background-color: #002B5B; /* Navy Blue */
    color: #FFFFFF; /* White Text */
    font-weight: bold;
}

.card-footer .btn:hover {
    background-color: #001F3F; /* Darker Navy for Hover */
}


/* Input Focus Effects */
input:focus,
select:focus,
textarea:focus {
    border-color: #002B5B;
    box-shadow: 0 0 0 0.25rem rgba(0, 43, 91, 0.5);
}

/* Error Message Styling */
.text-danger {
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Responsive Card */
@media (max-width: 576px) {
    .card {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    list-style-type: none;
    padding: 20px;
}

.pagination-list {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a, .pagination span {
    text-decoration: none;
    padding: 8px 12px;
    font-size: 14px;
    color: #002B5B;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #002B5B;
    color: white;
}

.pagination .current {
    font-weight: bold;
    background-color: #002B5B;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #F4F6F8;
    border-color: #ddd;
    height: 36px;
    line-height: 36px;
}

.pagination .previous, .pagination .next {
    font-weight: bold;
}

.pagination .first, .pagination .last {
    font-weight: bold;
}

.pagination .page-link {
    font-size: 14px;
}

/* Mobile-Friendly Pagination */
@media (max-width: 576px) {
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.popup-title {
    font-size: 18px;
    font-weight: bold;
    color: #002B5B;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #002B5B;
    cursor: pointer;
}

.popup-content {
    font-size: 16px;
    color: #333;
}

.popup-content .btn {
    background-color: #002B5B;
    color: white;
    font-weight: bold;
    border-radius: 8px;
}

.popup-content .btn:hover {
    background-color: #001F3F;
}

footer {
  background-color: #080918 !important;  /* Overrides Bootstrap's bg-dark */
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
    .popup {
        width: 90%;
        padding: 15px;
    }
}
