/* ---------------------- */
/* IMPORT GOOGLE FONTS */
/* ---------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

.header-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-left: 15px; /* Maintain original spacing */
    font-family: 'Assistant', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ---------------------- */
/* GENERAL STYLING */
/* ---------------------- */
body {
    font-family: 'Assistant', sans-serif;
    font-weight: 400;
    /* Updated elegant light purple background gradient */
    background: linear-gradient(135deg, #f0f1fa, #e8eaf6, #dce1ff);
    margin: 0;
    padding: 0;
    position: relative; /* Ensure positioning context for the logo */
    color: #2c3e50;
}

/* 🔹 Full-Sized Opaque Background Logo */
.body-logo {
    content: "";
    background: url('/static/images/extropy_lOGO_vertical.png') no-repeat center center;
    background-size: contain; /* Ensures proper scaling */
    position: fixed;
    top: 370px;  /* Moves logo to the center vertically */
    left: 1190px; /* Moves logo to the center horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    width: 400px; /* Maintain original width */
    height: 400px; /* Maintain original height */
    opacity: 1; /* Slightly more transparent for professional look */
    z-index: -1; /* Ensure it's behind other content */
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.05));
}

/* Ensure all headers use upgraded font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Assistant', sans-serif;
    color: #1e3a8a;
}

/* Ensure all normal content text uses upgraded font */
body, p, div, span, a, li, td, th {
    font-family: 'Assistant', sans-serif;
}

/* ---------------------- */
/* NAVBAR - ENHANCED PROFESSIONAL STYLING */
/* ---------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0; /* Ensure navbar is aligned to the left */
    z-index: 999;
    height: 70px; /* Maintain original height */
    padding: 0 10px; /* Reduced padding to ensure all content fits */
    /* Updated to match vendor_template.html exactly */
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #303f9f 100%);
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    
    /* Improved border and shadow */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    
    /* Adding subtle pattern overlay from vendor template */
    position: relative;
}

/* Adding elegant overlay pattern from vendor template */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, 
                                     transparent 50%, rgba(255, 255, 255, 0.03) 50%, 
                                     rgba(255, 255, 255, 0.03) 75%, transparent 75%, transparent);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

