/* CSS Variables - CORRECTED CLaaS2SaaS Brand Colors */
:root {
    /* PRIMARY - 10% usage (accent) */
    --color-primary-midnight: #193e6b;
    /* Midnight Blue */
    --color-primary-gold: #B3A125;
    /* Gold Green */

    /* SECONDARY - 30% usage */
    --color-secondary-violet: #7F3F98;
    /* Cadmium Violet */
    --color-secondary-blue: #448E9D;
    /* Jelly Bean Blue */
    --color-secondary-sunray: #E9AC53;
    /* Sunray */

    /* TERTIARY & NEUTRAL - 60% usage (dominant) */
    --color-tertiary-avocado: #5F8025;
    /* Avocado Green */
    --color-tertiary-red: #991547;
    /* Violet-Red */
    --color-neutral-beige: #EEE7E0;
    /* Platinum Beige (60% background) */
    --color-neutral-white: #FFFFFF;
    --color-neutral-dark: #333333;

    /* UI Application (60-30-10 Rule Applied) */
    --color-background: var(--color-neutral-beige);
    /* 60% - Neutral */
    --color-surface: var(--color-neutral-white);
    /* Surface cards */
    --color-primary: var(--color-primary-midnight);
    /* Primary text/buttons */
    --color-accent: var(--color-primary-gold);
    /* 10% - Accent elements */
    --color-secondary: var(--color-secondary-blue);
    /* 30% - Secondary elements */
    --color-warning: var(--color-secondary-sunray);
    --color-danger: var(--color-tertiary-red);
    --color-success: var(--color-tertiary-avocado);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Layout Dimensions */
    --header-height: 70px;
    --sidebar-width: 250px;
    --sidebar-collapsed: 70px;
    --container-padding: 30px;
    --app-switcher-height: 50px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-neutral-dark);
    line-height: 1.6;
    /*height: 100vh;*/
    overflow: hidden;
}

/* Import Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ==================== */
/* MAIN HEADER */
/* ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-primary);
    color: var(--color-neutral-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo Area - Adjusts with sidebar */
.header-left {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.logo-container {
    white-space: nowrap;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-container:hover {
    opacity: 0.9;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-neutral-white);
    display: block;
    transition: font-size 0.3s ease;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

/* Module buttons in header (when not in landing) */
.module-buttons-header {
    display: none;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.module-btn-header {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.module-btn-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-neutral-white);
}

.module-btn-header.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-neutral-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.module-btn-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 1001;
    pointer-events: none;
}

.module-btn-header:hover .module-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
}

.search-container {
    position: relative;
}

.search-container input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-neutral-white);
    padding: 10px 15px 10px 40px;
    border-radius: 6px;
    width: 300px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(179, 161, 37, 0.2);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
}

/* Adjust the icon position to match the new padding */
.search-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    /* Slightly larger icon */
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-danger);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--color-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    position: relative;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 16px;
}

.user-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.user-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-surface);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-neutral-dark);
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(25, 62, 107, 0.05);
}

/* ==================== */
/* SIDEBAR */
/* ==================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--color-surface);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 800;
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* Landing sidebar state - brand pattern */
.sidebar-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* This centers the cube vertically */
    height: 100%;
    /* Fills the sidebar height */
    padding: 20px;
    text-align: center;
}

.sidebar-pattern {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg,
            rgba(25, 62, 107, 0.1) 0%,
            rgba(179, 161, 37, 0.1) 25%,
            rgba(68, 142, 157, 0.1) 50%,
            rgba(127, 63, 152, 0.1) 75%,
            rgba(233, 172, 83, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

.sidebar-pattern::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--color-surface);
    z-index: 1;
    transition: width 0.3s ease, height 0.3s ease;
}

.sidebar-pattern::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg,
            var(--color-secondary-blue) 0deg 15deg,
            transparent 15deg 30deg);
}


   

.brand-icon {
    position: relative;
    z-index: 3;
    font-size: 40px;
    color: var(--color-primary);
    opacity: 0.8;
    transition: font-size 0.3s ease;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    height: 60px;
    width: 160px;
    margin-left: 100px;
}

.Dev_font {
    font-weight: bold;
    font-size: 1.5rem;
    color: #B3A125;
    margin-left: 50px;
}

