/* Silvercrest Enterprise Design System */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Silvercrest Enterprise Brand Colors */

    /* Primary Blues - Billy Blue System */
    --primary: #467C9F;              /* Billy Blue - Primary brand color */
    --primary-dark: #2C5F7C;         /* Deep Navy - Headers, depth, sophisticated gradients */
    --primary-light: #6B9FC2;        /* Computed lighter blue */
    --primary-ultra-light: #E8F2F7;  /* Light Blue - Information panels, hover states */

    /* Accent Colors */
    --accent: #E7B05C;               /* Yucky Yellow - Call-to-action buttons, highlights */
    --accent-dark: #D49D42;          /* Computed darker yellow */
    --accent-light: #F4D699;         /* Computed lighter yellow */

    /* Alert & Status Colors */
    --danger: #C7525B;               /* Ryan Red - Urgent alerts, important notifications */
    --danger-dark: #A83942;          /* Computed darker red */
    --danger-light: #E08087;         /* Warm Coral - Softer alerts, secondary CTAs */

    /* Success & Positive States */
    --success: #10B981;              /* Emerald green for success states */
    --success-light: #E8F5F1;       /* Soft Mint - Success states, positive feedback */

    /* Neutral & Text Colors */
    --neutral-100: #FFFFFF;          /* White - Backgrounds, clean design space */
    --neutral-150: #FDFAF7;          /* Cream - Alternative to pure white, card backgrounds */
    --neutral-200: #F8FAFB;          /* Very light gray */
    --neutral-300: #F1F4F6;          /* Light gray */
    --neutral-400: #E5E9ED;          /* Border gray */
    --neutral-500: #A7A9AC;          /* Silvercrest Silver - Secondary text, minimal accenting */
    --neutral-600: #8B95A3;          /* Mid gray */
    --neutral-700: #4A5568;          /* Charcoal Gray - Body text, secondary headings */
    --neutral-800: #2D3748;          /* Dark gray */
    --neutral-900: #000000;          /* Black - Primary text for readability */

    /* Semantic Color Mappings */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-700);
    --text-muted: var(--neutral-600);
    --text-inverse: var(--neutral-100);

    --background-primary: var(--neutral-100);
    --background-secondary: var(--neutral-150);
    --background-tertiary: var(--neutral-200);
    --background-info: var(--primary-ultra-light);
    --background-success: var(--success-light);

    --border-primary: var(--neutral-300);
    --border-secondary: var(--neutral-400);
    --border-focus: var(--primary);

    /* Interactive States */
    --hover-primary: var(--primary-dark);
    --hover-accent: var(--accent-dark);
    --hover-danger: var(--danger-dark);
    --hover-background: var(--neutral-200);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    background-color: #f0f4f8;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='hexagons' width='50' height='43.4' patternUnits='userSpaceOnUse' patternTransform='scale(2) rotate(0)'%3E%3Cpolygon points='24.8,22 37.3,29.2 37.3,43.7 24.8,50.9 12.3,43.7 12.3,29.2' fill='none' stroke='%23467C9F' stroke-width='0.5' opacity='0.2'/%3E%3Cpolygon points='49.8,22 62.3,29.2 62.3,43.7 49.8,50.9 37.3,43.7 37.3,29.2' fill='none' stroke='%23E7B05C' stroke-width='0.5' opacity='0.15'/%3E%3Cpolygon points='24.8,-21.4 37.3,-14.2 37.3,0.3 24.8,7.5 12.3,0.3 12.3,-14.2' fill='none' stroke='%23467C9F' stroke-width='0.5' opacity='0.15'/%3E%3Cpolygon points='-0.2,22 12.3,29.2 12.3,43.7 -0.2,50.9 -12.7,43.7 -12.7,29.2' fill='none' stroke='%23E7B05C' stroke-width='0.5' opacity='0.2'/%3E%3Ccircle cx='25' cy='22' r='2' fill='%23467C9F' opacity='0.3'/%3E%3Ccircle cx='50' cy='0' r='1.5' fill='%23E7B05C' opacity='0.3'/%3E%3Ccircle cx='0' cy='43' r='1.5' fill='%23C7525B' opacity='0.25'/%3E%3Cpath d='M25,22 L37.3,29.2 M25,22 L12.3,29.2 M25,22 L25,7.5' stroke='%23467C9F' stroke-width='0.3' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23hexagons)' /%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,244,248,0.9) 100%);
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(70, 124, 159, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 70% 100%, rgba(231, 176, 92, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 0% 50%, rgba(199, 82, 91, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* Main App Container */
.app-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Ensure all main content is above background */
.container {
    position: relative;
    z-index: 10;
}

main, .main-content {
    position: relative;
    z-index: 10;
}

/* Premium Header */
.enterprise-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(70, 124, 159, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.enterprise-header-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.enterprise-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.enterprise-logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.enterprise-logo .tagline {
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Main Content Area */
.enterprise-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    background: var(--neutral-100);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Premium Cards */
.enterprise-card {
    background: var(--neutral-100);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-300);
    position: relative;
    overflow: hidden;
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.enterprise-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-ultra-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.enterprise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.enterprise-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Premium Buttons */
.btn-enterprise {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-enterprise-primary {
    background: var(--primary);
    color: var(--neutral-100);
}

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

.btn-enterprise-secondary {
    background: var(--neutral-100);
    color: var(--primary);
    border: 2px solid var(--neutral-300);
}

.btn-enterprise-secondary:hover {
    background: var(--primary-ultra-light);
    border-color: var(--primary);
}

/* Stats Section */
.stats-section {
    background: var(--neutral-100);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Features Grid */
.features-section {
    background: var(--neutral-100);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.features-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2rem;
    text-align: center;
}

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

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-ultra-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

/* Quick Actions */
.quick-actions {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    color: var(--neutral-100);
    text-align: center;
}

.quick-actions h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quick-actions p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

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

.btn-action {
    background: var(--neutral-100);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* API Status Sidebar - Refined */
.api-status-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow:
        0 20px 50px rgba(70, 124, 159, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    width: 280px;
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.api-status-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-status-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--neutral-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.api-status-item:hover {
    background: var(--neutral-300);
}

.api-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.api-info {
    flex: 1;
}

.api-name {
    font-weight: 500;
    color: var(--neutral-900);
    font-size: 0.875rem;
}

.api-status-text {
    font-size: 0.75rem;
    color: var(--neutral-600);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-500);
}

.status-indicator[data-status="active"] {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-indicator[data-status="error"] {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(199, 82, 91, 0.2);
}

/* Forms - Enterprise Style */
.enterprise-form {
    background: var(--neutral-100);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background: var(--neutral-100);
    color: var(--neutral-800);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 124, 159, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--neutral-500);
}

/* Success/Error States */
.alert-enterprise {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid var(--danger);
}

.alert-info {
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

/* Loading States */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--neutral-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .api-status-sidebar {
        display: none;
    }

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

@media (max-width: 768px) {
    .enterprise-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

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

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--neutral-600); }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.p-2 { padding: 1rem; }

/* Override legacy styles */
body > .container:first-child {
    display: none;
}

.container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    background: transparent !important;
}

/* Override API sidebar styles */
.api-status-sidebar {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: var(--neutral-900) !important;
}

button {
    font-family: var(--font-body) !important;
}

/* Additional Button Styles */
.btn-enterprise-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-enterprise-outline:hover {
    background: var(--primary);
    color: var(--neutral-100);
    box-shadow: var(--shadow-md);
}

.btn-enterprise-danger {
    background: var(--danger);
    color: var(--neutral-100);
}

.btn-enterprise-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-enterprise-success {
    background: #10B981;
    color: var(--neutral-100);
}

.btn-enterprise-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-enterprise-warning {
    background: var(--accent);
    color: var(--neutral-100);
}

.btn-enterprise-warning:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-enterprise-white {
    background: var(--neutral-100);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

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

.btn-enterprise-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Admin Button Styles */
.admin-button-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.admin-btn-primary {
    background: var(--primary);
    color: var(--neutral-100);
}

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

.admin-btn-secondary {
    background: var(--accent);
    color: var(--neutral-100);
}

.admin-btn-secondary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.admin-btn-neutral {
    background: var(--neutral-700);
    color: var(--neutral-100);
}

.admin-btn-neutral:hover {
    background: var(--neutral-800);
    transform: translateY(-1px);
}

.admin-btn-accent {
    background: var(--primary);
    color: var(--neutral-100);
}

.admin-btn-accent:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.admin-btn-warning {
    background: var(--accent);
    color: var(--neutral-100);
}

.admin-btn-warning:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.admin-btn-danger {
    background: var(--danger);
    color: var(--neutral-100);
}

.admin-btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
}

/* Main Content Header */
.main-content-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-content-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.main-content-header .subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Enterprise CTA Section */
.enterprise-cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow:
        0 20px 60px rgba(70, 124, 159, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.enterprise-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.enterprise-cta-section h2 {
    color: var(--neutral-100);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.enterprise-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.enterprise-cta-section .btn-enterprise {
    position: relative;
    z-index: 1;
}

/* Enterprise Feature Section */
.enterprise-feature-section {
    text-align: center;
    padding: 3rem;
    background: var(--neutral-100);
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-300);
}

.enterprise-feature-section h3 {
    color: var(--neutral-900);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.enterprise-feature-section p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Navigation */
.enterprise-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Config Section Styling */
.config-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow:
        0 10px 40px rgba(70, 124, 159, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(70, 124, 159, 0.1);
    position: relative;
    overflow: hidden;
}

.config-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--accent) 50%,
        var(--primary) 100%);
}

/* Parameters Section */
.parameters-section {
    margin-bottom: 2rem;
}

.parameters-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

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

.param-item label {
    display: block;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.param-item input,
.param-item select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--neutral-300);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--neutral-100);
    color: var(--neutral-800);
    transition: all 0.2s ease;
}

.param-item input:focus,
.param-item select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 124, 159, 0.1);
}

/* Generate Button */
.generate-btn {
    background: var(--primary);
    color: var(--neutral-100);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Rules Section */
.rules-section {
    margin-bottom: 1.5rem;
}

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

.rules-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.toggle-btn {
    background: var(--neutral-100);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: var(--primary);
    color: var(--neutral-100);
}

/* Spreadsheet Upload Section */
.spreadsheet-upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    background: var(--primary-ultra-light);
}

.spreadsheet-upload-section h3 {
    font-family: var(--font-heading);
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

/* Field Mapping */
.field-mapping {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--neutral-100);
    color: var(--neutral-800);
}