/* Add bottom reflection line */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ---------------------- */
/* Navbar Brand (Logo Section) - ENHANCED */
/* ---------------------- */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    margin-left: 10px; /* Add some spacing from left edge */
}
/* More specific selectors with !important to override existing styles */
.navbar .navbar-brand {
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); /* Subtle outline */
    z-index: -1;
}
.navbar-brand img {
    /* Reduced height to better fit navbar */
    height: 80px; /* Reduced from 80px */
    width: 80px; /* Maintaining square aspect ratio */
    left: 20px;
    
    /* Changed to light grey background */
    background: rgba(220, 225, 230, 0.85); /* Light grey with slight transparency */
    padding: 6px; /* Slightly reduced padding */
    border-radius: 8px; /* Slightly reduced radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.3s ease;
}

.navbar .navbar-brand img {
    height: 80px !important; /* Further reduced */
    width: 80px !important;
    object-fit: contain !important; /* Ensures image maintains aspect ratio */
    padding: 6px !important;
    background: rgba(220, 225, 230, 0.85) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Optional hover effect */
.navbar-brand img:hover {
    background: rgba(210, 215, 220, 0.9); /* Slightly darker on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* ---------------------- */
/* Main Navbar with Icons - ENHANCED STYLING MATCHING VENDOR TEMPLATE */
/* ---------------------- */
.main-navbar {
    display: flex;
    justify-content: flex-end; /* Position to the right */
    align-items: center;
    gap: 10px; /* Reduced gap between buttons */
    margin-right: 10px; /* Reduced to prevent overflow */
    z-index: 10;
    max-width: 60%; /* Limit width to ensure it fits */
}

/* Navigation Links - EXACTLY MATCHING VENDOR TEMPLATE.HTML */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    flex-shrink: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon styling - exactly matching vendor template */
.nav-link i, .nav-icon {
    margin-right: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

/* Hover effects for nav links - exactly matching vendor template */
.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover i, .nav-link:hover .nav-icon {
    transform: translateY(-1px);
    color: #ffffff;
}

/* Active link styling - exactly matching vendor template */
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    border-radius: 3px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .main-navbar {
        max-width: 70%;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
        max-width: 110px;
    }
    
    .nav-link i, .nav-icon {
        font-size: 14px;
    }
}

/* ---------------------- */
/* FLASH CONTAINER */
/* ---------------------- */
.flash-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

/* ---------------------- */
/* FLASH MESSAGE */
/* ---------------------- */
.flash-message {
    background: rgba(0, 128, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

/* ---------------------- */
/* FLASH DANGER */
/* ---------------------- */
.flash-danger {
    background: rgba(220, 53, 69, 0.9);
}

/* ---------------------- */
/* FLASH WARNING */
/* ---------------------- */
.flash-warning {
    background: rgba(255, 193, 7, 0.9);
}

/* ---------------------- */
/* ANIMATION: FADE IN */
/* ---------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
}
/* ---------------------- */
/* PAGE TITLE */
/* ---------------------- */
.page-title {
    position: absolute;
    top: 95px;
    left: 50px;
    font-size: 40px;
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
    color: #f8f9fa;
    padding: 10px;
    background: #102a43;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 780px;
    text-align: center;
}

/* ---------------------- */
/* SERVICE BOXES - KEEPING 3+2 LAYOUT */
/* ---------------------- */
.box {
    position: absolute;
    width: 250px;
    height: 200px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer; /* Changes to hand icon */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border: 2px solid #ffffff;
    font-size: 16px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* ---------------------- */
/* HOVER EFFECT */
/* ---------------------- */
.box:hover {
    transform: translateY(-5px);
    opacity: 0.9;
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.3);
}

/* ---------------------- */
/* DYNAMIC BOXES */
/* ---------------------- */
.dynamic-box {
    position: absolute;
    transition: all 0.5s ease-in-out;
}

/* ---------------------- */
/* FIXED POSITIONS FOR THE BOXES */
/* ---------------------- */
#box1 { top: 190px; left: 50px; }
#box2 { top: 190px; left: 330px; }
#box3 { top: 190px; left: 610px; }
#box4 { top: 430px; left: 190px; }
#box5 { top: 430px; left: 470px; }

/* ---------------------- */
/* SUCCESS MESSAGE STYLING */
/* ---------------------- */
.success-message {
    position: fixed;
    bottom: 0;
    right: 0;
    background: none;
    color: #007bff;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
}
/* ---------------------- */
/* TOAST NOTIFICATIONS FIX */
/* ---------------------- */
.toast {
    position: fixed;
    top: 20px;          /* Changed from bottom to top */
    right: 20px;
    min-width: 250px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;  /* Ensures better visibility */
    color: #ffffff;     /* Ensures text remains readable */
    background: rgba(0, 0, 0, 0.8); /* Darker background for better contrast */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Slightly enhanced shadow */
    z-index: 9999;      /* Added to ensure it's above everything */
    opacity: 0;
    visibility: visible; /* Changed from hidden to visible */
    transform: translateY(-20px); /* Changed direction for top positioning */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeOut 0.5s ease-in-out 2.5s forwards;
}

/* Ensure fade-out effect */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px); /* Changed direction for top positioning */
    }
}

/* Different Backgrounds for Toast Types */
.toast-info {
    background-color: #007bff; /* Blue background for info */
}

.toast-error {
    background-color: #dc3545; /* Red background for error */
}

/* Ensure toast is completely removed from the DOM */
.toast.fadeOut {
    display: none !important;
}

.toast-success {
    background-color: #28a745;
}

/* No need to repeat toast-error as it's already defined above */
/* ---------------------- */
/* RESPONSIVE DESIGN */
/* ---------------------- */
@media (max-width: 1200px) {
    .navbar {
        height: 60px;
    }
}
/* ---------------------- */
/* BOX BACKGROUND COLORS */
/* ---------------------- */
#box1 { background: linear-gradient(to bottom, #1E3A8A, #2C5282); color: #FFFFFF; }
#box2 { background: linear-gradient(to bottom, #16A085, #1ABC9C); color: #FFFFFF; }
#box3 { background: linear-gradient(to bottom, #6D28D9, #8B5CF6); color: #FFFFFF; }
#box4 { background: linear-gradient(to bottom, #4A90E2, #5DADE2); color: #000000; }
#box5 { background: linear-gradient(to bottom, #305185, #324d75); color: #ECF0F1; }

/* ---------------------- */
/* FORM GROUP */
/* ---------------------- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Ensure the confirm password field is visible */
#confirm_password {
    display: block;
}

