/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Changed text color from brown to dark navy */
    color: #001F3F;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* White with some transparency, adjust as desired */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Smooth transition for hiding */
    opacity: 1;
    visibility: visible;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allows clicks to pass through once hidden */
}

/* Fix for the Notice Board Marquee */
.notice-board {
    background-color: #f8f9fa;
    /* Changed border-left color from saddle brown to midnight blue */
    border-left: 5px solid #191970;
    padding: 10px;
    margin-bottom: 20px;
    overflow: hidden; /* This is essential to prevent the scrollbar */
    display: flex; /* Use flexbox to align title and marquee */
    align-items: center; /* Vertically center the items */
}

.notice-title {
    /* Changed title color from saddle brown to midnight blue */
    color: #191970;
    font-weight: bold;
    margin-right: 15px; /* Add some space between the title and the marquee */
    flex-shrink: 0; /* Prevents the title from shrinking */
}

.marquee {
    flex-grow: 1; /* Allows the marquee to take up the remaining space */
    white-space: nowrap; /* Forces the text to stay on one line */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width */
}

/* Rotating Logo */
.rotating-logo {
    width: 120px; /* Adjust logo size */
    height: 120px; /* Adjust logo size */
    animation: rotate 2s linear infinite; /* Apply the rotation animation */
    /* object-fit: contain;  Uncomment if your logo's aspect ratio needs preserving within the square */
}

/* Keyframe Animation for Rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Page Content (initially hidden) */
.page-content {
    display: none; /* Hide page content until loader is gone */
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Button Styles */
.btn-primary {
    /* Changed primary button background and border color from saddle brown to midnight blue */
    background-color: #191970;
    border-color: #191970;
}

.btn-primary:hover {
    /* Changed primary button hover background and border color to a darker blue */
    background-color: #000080;
    border-color: #000080;
}

.btn-secondary {
    /* Changed secondary button background and border color from beige to alice blue */
    background-color: #f0f8ff;
    border-color: #f0f8ff;
    /* Changed text color from brown to dark navy */
    color: #001F3F;
}

.btn-secondary:hover {
    /* Changed secondary button hover background and border color to a slightly darker blue */
    background-color: #B0C4DE;
    border-color: #B0C4DE;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    /* Changed table header text color from brown to dark navy */
    color: #001F3F;
}

/* Form Styles */
.form-control, .form-select {
    /* Changed form control border color from beige to a lighter blue */
    border: 1px solid #c5d5e4;
}

.form-control:focus, .form-select:focus {
    /* Changed form control focus border color from saddle brown to midnight blue */
    border-color: #191970;
    /* Changed form control focus box-shadow from saddle brown to midnight blue */
    box-shadow: 0 0 0 0.25rem rgba(25, 25, 112, 0.25);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
    }

    .card {
        border-radius: 8px;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Responsive for loader */
    .rotating-logo {
        width: 90px; /* Smaller logo on tablets */
        height: 90px;
    }
}

@media (max-width: 480px) {
    /* Responsive for loader */
    .rotating-logo {
        width: 70px; /* Even smaller on mobile */
        height: 70px;
    }
}


/* Custom Colors */
.bg-light-brown {
    /* Changed background color from beige to alice blue */
    background-color: #f0f8ff;
}

.text-brown {
    /* Changed text color from brown to dark navy */
    color: #001F3F;
}

/* Dashboard Widgets */
.dashboard-widget {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget-primary {
    /* Changed widget primary background color from saddle brown to midnight blue */
    background-color: #191970;
}

.widget-secondary {
    /* Changed widget secondary background color from a lighter brown to a darker blue */
    background-color: #000080;
}

.widget-tertiary {
    /* Changed widget tertiary background color from beige to a lighter blue */
    background-color: #c5d5e4;
    /* Changed text color from brown to dark navy */
    color: #001F3F;
}

/* Badge Styles */
.badge-brown {
    /* Changed badge background color from saddle brown to midnight blue */
    background-color: #191970;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    /* Changed scrollbar thumb color from saddle brown to midnight blue */
    background: #191970;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    /* Changed scrollbar thumb hover color to a darker blue */
    background: #000080;
}

