﻿/* --------------------------------------------------
   FONT IMPORT & GLOBAL STYLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Roboto:wght@100;300;400;500;600;700;900&display=swap');

* {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background: linear-gradient(to top, rgba(180, 220, 180, 0.9), rgba(240, 255, 240, 0.95) ), url('/SystemImages/MinSUBackground.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* --------------------------------------------------
   HEADER / NAVIGATION
-------------------------------------------------- */
header > nav {
    background: linear-gradient(to bottom, #7fcf97 0%, #b6e2c1 50%, #e8f9ec 100% );
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(2px);
}

#header-logo > h5 span:first-child {
    font-family: 'Dancing Script', cursive;
}

/* --------------------------------------------------
   UTILITY CLASSES
-------------------------------------------------- */
.clickable {
    cursor: pointer;
}

.small-font {
    font-size: 14px;
}

.remove-scrollbar::-webkit-scrollbar {
    width: 0;
}

/* Table compact style */
.table-sm td, .table-sm th {
    padding: 0.4rem;
    font-size: 0.875rem;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

    .input-with-icon > i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding-left: 15px;
    }

/* Panels */
.white-panel {
    background-color: var(--bs-white);
}

    .white-panel:hover {
        background-color: var(--bs-light);
    }

/* Hover effect */
.hover-grow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-grow:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* Background variations */
.green-gradient-background {
    background: linear-gradient(7deg, rgba(22, 140, 58, 1) 0%, rgba(94, 181, 129, 1) 50%, rgba(222, 210, 189, 1) 100% );
}

/* Layout sizes */
.full-height-minus-85 {
    height: calc(100vh - 85px);
}

.full-height-minus-210 {
    height: calc(100vh - 210px);
}

/* Hover background highlight */
.hover-bg-light:hover {
    background: rgba(248, 249, 250, 0.5);
}

/* Chart container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
}

/* Excel text formatting */
.text-format {
    mso-number-format: "\@";
}

/* Chatbot icon position */
#chatbot-icon {
    bottom: 0;
    right: 40px;
}

/* --------------------------------------------------
   ALERT (Desktop, Tablet, Mobile)
-------------------------------------------------- */
#alert {
    position: fixed;
    top: 12px;
    right: 0;
    width: auto;
    max-width: 40%;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.35);
}

    /* Slide-in desktop */
    #alert.active-alert {
        transform: translateX(-10px);
    }

/* Tablet */
@media (max-width: 991px) {
    #alert {
        max-width: 60%;
    }

        #alert.active-alert {
            transform: translateX(-5px);
        }
}

/* Mobile */
@media (max-width: 600px) {
    #alert {
        max-width: 90%;
        left: 5px;
        right: 5px;
    }

        #alert.active-alert {
            transform: translateX(0);
        }
}

/* --------------------------------------------------
   ANIMATION ON SCROLL
-------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Entry animation directions */
.fade-in-left {
    transform: translate3d(-40px, 0, 0) rotate3d(0, 0, 1, -2deg);
}

.fade-in-right {
    transform: translate3d(40px, 0, 0) rotate3d(0, 0, 1, 2deg);
}

.fade-in-up {
    transform: translate3d(0, 40px, 0);
}

.fade-in-down {
    transform: translate3d(0, -40px, 0);
}

.scale-in {
    transform: scale3d(0.9, 0.9, 0.9);
}

.rotate-in {
    transform: rotate3d(0, 0, 1, 8deg) scale3d(0.9, 0.9, 0.9);
}

/* After visibility */
.animate-visible {
    opacity: 1;
    transform: translate3d(0,0,0) scale3d(1,1,1) rotate3d(0,0,0,0);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* --------------------------------------------------
   DROPDOWN HOVER
-------------------------------------------------- */
.hover.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.2s ease-in-out;
}

/* Fade in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------
   NAV/LINK HOVER ANIMATION
-------------------------------------------------- */
.animated-hover-link {
    position: relative;
    display: inline-block;
    color: #212529 !important;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

    .animated-hover-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0;
        background-color: #198754;
        transition: width 0.3s ease-in-out;
    }

    .animated-hover-link:hover {
        color: #198754 !important;
        transform: scale(1.05);
    }

        .animated-hover-link:hover::after {
            width: 100%;
        }