.sidebar-hint {
    margin-top: 25px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: #666;
    max-width: 200px;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

/* Module sidebar state - navigation */
.sidebar-module {
    display: none;
    flex-direction: column;
    height: 100%;
}

.sidebar-module.active {
    display: flex;
}

.sidebar-header {
    padding: 25px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.module-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-title i {
    color: var(--color-accent);
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}

.nav-item:hover {
    background-color: rgba(25, 62, 107, 0.05);
    color: var(--color-primary);
    border-left-color: rgba(25, 62, 107, 0.2);
}

.nav-item.active {
    background-color: rgba(68, 142, 157, 0.1);
    border-left-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--color-primary);
    opacity: 0.7;
}

.nav-item.active i {
    color: var(--color-secondary);
    opacity: 1;
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: var(--container-padding);
    /* Change width calculation to be more flexible */
    width: auto;
    min-width: 0;
    flex: 1;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-background);
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevents side-scrolling at 100% */
}

.landing-container {
    max-width: 820px;
    /* Increase from 800px to allow larger cards */
    width: 100%;
    text-align: center;
    /* Remove height: 100% and justify-content: center to stop the background overlap */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.landing-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    transition: font-size 0.3s ease;
    margin-top: 20px;
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    transition: font-size 0.3s ease;
}

/* --- FIX: SIDEBAR ICON CENTERING --- */
.sidebar-landing {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- FIX: 9 CARDS SPACE & GRID --- */
.app-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Maintains 3 columns */
    gap: 30px;
    margin-top: 20px;
    width: 102%;
}

/* Ensure Titles are visible */
.landing-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    transition: font-size 0.3s ease;
}

.landing-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    transition: font-size 0.3s ease;
}

/* Preserve card styling */
.app-btn {
    min-height: 320px;
    /* Forces cards to be taller and uniform */
    padding: 40px 30px;
    /* More internal padding makes the card feel bigger */
    background-color: var(--color-surface);
    border-radius: 16px;
    /* Your existing shadow and transition styles */
}

.chart-container {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    height: 300px;
    position: relative;
    display: flex;
    /* Add this */
    flex-direction: column;
    /* Add this */
}

.chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;

    flex: auto;
    /* Add this - makes chart take remaining space */
    position: absolute;
    /* Add this */
    min-height: 0;
    /* Add this - important for flex children */
}

#ticketsChart {
    max-height: 100% !important;
    max-width: 100% !important;
}

/* Update the canvas style */
.chart-container canvas {
    max-height: 100% !important;
    /* Add this */
    width: 100% !important;
    /* Add this */
}

/* App selection buttons */
.app-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    transition: grid-template-columns 0.3s ease;
}

.app-btn {
    background-color: var(--color-surface);
    border: none;
    border-radius: 12px;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-neutral-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: var(--color-secondary);
    transition: height 0.3s ease;
}

.app-btn.security::before {
    background-color: var(--color-secondary-violet);
}

.app-btn.admin::before {
    background-color: var(--color-secondary-blue);
}

.app-btn.helpdesk::before {
    background-color: var(--color-secondary-sunray);
}

.app-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(25, 62, 107, 0.1);
}

.app-btn:hover::before {
    height: 8px;
}

.app-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.app-btn:hover .app-icon {
    transform: scale(1.1);
}

.app-btn.security .app-icon {
    color: var(--color-secondary-violet);
}

.app-btn.admin .app-icon {
    color: var(--color-secondary-blue);
}

.app-btn.helpdesk .app-icon {
    color: var(--color-secondary-sunray);
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 15px 0 10px 0;
    transition: font-size 0.3s ease;
}

.app-description {
    font-family: var(--font-body);
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 200px;
    transition: font-size 0.3s ease;
}



/* Tab navigation */
.tab-navigation {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px 6px 0 0;
    background-color: transparent;
    color: #666;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: rgba(25, 62, 107, 0.05);
    color: var(--color-primary);
}

.tab-btn.active {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-secondary);
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Alert styles */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-body);
}

.alert-info {
    background-color: rgba(68, 142, 157, 0.1);
    border-left: 5px solid var(--color-secondary);
    color: #555;
}

.alert-warning {
    background-color: rgba(233, 172, 83, 0.1);
    border-left: 5px solid var(--color-warning);
    color: #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
   
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(68, 142, 157, 0.1);
}

/* Ensure selects match text inputs in height + arrow placement */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==================== */
/* RESPONSIVE DESIGN - ASPECT RATIO BASED */
/* ==================== */
/* Default: Desktop layout (wider screens) */
@media (min-aspect-ratio: 4/3) and (min-width: 1280px) {
    /* Desktop layout is default */
}

