/* CSS Custom Properties (Variables) for Easy Theme Customization */

/* 
THEME EXAMPLES - Simply replace the values below to change the entire color scheme:

🟣 PURPLE THEME (Current):
--primary-color: #667eea;
--primary-dark: #764ba2;

🔵 BLUE THEME:
--primary-color: #3b82f6;
--primary-dark: #1e40af;

🟢 GREEN THEME:
--primary-color: #10b981;
--primary-dark: #047857;

🔴 RED THEME:
--primary-color: #ef4444;
--primary-dark: #dc2626;

🟠 ORANGE THEME:
--primary-color: #f97316;
--primary-dark: #ea580c;

⚫ DARK THEME:
--primary-color: #374151;
--primary-dark: #1f2937;
*/

:root {
    /* Primary Theme Colors */
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --primary-light: rgba(102, 126, 234, 0.1);
    --primary-hover: rgba(102, 126, 234, 0.3);
    
    /* Sidebar Colors */
    --sidebar-bg: var(--primary-gradient);
    --sidebar-text: white;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.2);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    
    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-white: white;
    --bg-gray-light: #f1f5f9;
    --bg-gray-lighter: #f8fafc;
    
    /* Text Colors */
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-lighter: #f3f4f6;
    --border-gray: #d1d5db;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    
    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    
    /* Grid Layout */
    --cols: 1;
    --rows: 1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: var(--transition-normal);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: visible;
    box-shadow: var(--shadow-md);
}

/* When collapsed, allow tooltips to overflow */
.sidebar.collapsed {
    width: 70px;
    overflow: visible;
}

/* When expanded, maintain scrolling */
.sidebar:not(.collapsed) {
    overflow-y: auto;
    overflow-x: visible;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    order: 1;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--sidebar-border);
    transition: var(--transition-normal);
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition-normal);
    position: absolute;
    right: 1rem;
    top: 1rem;
    order: 2;
    outline: none;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
}

.sidebar-toggle i {
    transition: var(--transition-normal);
}

.sidebar-content {
    padding: 1rem 0;
    overflow-x: visible;
}

/* Menu Styles */
.menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.25rem;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.menu-link:hover {
    background: var(--sidebar-hover);
    transform: translateX(5px);
}

.menu-item.active .menu-link {
    background: var(--sidebar-active);
    border-right: 4px solid var(--sidebar-text);
}

.menu-link i {
    width: 20px;
    margin-right: 1rem;
    text-align: center;
}

.menu-text {
    flex: 1;
    transition: var(--transition-normal);
}

.submenu-arrow {
    margin-left: auto !important;
    margin-right: 0 !important;
    transition: var(--transition-normal);
}

.menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu Styles */
.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
    background: rgba(0, 0, 0, 0.1);
}

.menu-item.has-submenu.open .submenu {
    max-height: 200px;
}

.submenu li a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 4rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.submenu li a:hover,
.submenu a.active {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
    font-weight: 500;
}

