/* ===== BASE & THEMES ===== */
:root {
    --primary: #4361ee;
    --primary-light: #4cc9f0;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
}

[data-theme="light"] {
    /* Modern soft gray - easier on eyes */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #f1f3f5;
    
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    --border-color: #e9ecef;
    --border-light: #dee2e6;
    
    /* Keep shadows subtle */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

[data-theme="darker"] {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #020617;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #1e293b;
    --border-light: #334155;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display:block;

}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 500;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: transparent;
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--bg-sidebar);
    position: relative;
}
/* Badge adjustment */
.sidebar-header .badge {
    margin-left: 0.5rem;
    align-self: flex-start;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

/* Update logo image styles */
.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
    /* Remove gradient background */
    background: transparent;
    /* Remove padding if it was causing issues */
    padding: 0;
    flex-shrink: 0;
    /* Optional: add a subtle border for definition */
    border: 1px solid rgba(67, 97, 238, 0.2);
}

/* If your logo is dark and needs to invert for light theme */
[data-theme="light"] .logo-img {
    border-color: rgba(67, 97, 238, 0.3);
    /* Optional: add a subtle shadow for light theme */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* For darker theme */
[data-theme="darker"] .logo-img {
    border-color: rgba(67, 97, 238, 0.4);
}

/* If you want the logo to have no border at all */
.logo-img.no-border {
    border: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-primary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-pro {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    border: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-md);
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item i {
    width: 1.25rem;
    font-size: 1rem;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: var(--text-muted);
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top:80px;
    width: 100%;
    margin-left: 0
    min-height: 100vh;
    transition: var(--transition);
    position: relative;
}



.nav-container{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
width:100%;
max-width:1400px;
margin:auto;
}



.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.search-wrapper {
    flex: 1;
    max-width: 400px;
}

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

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-shortcut {
    position: absolute;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* ===== NAV ACTIONS & THEME TOGGLE ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}


/* Option 4: Minimal Pill Badges */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.25rem;
    height: 2.5rem;
}

.theme-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    position: relative;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

/* Light - Yellow dot */
.theme-btn[data-theme="light"]::before {
    background: #f59e0b;
}

/* Dark - Purple dot */
.theme-btn[data-theme="dark"]::before {
    background: #8b5cf6;
}

/* Darker - Gray dot */
.theme-btn[data-theme="darker"]::before {
    background: #64748b;
}

.theme-btn.active::before {
    opacity: 0.2;
}

.theme-btn:hover:not(.active)::before {
    opacity: 0.1;
}

.theme-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.theme-btn i {
    position: relative;
    z-index: 1;
}

.theme-btn.active i {
    color: var(--text-primary);
}

/* Tooltip on hover */
.theme-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -2.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* Light theme button */
.theme-btn[data-theme="light"] {
    color: #f59e0b;
}

.theme-btn[data-theme="light"]:hover {
    background: rgba(245, 158, 11, 0.1);
}

.theme-btn[data-theme="light"].active {
    background: #f59e0b;
    color: white;
}

/* Dark theme button */
.theme-btn[data-theme="dark"] {
    color: #94a3b8;
}

.theme-btn[data-theme="dark"]:hover {
    background: rgba(67, 97, 238, 0.1);
}

.theme-btn[data-theme="dark"].active {
    background: #4361ee;
    color: white;
}

/* Darker theme button */
.theme-btn[data-theme="darker"] {
    color: #475569;
}

.theme-btn[data-theme="darker"]:hover {
    background: rgba(30, 41, 59, 0.1);
}

.theme-btn[data-theme="darker"].active {
    background: #1e293b;
    color: white;
}

/* Tooltip for theme buttons */
.theme-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.theme-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Remove old theme dropdown styles */
.theme-dropdown {
    display: none;
}

/* Update nav actions spacing */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Theme Toggle Styles */
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}



@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-dropdown-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 0;
}

.close-dropdown {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    padding: 0;
}

.close-dropdown:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.theme-dropdown-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-dropdown-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    border: none;
    position: relative;
}