/* Mobile/Tall layout */
@media (max-aspect-ratio: 1/1),
(max-width: 1279px) {

    .landing-container {
        justify-content: flex-start;
       
    }

    .app-selection {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-title {
        font-size: 28px;
    }

    .landing-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .sidebar {
        width: var(--sidebar-collapsed);
    }

    .sidebar-landing {
        padding: 10px;
    }

    .sidebar-pattern {
        width: 50px;
        height: 50px;
    }

    .sidebar-pattern::before {
        width: 40px;
        height: 40px;
    }

    .sidebar-pattern::after {
        width: 30px;
        height: 30px;
    }

    .brand-icon {
        font-size: 24px;
    }

    .sidebar-hint {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed);
        width: calc(100% - var(--sidebar-collapsed));
    }

    /* 1. Hide the search bar container */
    .search-container {
        display: none !important;
    }

    /* 2. Fix the overlap by overriding the fixed widths and large margins */
    .header-left {
        width: auto !important;
        min-width: var(--sidebar-collapsed) !important;
        justify-content: flex-start !important;
        padding-left: 10px !important;
    }

    .brand-logo {
        margin-left: 0 !important;
        /* Overrides the 100px margin causing the overlap */
        width: 110px !important;
        height: auto;
    }

    .Dev_font {
        margin-left: 10px !important;
        /* Overrides the 50px margin */
        font-size: 1.1rem !important;
        white-space: nowrap;
    }
}

.logo-container {
    width: 100%;
    text-align: left;
    padding-left: 5px;
}

.logo-main {
    font-size: 16px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 9px;
    line-height: 1.1;
    margin-top: 1px;
    opacity: 0.9;
    white-space: nowrap;
}

.app-btn {
    padding: 25px 20px;
}

.app-title {
    font-size: 18px;
}

.app-description {
    font-size: 13px;
}

.dashboard-grid {
    grid-template-columns: 1fr;
}

.chart-container {
    height: 250px;
}

.module-buttons-header {
    margin-left: 10px;
    gap: 8px;
}

.module-btn-header {
    width: 35px;
    height: 35px;
    font-size: 18px;
}

.quick-actions {
    grid-template-columns: 1fr;
}


/* Very small screens (phones) */
@media (max-width: 576px) {
    .main-header {
        padding: 0 15px;
    }

    .Dev_font {
        display: none;
        /* Recommended: Hide the word 'Developer' on tiny screens to save space */
    }


    .search-container {
        display: none !important;
    }

    .landing-title {
        font-size: 24px;
    }

    .landing-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }

    .app-btn {
        padding: 20px 15px;
    }

    .app-icon {
        font-size: 32px;
    }

    .app-title {
        font-size: 16px;
    }

    .app-description {
        font-size: 12px;
        max-width: 180px;
    }

    .logo-main {
        font-size: 14px;
    }

    .logo-subtitle {
        font-size: 8px;
    }

    .module-buttons-header {
        display: none;
        /* Hide module buttons on very small screens */
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .logo-main {
        font-size: 12px;
    }

    .logo-subtitle {
        font-size: 7px;
        letter-spacing: 0.2px;
    }

    .search-container input {
        width: 120px;
        padding: 8px 12px 8px 35px;
    }

    .search-container i {
        left: 12px;
    }
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-title,
.landing-subtitle,
.app-btn {
    animation: fadeInUp 0.6s ease forwards;
}

.landing-subtitle {
    animation-delay: 0.1s;
    opacity: 0;
}

.app-btn:nth-child(1) {
    animation-delay: 0.2s;
    opacity: 0;
}

.app-btn:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0;
}

.app-btn:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0;
}

.module-container.active {
    animation: slideInRight 0.4s ease;
}

.modal.show .modal-content {
    animation: slideInDown 0.3s ease;
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */
.hidden {
    display: none !important;
}

.visible {
    display: flex !important;
}

.text-muted {
    color: #666;
}

.text-small {
    font-size: 12px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Notification Styles */

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background: rgba(68, 142, 157, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #666;
}



.text-warning {
    color: var(--color-warning);
}

.text-success {
    color: var(--color-success);
}

.text-info {
    color: var(--color-secondary);
}

.text-primary {
    color: var(--color-primary);
}

.gap-10 {
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.swal2-container {
    z-index: 999999 !important;
}