/* ===========================================
   GLOBAL STYLES
=========================================== */
body, div, table {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 12px !important;
}
/* Remove the accordion chevron for any nav-like button */
.accordion-button.no-caret::after {
    display: none !important;
}

/* Consistent font family across UI components */
.table,
.navbar,
.footer,
.form-control,
.card {
    font-family: "Times New Roman", Times, serif !important;
}

/* ===========================================
   LAYOUT STRUCTURE
=========================================== */
/* Slide-down sidebar */
/* Sidebar overlay layout */
#sidebar-wrapper {
    position: absolute;
    top: 5px; /* height of your header */
    left: 0;
    width: 250px;
    background-color: #fff;
    height: calc(100vh - 100px);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
}

/* Show sidebar */
.sidebar-visible #sidebar-wrapper {
    transform: translateX(0);
}

/* Dim background */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 1049;
    display: none;
}

.sidebar-visible #sidebar-overlay {
    display: block;
}

/* Sidebar toggle button */
#sidebar-toggle {
    position: fixed;
    top: 9px;
    left: 0px;
    z-index: 1060;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===========================================
   SPINNER (LOADING OVERLAY)
=========================================== */
#loadingSpinner1 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: #312e81;
    font-weight: 600;
}


/* ===========================================
   HOVER CARD ANIMATION
=========================================== */
.hover-card {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

    .hover-card:hover {
        background-color: #f0f8ff;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-6px);
    }
:root {
    --header-height: 80px;
    --footer-height: 40px;
}
/* Full height for flex container */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Flex-grow for main content to fill space */
#page-content-wrapper {
    flex: 1;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #70366c, #3b5569);
    color: white;
    text-align: center;
    padding: 10px 0;
}
.sidebar-heading {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border-radius: 0px 0px 5px 5px;
}

    .sidebar-heading span {
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        position: relative;
    }

/* Glowing Icon Effect */
.fa-cogs {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #00c6ff, 0 0 20px #00c6ff;
    }

    to {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #0072ff, 0 0 20px #0072ff;
    }
}

/* Underline Animation */
.underline-animation {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    animation: slide 1s infinite alternate;
}

@keyframes slide {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}
/* ==========================
    Welcome Card Styling
========================== */
.welcome-card {
    background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

    /* Animation Orbs */
    .welcome-card::before {
        content: "";
        position: absolute;
        top: -20%;
        right: -30%;
        width: 250px;
        height: 250px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: floatAnimation 6s ease-in-out infinite;
    }

    .welcome-card::after {
        content: "";
        position: absolute;
        bottom: -30%;
        left: -20%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        animation: floatAnimation 8s ease-in-out infinite reverse;
    }

/* Floating Animation */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==========================
    Underline Animation
========================== */
.underline-animate {
    position: relative;
    display: inline-block;
    color: white;
}

    .underline-animate::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: 0;
        left: 0;
        background-color: #fff;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease-in-out;
    }

    .underline-animate:hover::after {
        visibility: visible;
        transform: scaleX(1);
    }

/* ==========================
    Glowing Icon Animation
========================== */
.glowing-icon {
    color: #ffcc00;
    animation: glowAnimation 1.5s ease-in-out infinite alternate;
}
html {
    position: relative;
    min-height: 100%;
}

@keyframes glowAnimation {
    0% {
        text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00;
    }

    100% {
        text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00, 0 0 25px #ffcc00;
    }
}

/* ==========================
    Button Hover Effect
========================== */
button.btn-success, button.btn-warning {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

    button.btn-success:hover, button.btn-warning:hover {
        transform: translateY(-3px);
    }