/* Ensure the confirm password field is visible */
#reg-confirm-password {
    display: block;
}

/* Footer Copyright */
/* Footer Styling - Updated to match vendor_template.html */
.footer {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    padding: 5px 0;
    width: 100%;
    font-size: 13px;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.footer-copyright {
    padding: 5px 0;
}

/* Adjust height to auto */
.auth-panel {
    height: auto;
    max-height: 95vh; /* Ensure it doesn't exceed the viewport height */
    overflow-y: auto; /* Add scroll if content exceeds max-height */
}
/* 🔹 HOVER FRAME – Matches Page Title Background */
.hover-frame {
    position: fixed;
    right: 50px; /* Distance from right */
    top: 115px; /* Aligns with the page title */
    width: 530px; /* Fixed width */
    height: 500px; /* Fixed height */
    background: rgba(16, 42, 67, 0.8); /* Adjusted for higher transparency */
    color: white;
    border-radius: 8px;
    padding: 15px;
    display: none; /* Hidden by default */
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* 🔹 Scrolling Content */
.hover-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 🔹 Scrolling Text */
.hover-text {
    position: absolute;
    width: 100%;
    text-align: left; /* Align for better readability */
    font-size: 16px;
    font-weight: bold;
    line-height: 28px;
    white-space: normal; /* Ensure text wraps properly */
    animation: scrollText 100s linear infinite; /* Adjusted speed */
}

/* 🔹 Animation – Continuous & Smooth Scroll */
@keyframes scrollText {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Ensure <b> and <p> tags retain their styles */
.hover-text b {
    font-weight: bold;
}

.hover-text p {
    font-weight: normal;
}

/* Ensure headers in hover text use font and increase font weight */
.hover-text h1, .hover-text h2, .hover-text h3, .hover-text h4, .hover-text h5, .hover-text h6 {
    font-family: 'Assistant', sans-serif;
    font-weight: 700; /* Maintain weight */
}

/* Ensure normal text in hover text uses font */
.hover-text p, .hover-text div, .hover-text span, .hover-text a, .hover-text li, .hover-text td, .hover-text th {
    font-family: 'Assistant', sans-serif;
}

/* Keyword Highlight */
.highlight {
    background-color: #ffeb3b; /* Soft yellow highlight */
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}
/* ---------------------- */
/* BOTTOM NOTIFICATIONS - PART 1 */
/* ---------------------- */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 80%;
    z-index: 9999;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s forwards;
    opacity: 0;
}
/* ---------------------- */
/* BOTTOM NOTIFICATIONS - PART 2 */
/* ---------------------- */
.notification-success {
    background-color: #28a745; /* Green background */
}

.notification-error {
    background-color: #dc3545; /* Red background */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notificationFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.notification.fadeOut {
    animation: notificationFadeOut 0.5s forwards;
}
/* Standardize flash message styling */
.flash-message-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    display: inline-block;
    opacity: 0.95;
    transition: opacity 0.5s ease-in-out;
}

/* Login Success */
.alert.success {
    background-color: #28a745;
}

/* Logout Flash */
.alert.warning {
    background-color: #ff9800;
}

/* Fade-out effect */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.flash-message-box .alert {
    animation: fadeOut 5s forwards;
}
