@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Premium Modern Blues */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #38bdf8;
    --accent-gold: #fbbf24;
    --btn-bg: var(--primary);
    --btn-hover: var(--primary-hover);
    
    /* Backgrounds */
    --bg-main: #cbd5e1; /* Restored Slate 300 */

    --bg-glass: #ffffff; /* Fully opaque - no transparency */
    --bg-glass-dark: #0f172a;
    
    /* Text */
    --text-main: #000000;
    --text-muted: #000000;
    --text-on-primary: #ffffff;

    
    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.03);




    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    /* Spacing */
    --container-max: 1280px;
    --section-pad: 4rem;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior: none; /* Prevent scroll-edge shadow/bounce */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-x: hidden;
    overscroll-behavior: none; /* Prevent scroll-edge shadow/bounce */
    -webkit-font-smoothing: antialiased;
}

p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    text-align: justify;
}





h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad) 0;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* Glassmorphism Components */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: none;
}

/* Navigation removed here, consolidated below */

/* Typography & Visuals */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.1);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
    color: white;
}

.btn:active {
    transform: translateY(0);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-modern:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-family: inherit;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* Navigation Styles - FIXED SOLID COLOR - does not change on scroll or between pages */
header, .glass-nav {
    background-color: #f3f4f6 !important;
    background: #f3f4f6 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none !important;
}



/* Header Refactor */
.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.25rem 0 0 0; /* Removed bottom padding */
}



.header-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-name-row {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08); /* The 'black line' divider */
}

.header-menu-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px; /* Reduced shift */
}


.logo-large { height: 90px; } /* Increased back from 75px */
.name-img-center { height: 65px; } /* Increased back from 55px */

.lion-large { height: 90px; } /* Increased back from 75px */

@media (max-width: 1024px) {
    .header-layout { flex-direction: column; gap: 1rem; }
    .header-side { width: 100%; justify-content: center; }
    .logo-large { height: 70px; }
    .lion-large { display: none; }
    .header-name-row { border-bottom: none; padding-bottom: 0.5rem; }
}

.card-title, .box-heading, .content-box h2, .content-box h3, h1, h2, h3, h4, h5, h6, .nav-link, .btn, table th {
    margin-bottom: 1.25rem;
    color: #000000; /* Solid Black */
    font-weight: 700;
    text-transform: capitalize !important; /* Proper case */
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2, .content-box h2 { font-size: 2rem; }
h3, .content-box h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }


.nav-menu {
    display: flex;
    gap: 0.2rem;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0.25rem 0 0 0; /* Reduced bottom padding */
}

.nav-link {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 50px; /* Fully rounded corners */
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 20px;
}

.lg-hide { display: none; }

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .header-layout { flex-direction: column; gap: 0.5rem; padding: 1rem 0; }
    .header-side { width: 100%; justify-content: space-between; } /* Space logos and toggle on mobile */
    .logo-large { height: 60px; }
    .lion-large { display: none; }
    .header-name-row { border-bottom: none; padding: 0.5rem 0; }
    .name-img-center { height: 45px; }
    
    .menu-toggle { display: flex; order: 2; }
    .header-side .logo-large { order: 1; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #e2e8f0; 
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
    
    .nav-menu.active { right: 0; }
}


/* Global Inner Page Modernization */
.wrap {
    margin: 15px;
    width: calc(100% - 30px);
    overflow: hidden;
}

.content-box {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: none;
    padding: 2rem;
    animation: fadeIn 0.6s ease forwards;
}

/* Ensure inner headings match the theme */
.content-box h2, .content-box h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Universal Table Styles */
table, .notice-table, #customers, #vendors {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0.5rem 0 !important; /* Reduced to fix uneven spacing between stacked tables */
    background: transparent !important;
}


table th, .notice-table th, #customers th, #vendors th {
    text-align: left !important;
    padding: 1rem !important;
    background: #cbd5e1 !important; /* Lightened from dark grey to Slate 300 */
    color: #1e293b !important; /* Dark text for better contrast on light grey */
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    text-transform: capitalize !important;
    letter-spacing: 0.02em;
}

table td, .notice-table td, #customers td, #vendors td {
    padding: 0.5rem 1rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    vertical-align: middle !important;
    text-transform: capitalize; /* Proper case for all table content */
}




/* Apply alternate colors to ALL tables globally */
table tr:nth-child(odd), .notice-table tr:nth-child(odd), #customers tr:nth-child(odd), #vendors tr:nth-child(odd) {
    background: #f3f4f6 !important; /* Light Grey */
}

table tr:nth-child(even), .notice-table tr:nth-child(even), #customers tr:nth-child(even), #vendors tr:nth-child(even) {
    background: #e5e7eb !important; /* Medium Light Grey - Distinct from white */
}

.notice-table tr:hover, #customers tr:hover, #vendors tr:hover {
    background: #f1f5f9 !important; /* Lighter hover highlight */
}

table td p, .notice-table td p, #customers td p, #vendors td p {
    margin: 0 !important;
}



/* Remove legacy float-based grid padding if needed */
.section.group {
    margin: 0;
    padding: 0;
}

/* Form Validation Styles */
label.error {
    color: #dc2626 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
    display: block !important;
}

input.error, select.error, textarea.error {
    border-color: #dc2626 !important;
}

/* Global Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #4b5563; /* Institutional Dark Grey */
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn:hover {
    background: #374151; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}
/* jQuery UI Datepicker Modernization */
.ui-datepicker {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important; /* Remove default padding to let header flush */
    font-family: 'Outfit', sans-serif !important;
    z-index: 9999 !important;
    width: 300px !important;
    overflow: hidden;
}

.ui-datepicker-header {
    background: #4b5563 !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
}

.ui-datepicker-title {
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.ui-datepicker-prev, .ui-datepicker-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    border: none !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
}

.ui-datepicker-prev { left: 10px !important; }
.ui-datepicker-next { right: 10px !important; }

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Fix for icons */
.ui-icon {
    display: block !important;
    text-indent: -99999px !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    width: 16px !important;
    height: 16px !important;
}

.ui-icon-circle-triangle-w {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='StatusM15 19l-7-7 7-7'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-size: contain !important;
}

.ui-icon-circle-triangle-e {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-size: contain !important;
}

.ui-datepicker-calendar {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

.ui-datepicker-calendar th {
    padding: 0.75rem 0 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    border: none !important;
}

.ui-datepicker-calendar td {
    padding: 2px !important;
    border: none !important;
}

.ui-state-default {
    display: block !important;
    padding: 0.5rem 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    border: none !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.ui-state-hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
}

.ui-state-active {
    background: #2563eb !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2) !important;
}

.ui-datepicker-today .ui-state-highlight {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

