/* CSS Variables - Professional Color Scheme */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 64px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

/* Main Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
}

.content-area {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
}

/* Info Icon Tooltips */
.info-icon-container {
  position: relative;
  display: inline-flex;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;            /*var(--space-1);*/
  vertical-align: middle; /* Align with text */
  cursor: help;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: var(--primary-500);
}

.tooltip {
    display: none;
    position: absolute;
/*    bottom: calc(100% + 10px); */
/*    left: 50%; */
    top: calc(100% - 50px); /* Position below icon */
    left: calc(100% + 10px);
/*    left: calc(100% + 10px); /* Position to the right of icon */
    transform: translateX(-50%); 
/*    transform: translateY(-50%); /* Center vertically */
    margin-left: 150px; /* Add this line to shift right */
    background: white;
    color: var(--gray-800);
    padding: var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    width: 280px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    line-height: 1.1; /* Reduced from 1.4 */
    white-space: pre-line; /* Add this for line breaks */
    text-align: left; /* Ensure left alignment */
}

/* Bullet point styling for tooltips */
.tooltip ul {
    margin: 0; /* Reduced margin */
    padding-left: var(--space-4);
    list-style-type: disc;
}

.tooltip li {
    margin-bottom: 0; /* Minimal space between bullets */
    padding: 0; /* Remove all padding */
    line-height: 1.2; /* Match tooltip line height */
}

/* Alternative: If using plain text with bullet characters */
.tooltip.with-bullets {
    white-space: pre-line;
    padding: 0; /* Remove all padding */
    line-height: 1;
}


.info-icon-container:hover .tooltip {
    display: block;
}

/* Landing Page Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.landing-hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-50) 100%);
    color: var(--gray-800);
    padding: var(--space-4) 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

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

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
    color: var(--gray-600);
    font-weight: 500;
}

.hero-headline {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-1);
    color: var(--gray-700);
}

.hero-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.landing-section {
    padding: var(--space-3) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.feature-card {
    background: white;
    padding: var(--space-3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

.feature-icon {
    color: var(--primary-600);
    margin-bottom: var(--space-2);
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--gray-800);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.4;
    font-size: 0.85rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cta-container {
    text-align: center;
    margin-top: var(--space-3);
}

.cta-button {
    display: inline-block;
    background: var(--primary-600);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-700);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-headline {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .landing-section {
        padding: var(--space-2) 0;
    }
    
    .feature-card {
        padding: var(--space-2);
    }
}

/* Header Navigation Styles */
.header__left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header__nav-link:hover {
    color: var(--primary-600);
    background: var(--gray-100);
}

.header__nav-link--dropdown {
    position: relative;
}

/* Dropdown Styles */
.header__dropdown {
    position: relative;
}

.header__dropdown:hover .header__dropdown-menu {
    display: block;
}

.header__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    z-index: 1000;
    padding: var(--space-2) 0;
    margin-top: var(--space-1);
}

.header__dropdown-item {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.header__dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.icon--chevron {
    transition: transform 0.3s ease;
}

.header__dropdown:hover .icon--chevron {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
}

/* Sidebar Brand Link Styles */
.sidebar__brand-link {
    display: block;
    text-decoration: none; /* This removes the underline */
    color: inherit;
    transition: all 0.3s ease;
    padding: var(--space-4);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-2);
}

.sidebar__brand-link:hover {
    color: var(--primary-600);
    background: var(--gray-100);
    text-decoration: none; /* Ensure no underline on hover */
}

.sidebar__brand-link .sidebar__logo {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-decoration: none; /* Remove from h1 */
    color: inherit; /* Inherit color */
}

.sidebar__brand-link .sidebar__subtitle {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: var(--space-1);
    margin-left: calc(24px + var(--space-3)); /* Align with logo text */
    text-decoration: none; /* Remove from subtitle */
}