/* Floating Submenu Styles */
.submenu-floating {
    display: none;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed .profile-info,
.sidebar.collapsed .menu-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

/* Ensure proper positioning for tooltips */
.sidebar.collapsed .menu-item {
    position: relative;
}

.sidebar.collapsed .sidebar-header {
    align-items: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.sidebar.collapsed .profile-section {
    order: 1;
    margin-bottom: 0.75rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.sidebar.collapsed .profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.sidebar.collapsed .profile-image {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-toggle {
    position: static;
    order: 2;
    margin: 0 auto;
    display: block;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    margin: 0 0.75rem;
    width: calc(100% - 1.5rem);
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar.collapsed .menu-link i {
    margin-right: 0;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .submenu-arrow {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none !important;
}

.sidebar.collapsed .menu-item.active .menu-link {
    background: rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 8px;
}

.sidebar.collapsed .menu-item.active .menu-link::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: white;
    border-radius: 2px;
}

/* Collapsed Floating Submenus */
.sidebar.collapsed .submenu-floating {
    display: block;
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    background: var(--sidebar-bg);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1002;
}

.sidebar.collapsed .submenu-floating::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 20px;
    border: 4px solid transparent;
    border-right-color: #1e293b;
}

.sidebar.collapsed .has-submenu:hover .submenu-floating {
    opacity: 1;
    visibility: visible;
}

.sidebar.collapsed .submenu-floating a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar.collapsed .submenu-floating a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar.collapsed .submenu-floating a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    position: relative;
}

.sidebar.collapsed .submenu-floating a.active::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/*
.sidebar.collapsed .menu-item.has-active-submenu .menu-link {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
}

.sidebar.collapsed .menu-item.has-active-submenu .menu-link::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: white;
    border-radius: 2px;
}
*/

/* Tooltip Styles */
.tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1003;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Debug: Make tooltips always visible when sidebar is collapsed (temporary) */
.sidebar.collapsed .tooltip {
    /* Uncomment next line to debug: */
    /* opacity: 1 !important; visibility: visible !important; */
    pointer-events: auto;
    left: calc(50% + 5px);
    top: -20px;
    transform: translateY(-50%);
    z-index: 1010;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: #1e293b;
}

.profile-tooltip {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 1rem;
}

/* Show tooltips only when sidebar is collapsed and on hover */
.sidebar.collapsed .menu-link:hover .tooltip,
.sidebar.collapsed .profile-container:hover .profile-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
}

/* Position tooltips above the icon when sidebar is collapsed */

/* Update tooltip arrow for top positioning - remove arrow */
.sidebar.collapsed .tooltip::before {
    display: none;
}

.sidebar.collapsed .profile-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Ensure tooltips don't show when sidebar is not collapsed */
.sidebar:not(.collapsed) .tooltip {
    display: none !important;
}

/* Active submenu indicator - white dot */
.submenu-floating a.active::before,
.submenu a.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 1;
}

/* Ensure submenu items have relative positioning for the indicator */
.submenu a,
.submenu-floating a {
    position: relative;
}

/* Remove the full highlight styling */
.sidebar.collapsed .submenu-floating a.active:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Home Page Styles */
.home-page {
    padding: 0;
    max-width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    margin: -2rem -2rem 0 -2rem;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-logo {
    flex-shrink: 0;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1000px;
    text-align: center;
    margin: 0 auto;
}

.stat-item {
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.logo-image {
    width: 200px;
    height: 200px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 2rem;
    background: var(--bg-gray-light);
    margin: 0 -2rem 0 -2rem;
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Personas Section */
.personas-section {
    padding: 4rem 2rem;
}

.personas-container {
    max-width: 1400px;
    margin: 0 auto;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.persona-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-gray-light);
}

.persona-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.persona-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.persona-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.persona-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit i {
    color: var(--success-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefit span {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Highlights Section */
.highlights-section {
    padding: 4rem 2rem;
    background: var(--bg-gray-light);
    margin: 0 -2rem 0 -2rem;
}

.highlights-container {
    max-width: 1400px;
    margin: 0 auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 2rem;
    background: white;
}

.how-container {
    max-width: 1400px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem -2rem -2rem -2rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        margin: -2rem -1rem 0 -1rem;
    }
    
    .hero-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .logo-image {
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        margin: 1.5rem auto 0 auto;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .benefits-section,
    .personas-section,
    .highlights-section {
        padding: 3rem 1rem;
        margin: 0 -1rem 0 -1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section {
        padding: 3rem 1rem;
        margin: 3rem -1rem -2rem -1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: var(--transition-normal);
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* Content Header */
.content-header {
    background: var(--bg-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
}

.mobile-menu-toggle:hover {
    background: var(--bg-gray-light);
}

#pageTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #64748b;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

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

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Content Area */
.content-area {
    padding: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Dashboard and Content Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sidebar-text);
    background: var(--primary-gradient);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-charts,

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--sidebar-text);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-gray-light);
    color: #475569;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
}

/* Button Styles */

/* Loading and Error States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.menu-link:focus,
.action-btn:focus,
.sidebar-toggle:focus,
.mobile-menu-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    border-radius: 6px;
}

a:focus,
button:focus {
    outline: none;
}

.submenu a:focus,
.submenu-floating a:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-box input {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Force sidebar to always be expanded on mobile */
    .sidebar.collapsed {
        width: 280px;
    }
    
    /* Hide collapsed-specific styles on mobile */
    .sidebar.collapsed .profile-info,
    .sidebar.collapsed .menu-text {
        opacity: 1;
        visibility: visible;
        width: auto;
        overflow: visible;
    }
    
    .sidebar.collapsed .menu-link {
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }
    
    .sidebar.collapsed .menu-link i {
        margin-right: 1rem;
        font-size: 1rem;
    }
    
    .sidebar.collapsed .submenu-arrow {
        display: block;
    }
    
    .sidebar.collapsed .submenu {
        display: block !important;
    }
    
    .sidebar.collapsed .submenu-floating {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Override desktop collapsed sidebar behavior on mobile */
    .sidebar.collapsed + .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .content-header {
        padding: 1rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .dashboard-charts {
        gap: 1rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-placeholder {
        height: 200px;
    }
    
    .tooltip {
        display: none !important;
    }
}

/* My Dashboards Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    grid-auto-rows: 100px;
    gap: 1rem;
    padding: 1rem;
    min-height: calc(100vh - 200px);
    position: relative;
}

.dashboard-grid.edit-mode::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 1rem,
            rgba(99, 102, 241, 0.2) calc(1rem + 1px),
            rgba(99, 102, 241, 0.2) calc(1rem + 2px),
            transparent calc(1rem + 2px)
        );
    pointer-events: none;
    z-index: 1;
}

.grid-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Dynamic grid sizing - any combination */
.grid-item[data-size] {
    grid-column: span var(--cols, 1);
    grid-row: span var(--rows, 1);
    z-index: 2;
}

.grid-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.grid-item.dragging {
    z-index: 1000;
}

.grid-item.moving {
    transition: all 0.3s ease;
}

.grid-item.drag-preview {
    background: rgba(99, 102, 241, 0.2);
    border: 2px dashed var(--primary-color);
    opacity: 0.7;
}

/* Dynamic grid sizing - any combination */
.grid-item[data-size] {
    grid-column: span var(--cols, 1);
    grid-row: span var(--rows, 1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.widget-header h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.widget-controls {
    display: flex;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.widget-content {
    padding: 1rem;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.metric-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, transparent 30%, var(--primary-color) 30%, var(--primary-color) 40%, transparent 40%, transparent 60%, var(--primary-color) 60%, var(--primary-color) 70%, transparent 70%);
    cursor: nw-resize;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.grid-item:hover .resize-handle {
    opacity: 1;
}

.resize-handle:hover {
    background: linear-gradient(-45deg, transparent 30%, var(--primary-dark) 30%, var(--primary-dark) 40%, transparent 40%, transparent 60%, var(--primary-dark) 60%, var(--primary-dark) 70%, transparent 70%);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .grid-item[data-size="2x1"],
    .grid-item[data-size="2x2"] {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    #pageTitle {
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Image Modal Styles */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-modal-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -20px;
    right: -40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: background 0.3s ease;
}

.image-modal-close:hover {
    background: white;
}

/* Loading Modal Styles */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-modal.active {
    opacity: 1;
    visibility: visible;
}

.loading-modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 350px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Action Modal Styles */
.action-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.action-modal.active {
    opacity: 1;
    visibility: visible;
}

.action-modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    width: 90%;
}

.action-modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.action-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.action-modal-body {
    padding: 1.5rem;
}

.action-modal-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.action-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.action-modal-footer .btn-secondary,
.action-modal-footer .btn-primary {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-modal-footer .btn-secondary {
    background: var(--bg-gray-light);
    color: var(--text-secondary);
}

.action-modal-footer .btn-secondary:hover {
    background: var(--border-light);
}

.action-modal-footer .btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.action-modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-section {
    padding: 1rem 0;
}

.page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-container .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.architecture-diagram {
    text-align: center;
    margin-top: 2rem;
}

.architecture-diagram .clickable-image {
    max-height: 1000px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.architecture-diagram .clickable-image:hover {
    transform: scale(1.02);
}
/* Use Cases Page Styles */
.selector-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selector-container .btn {
    white-space: nowrap;
    min-width: 80px;
}

.dashboard-grid.edit-mode {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.grid-item.view-only {
    cursor: default;
}

.grid-item.view-only .widget-controls {
    display: none;
}

.grid-item.view-only .resize-handle {
    display: none;
}

.grid-item.view-only:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.selector-container label {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.selector-container .form-select {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: white;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selector-container .form-select:focus {
    border-color: var(--primary-color);
}

.selector-container .form-select:hover {
    border-color: var(--primary-hover);
}

.use-case-content {
    margin-top: 2rem;
}

.use-case-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.use-case-header h3 {
    margin: 0 0 1rem 0;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.use-case-header p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.glass-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.glass-button.external-link::after {
    content: "↗";
    font-size: 0.9em;
}

.use-case-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.technical-details,
.schema-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.technical-details h4,
.schema-section h4 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technical-details h4::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.schema-section h4::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M160 80c0-26.5 21.5-48 48-48h32c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V80zM0 272c0-26.5 21.5-48 48-48H80c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V272zM368 96h32c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H368c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.schema-diagram {
    text-align: center;
    display: flex;
    justify-content: center;
}

.schema-diagram .clickable-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.schema-diagram .clickable-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .use-case-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .selector-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-select {
        max-width: 100%;
        width: 100%;
    }
}

/* Ask Me Page Styles */
.question-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

/* Results Table Styles */
.results-table-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
}

.results-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.results-table tbody tr:hover {
    background: var(--bg-gray-lighter);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Step Section Styles */
.step-section {
    margin-bottom: 1.5rem;
}

.step-section h4 {
    margin-bottom: 0.75rem;
}

.step-decorated {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.step-decorated.sql-query {
    max-height: 300px;
}

.step-decorated pre {
    margin: 0;
    padding: 0.75rem 1.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.step-decorated.sql-query pre {
    background: var(--bg-gray-lighter);
}

.step-decorated code {
    font-family: inherit;
    background: none;
    padding: 0;
    border-radius: 0;
}

/* Step Details Styles */
.step-details {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px 24px;
    margin-top: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.step-details>div>h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: center;
}

.execution-timing {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.timing-item {
    text-align: left;
    /*flex: 1;*/
    min-width: 80px;
}

.timing-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.timing-value {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', monospace;
}

.chart-header {
    position: relative;
    height: 0;
    z-index: 10;
}

.add-to-dashboard-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.add-to-dashboard-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-to-dashboard-btn i {
    font-size: 14px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-xs);
}

.chart-wrapper h5 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
}

@media (max-width: 768px) {
    .step-details {
        padding: 16px;
        margin-top: 16px;
    }
    
    .execution-timing {
        flex-direction: column;
        gap: 12px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Costs Tab Styles */
.costs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.costs-header h4 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.total-cost {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-value {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
}

.costs-details {
    margin-top: 2rem;
}

.costs-details h5 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cost-group {
    margin-bottom: 2rem;
}

.cost-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-gray-light);
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border-light);
    border-bottom: none;
}

.cost-group-header h6 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.group-total {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.cost-group .results-table-container {
    margin-bottom: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.panels-container {
    display: flex;
}

.options-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.options-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.options-toggle.options-hidden {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.question-label {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.main-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.question-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-input:focus {
    border-color: var(--primary-color);
}


.options-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 33.33%;
    transition: width 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    margin-right: 2rem;
    align-self: flex-start;
}

.options-section.hidden {
    width: 0;
    padding: 0;
    opacity: 0;
    margin-right: 0;
}

.results-section {
    flex: 1;
}

.results-section > div {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.results-section > div.hidden {
    height: 80px;
}

.results-section > div.hidden .results-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.results-toggle {
    background: var(--bg-gray-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.results-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.results-toggle.results-hidden {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.results-toggle.results-hidden i {
    transform: rotate(180deg);
}

.results-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.results-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.results-content {
    padding: 0 2rem 2rem 2rem;
    transition: all 0.3s ease;
    opacity: 1;
    height: auto;
}

.results-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

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

.steps-timeline {
    padding: 0;
}

.timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem 2rem 2rem;
}

.timeline-line {
    position: absolute;
    top: 3rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    position: relative;
}

.step-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    transition: all 0.2s ease;
    position: absolute;
    top: -8px;
    margin-bottom: 1rem;
}

.timeline-step.active .step-circle {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    border: 3px solid white;
    width: 22px;
    height: 22px;
    top: -11px;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    position: absolute;
    top: -2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-step.active .step-label {
    opacity: 1;
}

.timeline-step:hover .step-label {
    opacity: 1;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.options-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.options-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.options-help {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
}

.context-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.context-textarea:focus {
    border-color: var(--primary-color);
}

.form-select {
    width: 100%;
    max-width: none;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.toggle-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: center;
}

.toggle-switch {
    justify-self: start;
}

.toggle-item label {
    margin: 0;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    justify-self: start;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    background: var(--primary-gradient) !important;
}

.toggle-switch input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px) !important;
}

@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .options-section {
        width: 100%;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    margin-bottom: 1.5rem;
}

.login-logo .logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    border-color: var(--primary-color);
}

.form-actions {
    margin-bottom: 1rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem;
    }
}

/* Profile Page Styles */
.profile-page {
    padding: 0;
    max-width: 100%;
}

.profile-content {
    margin-top: 2rem;
}

.profile-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.section-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-form {
    padding: 2rem;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-form .form-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
}

.profile-form .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.875rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: var(--primary-color);
}

.form-input:readonly {
    background-color: var(--bg-gray-light);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.password-requirements {
    background: var(--bg-gray-lighter);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.password-requirements p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.password-requirements li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.success-message {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    border-left: 4px solid var(--success-color);
}

/* Responsive Design for Profile */
@media (max-width: 1200px) {
    .profile-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-form .form-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .profile-form .form-group label {
        margin-bottom: 0.5rem;
    }
    
    .profile-form {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
    }
    
    .section-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .profile-form {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .btn {
        width: 100%;
    }
}
/* Tab Pane Vertical Columns */
.tab-columns {
    display: flex;
    width: 100%;
    min-height: 400px;
}

/* Column layouts based on data-columns attribute */
.tab-columns[data-columns="1"] {
    flex-direction: column;
}

.tab-columns[data-columns="1"] .tab-column {
    flex: 1;
}

.tab-columns[data-columns="2"] .tab-column,
.tab-columns[data-columns="3"] .tab-column,
.tab-columns[data-columns="4"] .tab-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Column items with vertical separators */
.tab-column {
    padding: 1.5rem;
    border-right: 1px solid var(--border-light);
}

.tab-column:last-child {
    border-right: none;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .tab-columns[data-columns="4"] {
        flex-wrap: wrap;
    }
    .tab-columns[data-columns="4"] .tab-column {
        flex: 1 1 50%;
        border-right: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
    }
    .tab-columns[data-columns="4"] .tab-column:nth-child(2n) {
        border-right: none;
    }
    .tab-columns[data-columns="4"] .tab-column:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .tab-columns {
        flex-direction: column;
    }
    
    .tab-column {
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .tab-column:last-child {
        border-bottom: none;
    }
}

.tab-column .model-info {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.tab-column .model-info h4 {
    font-size: 1.3rem;
}

.tab-column .model-info h4 small {
    font-size: 1rem;
}
