﻿/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    font-size: 14px; /* Reduced overall font size */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333333; /* Default text color */
}

/* Header Styles */
header {
    background-color: lightgray; /* Light grey background for header */
    color: #800000; /* Maroon text color */
}

    header .navbar-brand {
        color: #000000; /* Black text color for brand */
    }

    /* Main Menu Default Font Color */
    header .navbar-nav .nav-link {
        color: #000000; /* Black text color for menu items */
        font-size: 0.9rem; /* Smaller font size for menu items */
        transition: background-color 0.3s, color 0.3s; /* Smooth transition */
    }

        /* Main Menu Hover Effect */
        header .navbar-nav .nav-link:hover {
            background-color: lightgray; /* Maroon background on hover */
            color: #8c2633; /* Darker maroon text color on hover */
        }

    /* Dropdown Menu Styles */
    header .navbar-nav .dropdown-menu {
        background-color: ghostwhite; /* Grey background for dropdown */
    }

    header .navbar-nav .dropdown-item {
        color: #000000; /* Black text color for dropdown items */
        font-size: 0.85rem; /* Reduced font size for dropdown items */
    }

        /* Dropdown Menu Hover */
        header .navbar-nav .dropdown-item:hover {
            background-color: lightgray; /* Maroon background on hover */
            color: #8c2633; /* Darker maroon text color on hover */
        }

/* Main Content Styles */
main {
    padding: 20px;
    font-size: 14px; /* Set default font size for main content */
}

/* Footer Styles */
footer {
    background-color: #f0f0f0; /* Grey background for footer */
    color: #000000; /* Black text color */
    font-size: 12px; /* Smaller font size for footer */
}

    footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    footer p {
        margin: 0;
        line-height: 1.6;
    }

    /* Align logo to the right */
    footer img {
        max-height: 48px;
        display: block;
        margin-left: auto; /* Aligns logo to the right */
    }

/* Responsive design for smaller screens */
@media (max-width: 767.98px) {
    .navbar-nav {
        text-align: center;
    }

        .navbar-nav .nav-item {
            margin-bottom: 10px;
        }

    .support-message {
        text-align: center;
        margin-bottom: 10px;
    }

    footer .row {
        flex-direction: column;
        text-align: center;
    }

    footer .col-md-6 {
        margin-bottom: 10px;
    }

        footer .col-md-6.d-flex {
            justify-content: center;
        }
}

/* Styles for larger devices */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }

    .support-message {
        display: flex;
        justify-content: flex-end;
    }
}

/* Login Container Styles */
.login-container {
    margin-top: 50px; /* Adjust this value to reduce gap */
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px; /* Consistent font size */
}

.form-signin input {
    border-radius: 8px;
    font-size: 14px; /* Reduce input font size */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-size: 14px;
}

.forgot-password {
    color: #007bff;
}

    .forgot-password:hover {
        color: #0056b3;
    }

.psrtextcolor {
    color: #800000;
}

.article {
    background-color: #fff;
    border-radius: 10px;
    font-size: 14px; /* Consistent article font size */
}

.card {
    border: none;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
}

.list-unstyled li {
    margin-bottom: 5px; /* Reduced space between list items */
}

.lead, p {
    line-height: 1.4; /* Reduced line-height for paragraphs */
    font-size: 14px; /* Consistent font size for paragraphs */
}

h2, h3 {
    margin-bottom: 10px; /* Reduced space after headers */
    font-size: 1.25rem; /* Adjusted header font sizes */
}

.form-control, .form-select {
    border-radius: 5px;
    font-size: 14px; /* Consistent input/select font size */
}

.btn {
    border-radius: 5px;
    font-size: 14px;
}

/* Report List Box */
.report-list-box {
    height: 300px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: small;
}

.btn-move {
    width: 50px; /* Ensures uniform button width */
    margin-bottom: 5px;
}

.filter-container {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #fff;
    font-size: 14px; /* Reduced font size in filter container */
}

.center-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.filter-select {
    height: 185px;
    width: 100%; /* Ensures select boxes fill their container */
}

.modal-custom {
    max-width: 650px; /* Set the maximum width */
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading {
    overflow: hidden;
}

    /* Anytime the body has the loading class, our
   modal element will be visible */
    body.loading .bodyoverlaymodal {
        display: block;
    }

/* Table header colors */
.RWtableheadcolor {
    background-color: #92212e !important; /* Darker shade for hover */
    color: #ffffff;
}

/* Timeout Message and Search Error Styles */
#divTimeoutMsg, #searchError {
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

/* Full-page overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

/* Spinner animation */
.spinner {
    border: 12px solid #f3f3f3; /* Light grey */
    border-top: 12px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: 0.1rem;
        margin-right: 0.1rem;
    }

/* Custom button styles */
.btn-danger {
    background-color: #92212e !important; /* Darker shade for hover */
    border-color: #92212e !important;
    font-size: 14px;
}

    .btn-danger:hover {
        background-color: #b02a37 !important;
        border-color: #b02a37 !important;
    }
