/* General body and layout styling */
html, body {
    height: 100%; /* Ensure html and body take full height */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
}

.navbar {
    background-color: #007bff; /* Primary blue */
    border-bottom: 3px solid #0056b3;
}

.navbar-brand, .nav-link {
    color: white !important;
    font-weight: bold;
}

    .navbar-brand:hover, .nav-link:hover {
        color: #e2e6ea !important;
    }

.header .nav {
    display: flex;
    gap: 30px;
}

    .header .nav a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        padding: 5px 0;
        position: relative;
        border-radius: 4px; /* Rounded corners for nav links */
    }

        .header .nav a:hover {
            color: #e67e22; /* Orange on hover */
        }

.header .login-btn {
    padding: 8px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

    .header .login-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .header .login-btn::before {
        content: '\f007'; /* FontAwesome user icon */
        font-family: 'FontAwesome';
        margin-right: 8px;
    }

.header .signout-btn ::before {
    content: '\f08b '; /* FontAwesome sign-out  */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 20px;
}

.card-header {
    background-color: #007bff;
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 15px 20px;
}


.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" style="stop-color:white;stop-opacity:0.1"/><stop offset="100%" style="stop-color:white;stop-opacity:0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
        opacity: 0.3;
    }

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 12px;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.4);
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    }

.bg-light-subtle {
    background-color: #f8f9fa !important;
}


.display-5 {
    font-size: 2rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}




.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #4e555b;
        transform: translateY(-2px);
    }

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.progress {
    height: 25px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #28a745; /* Green for progress */
    border-radius: 10px;
    transition: width 0.6s ease-in-out;
}

.logo-image {
    margin: .2rem .75rem .5rem .5rem;
    height: 30px;
}

.text-danger {
    font-size: 0.875em;
}
/* Sticky footer specific adjustments */
.main-content-wrapper { /* New class for the div wrapping main */
    flex-grow: 1; /* This wrapper will take all available space */
    display: flex; /* Make it a flex container too */
    flex-direction: column; /* Stack its children vertically */
}

.containerOverride {
    padding-top: 20px;
    padding-bottom: 20px;
}
}

main {
    flex-grow: 1; /* Ensure main content itself grows */
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid #007bff;
    /* margin-top: auto; -- Removed, as the wrapper handles the pushing */
}

header {
    background-color: #2c3e50; /* Dark blue/grey */
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pagination-container {
    display: flex; /* or block, depending on layout preference */
    justify-content: center; /* Center the pagination */
    margin-top: 20px; /* Add some space above */
}

/* Styling for individual pagination buttons (page numbers, prev/next) */
.paginate_button {
    display: inline-block; /* Allows side-by-side display */
    padding: 8px 12px; /* Adjust padding for button size */
    margin: 0 4px; /* Space between buttons */
    border: 1px solid #ccc; /* Border around buttons */
    border-radius: 4px; /* Rounded corners */
    background-color: #f0f0f0; /* Default background color */
    color: #333; /* Default text color */
    text-decoration: none; /* Remove underline from links */
    cursor: pointer; /* Indicate interactivity */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

    /* Hover effect for inactive buttons */
    .paginate_button:hover {
        background-color: #e0e0e0;
    }

    /* Styling for the active (current) page button */
    .paginate_button.active {
        background-color: #007bff; /* Highlight active page */
        color: #fff; /* White text for active page */
        border-color: #007bff;
    }

    /* Styling for disabled buttons (e.g., when on the first page, "previous" is disabled) */
    .paginate_button.disabled {
        opacity: 0.6; /* Dim the disabled button */
        cursor: not-allowed; /* Indicate unclickable state */
        pointer-events: none; /* Prevent click events */
    }

/* Optional: Hide specific buttons if not needed (e.g., first/last) */
/*
.previous, .next {
  display: none;
}
*/