.theme-dropdown-option:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.theme-dropdown-option.active {
    border: 1px solid var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.theme-preview {
    width: 3rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.theme-dropdown-option:hover .theme-preview {
    border-color: var(--primary);
}

.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dark-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.darker-theme {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.theme-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.theme-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.theme-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.check-icon {
    color: var(--primary);
    opacity: 0;
    font-size: 0.875rem;
}

.theme-dropdown-option.active .check-icon {
    opacity: 1;
}

/* ===== ANALYTICS SECTION ===== */
.analytics-section {
    padding: 2rem 0;
    background: var(--bg-primary);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.analytics-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.analytics-filters {
    display: flex;
    gap: 0.5rem;
}

.time-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.time-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.time-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-trend {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.up {
    color: var(--success);
}

.chart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-card, .popular-tools {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.chart-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.chart-select:focus {
    outline: none;
    border-color: var(--primary);
}

.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-ranking {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tool-ranking:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.rank {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.trend-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    flex-shrink: 0;
}

.trend-badge.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.hero-stat:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-stat h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.hero-stat p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== TOOLS DASHBOARD ===== */
.tools-dashboard {
    padding: 3rem 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    margin-top: 0;
}

.header-left p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.view-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.view-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.filter-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-wrapper::-webkit-scrollbar {
    height: 4px;
}

.filter-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.filter-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-md);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

/* ===== TOOLS GRID - FIXED CARD STYLES ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    position: relative;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
}

.tool-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    white-space: nowrap;
}

.badge-popular {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-pro {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    border: none;
}

.badge-new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.tool-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-top: 0;
}

.tool-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.feature-tag {
    padding: 0.3125rem 0.625rem;
    font-size: 0.6875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tool-card:hover .feature-tag {
    border-color: var(--primary);
    color: var(--primary);
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.tool-uses {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-trend {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.tool-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.tool-actions {
    display: flex;
    gap: 0.375rem;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===== FOOTER ===== */
.main-footer {
    padding: 3rem 0 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    margin-top: 0;
}

.link-column a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.link-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--bg-sidebar);
    position: relative;
    }
    
    .logo span {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .theme-dropdown {
        position: fixed;
        top: 4rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-wrapper {
        order: -1;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tool-card {
        padding: 1rem;
        min-height: auto;
    }

    .nav-actions {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .logo span {
        max-width: 120px;
    }
    
    .nav-container {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .search-wrapper {
        max-width: 300px;
    }
    
    .theme-dropdown {
        left: 0.5rem;
        right: 0.5rem;
        top: 3.5rem;
    }
}

@media (max-width: 640px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .search-wrapper {
        max-width: 200px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .theme-dropdown {
        min-width: auto;
        width: calc(100% - 1rem);
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .search-wrapper {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    .nav-actions {
        margin-left: 0;
        flex: 1;
        justify-content: flex-end;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ===== ENHANCED SEARCH BAR ===== */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input:focus ~ .search-shortcut {
    display: none;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
    animation: slideDown 0.2s ease;
    border-top: 2px solid var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-results-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-header .clear-search {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.search-results-header .clear-search:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.search-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(67, 97, 238, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.search-result-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 0.75rem;
    font-weight: 500;
}

.search-result-trend {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-result-trend.up {
    color: var(--success);
}

.search-result-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.search-result-item:hover .search-result-actions {
    opacity: 1;
}

.search-result-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.search-result-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.no-results {
    padding: 2rem 1.25rem;
    text-align: center;
}

.no-results i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }
    
    .search-box input {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem 0.75rem 2.75rem;
    }
    
    .search-results {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 5rem;
        max-height: 50vh;
        z-index: 1001;
    }
}

/* ===== ENHANCED SEARCH BAR ===== */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input:focus ~ .search-shortcut {
    display: none;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
    animation: slideDown 0.2s ease;
    border-top: 2px solid var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-results-header h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-header .clear-search {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.search-results-header .clear-search:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.search-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: rgba(67, 97, 238, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.search-result-category {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border-radius: 0.75rem;
    font-weight: 500;
}

.search-result-trend {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-result-trend.up {
    color: var(--success);
}

.search-result-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.search-result-item:hover .search-result-actions {
    opacity: 1;
}

.search-result-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.search-result-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.no-results {
    padding: 2rem 1.25rem;
    text-align: center;
}

.no-results i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }
    
    .search-box input {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem 0.75rem 2.75rem;
    }
    
    .search-results {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 5rem;
        max-height: 50vh;
        z-index: 1001;
    }
}




.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: auto;
    width: 100%;
    height: 4rem;
    align-items: center;
}


/* Menu toggle alignment */
.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Search container alignment */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
}

/* Nav actions alignment */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Ensure consistent height for nav elements */
.notification-btn,
.theme-toggle-container,
.btn-primary {
    height: 2.5rem;
}

/* ===== MAIN CONTENT DIVIDER FIX ===== */
.hero-section {
    border-top: 1px solid transparent; /* Remove any top border */
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-color) 20%, 
        var(--border-color) 80%, 
        transparent 100%
    );
}

/* Remove any conflicting borders */
.hero-section::after {
    display: none;
}

/* Adjust spacing */
.hero-section {
    padding: 3rem 0 2rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .sidebar-header {
        padding: 1.25rem 1rem;
    }
    
    .logo-img {
        width: 42px;
        height: 42px;
    }
    
    .logo-primary {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.6875rem;
    }
    
    .nav-container {
        height: 3.5rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar-header {
        padding: 1rem 0.75rem;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-primary {
        font-size: 1.125rem;
    }
    
    .logo-text {
        gap: 0;
    }
    
    .nav-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
        height: 3.25rem;
    }
    
    .search-wrapper {
        margin: 0 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}

/* For mobile menu toggle */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
        border-right: 2px solid var(--border-color);
    }
    
    /* Ensure mobile sidebar header matches top nav */
    .sidebar.active .sidebar-header {
        border-bottom-width: 2px;
    }
}

/* Ensure consistent border colors across themes */
[data-theme="light"] .sidebar-header,
[data-theme="light"] .top-nav {
    border-bottom-color: var(--border-color);
}

[data-theme="darker"] .sidebar-header,
[data-theme="darker"] .top-nav {
    border-bottom-color: var(--border-color);
}

/* ===== GLOBAL SCROLLBAR STYLING ===== */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Specific element scrollbars */
.sidebar-nav::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.search-results::-webkit-scrollbar,
.filter-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track,
.filter-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb,
.filter-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.search-results::-webkit-scrollbar-thumb:hover,
.filter-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== FIX LIGHT THEME COMPONENT COLORS ===== */

/* Fix tool cards in light theme */
[data-theme="light"] .tool-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .tool-card:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

[data-theme="light"] .tool-description {
    color: var(--text-secondary);
}

[data-theme="light"] .feature-tag {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="light"] .tool-trend {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="light"] .tool-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Fix analytics cards */
[data-theme="light"] .stat-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .stat-content h3 {
    color: var(--text-secondary);
}

[data-theme="light"] .stat-value {
    color: var(--text-primary);
}

/* Fix hero section */
[data-theme="light"] .hero-stat {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .hero-stat h4 {
    color: var(--text-primary);
}

[data-theme="light"] .hero-stat p {
    color: var(--text-secondary);
}

/* Fix popular tools ranking */
[data-theme="light"] .tool-ranking {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .tool-name {
    color: var(--text-primary);
}

[data-theme="light"] .tool-stats {
    color: var(--text-muted);
}

/* Fix modal backgrounds */
[data-theme="light"] .modal,
[data-theme="light"] .quickstart-modal {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .modal-body {
    background: var(--bg-card);
}

/* Fix search results */
[data-theme="light"] .search-results {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .search-result-item {
    border-color: var(--border-light);
}

[data-theme="light"] .search-result-item:hover {
    background: rgba(67, 97, 238, 0.05);
}

/* Fix sidebar */
[data-theme="light"] .sidebar {
    background: var(--bg-sidebar);
    border-color: var(--border-color);
}

[data-theme="light"] .sidebar-header {
    background: var(--bg-sidebar);
    border-color: var(--border-color);
}

[data-theme="light"] .nav-item:hover {
    background: rgba(67, 97, 238, 0.05);
}

/* Fix top navigation */
[data-theme="light"] .top-nav {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Fix filter buttons */
[data-theme="light"] .filter-btn {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
}

/* Fix theme toggle container */
[data-theme="light"] .theme-toggle-container {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Fix buttons */
[data-theme="light"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Fix input fields */
[data-theme="light"] .search-box input {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .search-box input:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
}

/* Fix badges */
[data-theme="light"] .badge {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .badge-popular {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .badge-new {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}


/* ===== LIST VIEW STYLES ===== */
.tools-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
}

.tools-grid.list-view .tool-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    min-height: auto;
    height: auto;
}

.tools-grid.list-view .tool-header {
    margin-bottom: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

.tools-grid.list-view .tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.tools-grid.list-view .tool-badge {
    margin-left: 0;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
}

.tools-grid.list-view .tool-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1rem;
}

.tools-grid.list-view .tool-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    width: 180px;
    min-width: 180px;
}

.tools-grid.list-view .tool-description {
    flex: 1;
    margin-bottom: 0;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    font-size: 0.8125rem;
}

.tools-grid.list-view .tool-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    width: 200px;
    min-width: 200px;
    justify-content: center;
}

.tools-grid.list-view .feature-tag {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
}

.tools-grid.list-view .tool-footer {
    border-top: none;
    padding-top: 0;
    width: auto;
    min-width: 120px;
}

.tools-grid.list-view .tool-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.tools-grid.list-view .tool-uses {
    font-size: 0.75rem;
}

.tools-grid.list-view .tool-trend {
    font-size: 0.6875rem;
}

.tools-grid.list-view .tool-actions {
    margin-left: 0.5rem;
}

/* Responsive adjustments for list view */
@media (max-width: 1024px) {
    .tools-grid.list-view .tool-content h3 {
        width: 150px;
        min-width: 150px;
    }
    
    .tools-grid.list-view .tool-features {
        width: 150px;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .tools-grid.list-view .tool-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .tools-grid.list-view .tool-header {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .tools-grid.list-view .tool-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-right: 0;
    }
    
    .tools-grid.list-view .tool-content h3 {
        width: 100%;
        min-width: 100%;
    }
    
    .tools-grid.list-view .tool-description {
        width: 100%;
    }
    
    .tools-grid.list-view .tool-features {
        width: 100%;
        min-width: 100%;
        justify-content: flex-start;
    }
    
    .tools-grid.list-view .tool-footer {
        width: 100%;
        justify-content: space-between;
    }
    
    .tools-grid.list-view .tool-meta {
        flex-direction: row;
        align-items: center;
    }
}

/* Base grid view styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Ensure the view buttons work */
.view-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

/* Update the view-toggle styles if needed */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.view-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.view-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}


/* ===== SUITES SECTION ===== */
.suites-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.suites-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.suites-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.suite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.suite-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.suite-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.suite-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    width: 100%;
}

.suite-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    width: 100%;
}

.suite-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.suite-card:hover .suite-badge {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* App Viewer Layout */
.app-viewer {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
}

.app-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    height: 4rem;
}

.app-viewer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-viewer-title h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.app-viewer-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.app-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.app-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Suite Welcome Page */
.suite-welcome {
    padding: 3rem 0;
    text-align: center;
}

.suite-welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.suite-welcome-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.5rem;
}

.suite-welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.suite-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

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

.suite-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.suite-tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-icon-large {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.suite-tool-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.suite-tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tool-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tool-stats span:first-child {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* App Toolbar */
.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.app-toolbar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-status {
    padding: 0.25rem 0.75rem;
    background: var(--success);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* App Simulator */
.app-simulator {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.app-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.app-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.app-header p {
    color: var(--text-secondary);
    margin: 0;
}

.app-body {
    padding: 1.5rem;
}

.app-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.app-input, .app-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.app-input:focus, .app-select:focus {
    outline: none;
    border-color: var(--primary);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.upload-area i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin: 0;
}

.upload-area-large {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area-large:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.upload-area-large i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-area-large p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.code-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.code-input {
    width: 100%;
    height: 200px;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
}

.code-input:focus {
    outline: none;
}

.editor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-result {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.app-result h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.result-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.result-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.image-preview {
    padding: 2rem;
    color: var(--text-muted);
}

.image-preview i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.preview-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.media-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.slider {
    width: 100%;
    margin: 0.5rem 0;
}

.slider-value {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.app-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.app-footer i {
    margin-right: 0.5rem;
}

/* Responsive adjustments for suites */
@media (max-width: 1024px) {
    .app-viewer {
        margin-left: 0;
    }
    
    .suites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .suite-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .app-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .suites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .suites-title {
        font-size: 1.75rem;
    }
    
    .suite-card {
        padding: 1.5rem;
    }
    
    .app-viewer-header {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        padding: 1rem;
    }
    
    .app-viewer-title h1 {
        font-size: 1.25rem;
    }
    
    .app-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .suites-title {
        font-size: 1.5rem;
    }
    
    .suites-subtitle {
        font-size: 1rem;
    }
    
    .suite-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    
    .suite-card h3 {
        font-size: 1.125rem;
    }
    
    .suite-card p {
        font-size: 0.875rem;
    }
}

/* ===== HORIZONTAL POPULAR TOOLS SECTION ===== */
.popular-tools-horizontal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.popular-tools-horizontal .section-header {
    margin-bottom: 1.5rem;
}

.popular-tools-horizontal .section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

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

.popular-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.popular-tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-rank {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.popular-tool-card:nth-child(1) .tool-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Gold for 1st */
}

.popular-tool-card:nth-child(2) .tool-rank {
    background: linear-gradient(135deg, #6b7280, #4b5563); /* Silver for 2nd */
}

.popular-tool-card:nth-child(3) .tool-rank {
    background: linear-gradient(135deg, #92400e, #78350f); /* Bronze for 3rd */
}

.tool-details {
    flex: 1;
    min-width: 0;
}

.tool-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-usage {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tool-trend {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.tool-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Remove the old chart container styles since we're removing charts */
.chart-container {
    display: none; /* Hide the old chart container */
}

/* Adjust spacing for the new layout */
.analytics-section {
    padding: 2rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popular-tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .popular-tool-card {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .popular-tool-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .tool-details {
        text-align: center;
    }
    
    .tool-details h4 {
        white-space: normal;
    }
}

/* Tools Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Tool Card Styles */
.tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tool-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card-header i {
    font-size: 24px;
}

.tool-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tool-badge.popular {
    background: #ffd700;
    color: #000;
}

.tool-badge.new {
    background: #4cc9f0;
    color: white;
}

.tool-badge.pro {
    background: #7209b7;
    color: white;
}

.pro-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: linear-gradient(135deg, #7209b7, #4361ee);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.tool-card-body {
    padding: 20px;
}

.tool-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.tool-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.feature-tag {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
}

.tool-card-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-users, .stat-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-users {
    color: #6b7280;
}

.stat-trend.trend-up {
    color: #10b981;
}

.stat-trend.trend-down {
    color: #ef4444;
}

.tool-action-btn {
    padding: 8px 16px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tool-action-btn:hover {
    opacity: 0.9;
}

/* No tools message */
.no-tools-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}


/* ===== FIX TOOL CARD THEME COLORS ===== */
.tool-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.tool-card h3,
.tool-card .tool-name {
    color: var(--text-primary) !important;
}

.tool-card .tool-description {
    color: var(--text-secondary) !important;
}

.tool-content {
    background: transparent !important;
}

.tool-footer {
    border-color: var(--border-color) !important;
    background: transparent !important;
}

.tool-uses,
.tool-trend {
    color: var(--text-muted) !important;
}

.tool-trend.up {
    color: var(--success) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.feature-tag {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

.tool-card:hover .feature-tag {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-icon {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.btn-icon:hover {
    background: rgba(67, 97, 238, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}


/* ===== IMPROVED QUICK START MODAL ===== */
.quickstart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.quickstart-modal {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease;
}

.quickstart-modal .modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.quickstart-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.quickstart-modal .modal-header h3 i {
    color: var(--primary);
}

.modal-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
    padding: 0;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

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

.quickstart-summary {
    text-align: center;
    margin-bottom: 1.5rem;
}

.summary-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.quickstart-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.feature-badge i {
    color: var(--primary);
    font-size: 1rem;
}

.feature-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.popular-tools-list {
    margin-top: 2rem;
}

.popular-tools-list h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.tool-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.tool-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tool-item-content {
    flex: 1;
}

.tool-item-content h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.tool-item-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.quickstart-modal .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

#browseAllToolsBtn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-lg);
}

#browseAllToolsBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .quickstart-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .quickstart-modal .modal-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .quickstart-modal .modal-body {
        padding: 1rem;
    }
    
    .quickstart-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quickstart-modal .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .tool-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .tool-item-icon {
        margin: 0 auto;
    }
}

/* ===== ABOUT US SECTION ===== */
.about-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

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

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive adjustments for about section */
@media (max-width: 768px) {
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Blogs Section */
.blogs-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.blogs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blogs-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-card);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Ensure the suites-section has correct ID */
#suites-section {
    scroll-margin-top: 2rem;
}

/* Add scroll margin for all sections */
#about-section,
#suites-section,
#blogs-section,
#contact-section {
    scroll-margin-top: 2rem;
}

/* Dynamic Sections */
.dynamic-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.dynamic-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dynamic-section .section-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dynamic-section .section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.dynamic-section .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* Blogs Section */
.blogs-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.blogs-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.blog-post:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-post p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-card);
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section .contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-section .contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-section .contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-section .contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-section .contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Ensure all sections have proper scroll margin */
#about-section,
#suites-section,
#blogs-section,
#contact-section {
    scroll-margin-top: 100px; /* Adjust based on your header height */
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}


/* ===== FIX SCROLLING ISSUES ===== */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 80px !important;
}

/* Ensure all sections are properly spaced */
section, .tools-dashboard, main {
    scroll-margin-top: 90px !important;
    position: relative;
    z-index: 1;
}



/* Ensure content doesn't hide behind header */
.hero-section {
    padding-top: 20px;
}

/* Fix for mobile */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 70px !important;
    }
    
    section, .tools-dashboard, main {
        scroll-margin-top: 80px !important;
    }
}


/* ===== FIX SCROLLING OFFSET ISSUES ===== */

/* Fix for suites section scrolling */
#suites-section,
.suites-section {
    position: relative;
    padding-top: 20px; /* Add padding to prevent cutting off */
    margin-top: 0;
    scroll-margin-top: 100px !important; /* Increase margin for suites */
}

/* Fix for tools dashboard shifting */
.tools-dashboard {
    position: relative;
    padding-top: 10px;
    scroll-margin-top: 90px !important;
}

/* Fix for all sections to prevent shifting */
section {
    position: relative;
    z-index: 1;
}

/* Ensure smooth scrolling without jumping */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 85px !important; /* Adjust this value */
}



/* Add container padding to prevent content hiding */
.container {
    position: relative;
    z-index: 1;
}

/* Fix for mobile */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 75px !important;
    }
    
    #suites-section,
    .suites-section {
        scroll-margin-top: 90px !important;
    }
    
    .tools-dashboard {
        scroll-margin-top: 85px !important;
    }
}

/* Highlight animation */
@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.highlighted-section {
    animation: pulseHighlight 1.5s ease;
    position: relative;
}

/* ===== FIX CONTACT SECTION ICONS ===== */
.contact-section {
    padding: 4rem 0;
    background: var(--bg-card);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contact icons with proper styling */
.contact-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Email contact icon */
.contact-email .contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Feature request icon */
.contact-feature .contact-icon {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
}

/* Bug report icon */
.contact-bug .contact-icon {
    background: linear-gradient(135deg, var(--danger), #ef4444);
}

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

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-actions {
    margin-top: 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact info specific styling */
.contact-info {
    text-align: center;
    padding: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-email {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.125rem;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem 1.25rem;
    }
    
    .contact-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
}

/* ===== FIX TOOL CARD OVERFLOW ===== */
.tool-card {
    max-width: 100%;
    overflow: hidden;
}

.tool-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.tool-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* Ensure consistent card heights */
.tools-grid {
    align-items: stretch;
}

.tool-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.tool-features {
    margin-bottom: 1rem;
}

.tool-footer {
    margin-top: auto;
}

/* Fix for very long text in cards */
.tool-card * {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== ADD MISSING ICON FONTS ===== */
/* If icons are not showing, make sure you have Font Awesome or similar in your HTML */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Fallback icons using Unicode if Font Awesome fails */
.contact-email .contact-icon::before {
    content: "✉️";
    font-family: "Font Awesome 6 Free", Arial, sans-serif;
}

.contact-feature .contact-icon::before {
    content: "💡";
    font-family: "Font Awesome 6 Free", Arial, sans-serif;
}

.contact-bug .contact-icon::before {
    content: "🐛";
    font-family: "Font Awesome 6 Free", Arial, sans-serif;
}

/* ===== FIX FOR CARD SIZE CONSISTENCY ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    min-height: 260px;
    max-height: 320px;
}

/* ===== ENSURE PROPER CARD STYLING ===== */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Reset any conflicting styles */
.tool-card * {
    box-sizing: border-box;
}

/* ===== FIX FOR LIGHT THEME CARDS ===== */
[data-theme="light"] .tool-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="light"] .tool-card:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

/* ===== FIX FOR RESPONSIVE ISSUES ===== */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-card {
        min-height: auto;
        max-height: none;
    }
}


/* ===== FIX CONTACT SECTION ICONS ===== */
.contact-section .contact-icon {
    font-size: 3rem !important;
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
    transition: var(--transition);
}

/* Make icons more vibrant on hover */
.contact-section .contact-card:hover .contact-icon {
    transform: scale(1.1);
    text-shadow: 0 4px 16px rgba(67, 97, 238, 0.5);
}

/* Different colors for each contact icon */
.contact-section .contact-card:nth-child(1) .contact-icon {
    color: var(--primary) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .contact-card:nth-child(2) .contact-icon {
    color: var(--warning) !important;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .contact-card:nth-child(3) .contact-icon {
    color: var(--danger) !important;
    background: linear-gradient(135deg, var(--danger), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Add a subtle background to icons */
.contact-section .contact-card {
    position: relative;
    overflow: hidden;
}

.contact-section .contact-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    opacity: 0.1;
    transition: var(--transition);
    z-index: 0;
}


.contact-section .contact-card:hover::before {
    opacity: 0.15;
    transform: scale(1.2);
}

/* Make sure icons are above the background */
.contact-section .contact-icon {
    position: relative;
    z-index: 1;
}

/* Improve button styling */
.contact-section .btn-outline {
    margin-top: 1rem;
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-section .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* Fix sidebar mobile behavior */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        background: var(--bg-sidebar);
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    /* Add overlay when sidebar is open */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .main-content {
        margin-left: 0;
        position: relative;
        z-index: 1;
    }
}

/* ===== FIX MOBILE SIDEBAR MENU ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        background: var(--bg-sidebar);
        width: var(--sidebar-width) !important;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    /* Add overlay when sidebar is open */
    .sidebar.active + .main-content::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: all;
    }
    
    .main-content {
        margin-left: 0;
        position: relative;
        z-index: 1;
    }
    
    /* Ensure menu toggle works */
    #menuToggle {
        display: flex !important;
        cursor: pointer;
    }
}

/* Make tool cards clickable */
.tool-card {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tool-card:active {
    transform: translateY(-2px);
}

/* Disable pointer events on buttons inside so they don't interfere */
.tool-card .tool-actions button {
    pointer-events: auto;
    z-index: 2;
    position: relative;
}

/* Add a pseudo-element for the clickable area */
.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}


/* =========================
   SEO Collapsible Content
   ========================= */

/* Shared hidden content */
.suite-seo-content {
  margin-top: 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Open state (works for suite + homepage) */
.suite-seo-wrapper.open .suite-seo-content,
.homepage-seo-wrapper.open .suite-seo-content {
  max-height: 2000px;
  opacity: 1;
}

/* Wrapper spacing */
.suite-seo-wrapper {
  margin-top: 3rem;
}

.homepage-seo-wrapper {
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

/* Toggle button */
.seo-toggle {
  background: none;
  border: none;
  color: #9aa4ff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.seo-toggle:hover {
  text-decoration: underline;
}

.tool-seo-wrapper {
  margin-top: 3rem;
}


/* SEO Drawer (Tool Level) */
.tool-seo-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  max-height: 60vh;
  background: var(--bg-elevated, #111);
  border-top: 1px solid rgba(255,255,255,0.1);

  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 9999;

  overflow-y: auto;
  padding: 1.5rem;
}

.tool-seo-drawer.open {
  transform: translateY(0);
}

.tool-seo-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

.tool-seo-content {
  max-width: 900px;
  margin: 0 auto;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Coming Soon Badge Styles */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

.coming-soon-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    margin-left: 0.25rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

.badge-coming-soon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    animation: pulse 2s infinite;
}

.tool-card.coming-soon {
    opacity: 0.85;
    position: relative;
}

.tool-card.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.05);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

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

/* Pulse animation for coming soon items */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Coming soon tool stats */
.coming-soon-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-size: 0.875rem;
}

.coming-soon-stats i {
    animation: pulse 2s infinite;
}

/* Coming Soon Badge for Filter Buttons */
.coming-soon-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    margin-left: 0.25rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
    font-weight: 600;
}

/* Optional: Special styling for spiritual filter button */
.filter-btn[data-filter="spiritual"] {
    position: relative;
}

.filter-btn[data-filter="spiritual"]:hover .coming-soon-badge-small {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

/* Ensure spiritual filter gets proper active styling */
.filter-btn[data-filter="spiritual"].active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.filter-btn[data-filter="spiritual"].active .coming-soon-badge-small {
    background: white !important;
    color: var(--primary) !important;
}

/* Also for sidebar nav item */
.nav-item[data-filter="spiritual"].active {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.nav-item[data-filter="spiritual"].active .coming-soon-badge {
    background: var(--primary) !important;
    color: white !important;
}

/* Analytics Grid Layout */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for first row */
    grid-template-rows: auto auto; /* 2 rows */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* First row - 4 normal cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

/* Second row - wide cards (span 2 columns each) */
.stat-card-wide {
    grid-column: span 2; /* Make it span 2 columns */
    padding: 2rem; /* More padding for larger cards */
}

/* Icon for wide cards */
.stat-card-wide .stat-icon {
    width: 70px;
    height: 70px;
}

.stat-card-wide .stat-icon i {
    font-size: 2rem;
}

/* Content for wide cards */
.stat-card-wide .stat-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.stat-card-wide .stat-value {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card-wide .stat-trend {
    font-size: 1rem;
    max-width: 400px;
}

/* Coming Soon Cards */
.coming-soon-card {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(124, 58, 237, 0.1)
    );
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: pulse-gentle 3s infinite;
}

.coming-soon-card:nth-child(6) {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.1), 
        rgba(217, 119, 6, 0.1)
    );
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.coming-soon-badge-analytics {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    z-index: 1;
}

.coming-soon-card:nth-child(6) .coming-soon-badge-analytics {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@keyframes pulse-gentle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.coming-soon-card:nth-child(6) {
    animation: pulse-gentle-orange 3s infinite;
}

@keyframes pulse-gentle-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
    
    .stat-card-wide {
        grid-column: span 1; /* On medium screens, show as normal cards */
    }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .stat-card-wide {
        grid-column: span 1;
    }
    
    .stat-card, .stat-card-wide {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-card-wide .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-card-wide .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-card-wide .stat-value {
        font-size: 1.75rem;
    }
}

/* Card hover effects */
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.coming-soon-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.coming-soon-card:nth-child(6):hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

/* Icon styling */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.75rem;
    color: white;
}

.stat-content {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.up {
    color: var(--success);
}

/* Fix for suite tool cards - remove underlines but keep design */
.suite-tool-card {
    text-decoration: none !important;
}

.suite-tool-card * {
    text-decoration: none !important;
}

.suite-tool-card h4 {
    border-bottom: none !important;
    text-decoration: none !important;
}

.suite-tool-card p {
    border-bottom: none !important;
    text-decoration: none !important;
}

.suite-tool-card:hover {
    text-decoration: none !important;
}



/* HEADER LOGO FIX */

.header-logo{
display:flex;
align-items:center;
text-decoration:none;
flex-shrink:0;
}

.header-logo .logo-container{
display:flex;
align-items:center;
gap:10px;
}

.header-logo .logo-img{
height:38px;
width:auto;
}

.header-logo .logo-text{
display:flex;
flex-direction:column;
line-height:1.1;
}

.header-logo .logo-primary{
font-size:18px;
font-weight:600;
color:#fff;
}

.header-logo .logo-subtitle{
font-size:11px;
color:#94a3b8;
}

/* HEADER LAYOUT */

.nav-container{
display:flex;
align-items:center;
gap:25px;
max-width:1400px;
margin:auto;
}

/* BRAND */

.header-brand{
display:flex;
align-items:center;
gap:10px;
text-decoration:none;
}

.brand-logo{
height:40px;
}

.brand-text{
display:flex;
flex-direction:column;
line-height:1.1;
}

.brand-title{
font-size:18px;
font-weight:600;
color:#fff;
}

.brand-subtitle{
font-size:11px;
color:#94a3b8;
}

/* SEARCH */

.search-wrapper{
flex:1;
max-width:500px;
}

/* ACTIONS */

.nav-actions{
display:flex;
align-items:center;
gap:15px;
}


.platform-section{
margin:60px auto;
text-align:center;
}

.platform-title{
font-size:2rem;
font-weight:700;
margin-bottom:10px;
}

.platform-subtitle{
color:#94a3b8;
margin-bottom:40px;
}

.platform-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

.platform-card{
background:linear-gradient(145deg,#111827,#0b1220);
border-radius:18px;
padding:32px;
text-decoration:none;
color:#e5e7eb;

border:1px solid rgba(255,255,255,0.08);

transition:all .35s ease;
text-align:center;

box-shadow:
0 10px 25px rgba(0,0,0,0.4),
inset 0 1px 0 rgba(255,255,255,0.05);
}

.platform-card h3{
color:#f1f5f9;
font-size:1.25rem;
margin-bottom:10px;
}

.platform-card p{
color:#94a3b8;
font-size:0.95rem;
line-height:1.5;
}

.platform-icon{

font-size:34px;
margin-bottom:18px;

color:#6366f1;

background:rgba(99,102,241,0.12);
border-radius:14px;

width:60px;
height:60px;

display:flex;
align-items:center;
justify-content:center;

margin-left:auto;
margin-right:auto;

}


.platform-card:hover{

transform:translateY(-6px) scale(1.02);

border-color:#6366f1;

box-shadow:
0 20px 40px rgba(0,0,0,0.6),
0 0 20px rgba(99,102,241,0.35);

}

.platform-icon{
font-size:28px;
margin-bottom:15px;
color:#6366f1;
}

.platform-btn{

display:inline-block;
margin-top:15px;

color:#60a5fa;
font-weight:600;

transition:.2s;
}

.platform-card:hover .platform-btn{

color:#93c5fd;

}

.platform-card h3{

font-size:1.25rem;
color:#f1f5f9;
margin-bottom:10px;
}

.platform-card p{

color:#94a3b8;
font-size:.95rem;
line-height:1.5;
}