/**
 * AKS Arc Deployment Tool - Styles
 * Modern UI Revamp - v2.1
 */

:root {
    /* Core Colors */
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --primary-light: #e8f4fd;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --error-color: #d13438;
    --info-color: #00bcf2;
    
    /* Surface Colors */
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-color: #242424;
    --text-secondary: #605e5c;
    --border-color: #e0e0e0;
    
    /* Modern Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.22);
    
    /* Modern Gradients */
    --header-gradient-1: #0078d4;
    --header-gradient-2: #106ebe;
    --card-gradient: linear-gradient(135deg, rgba(0, 120, 212, 0.03) 0%, rgba(0, 120, 212, 0.01) 100%);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
}

/* Force LTR direction for all elements - prevent text mirroring */
.force-ltr, .force-ltr * {
    direction: ltr !important;
    unicode-bidi: embed !important;
    text-align: left !important;
    transform: none !important;
    -webkit-transform: none !important;
}
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Theme - Enhanced Contrast and Readability */
[data-theme="dark"] {
    /* Core Colors - Brighter for better visibility */
    --primary-color: #4da6ff;
    --primary-hover: #66b3ff;
    --primary-light: #1a3d5c;
    --success-color: #66bb6a;
    --warning-color: #ffb74d;
    --error-color: #ef5350;
    --info-color: #42a5f5;
    
    /* Surface Colors - True dark with strong contrast */
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-color: #f5f5f5;
    --text-secondary: #b0b0b0;
    --border-color: #3d3d3d;
    
    /* Enhanced Shadows for Dark Mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.9);
    
    /* Dark Gradients */
    --header-gradient-1: #1a3d5c;
    --header-gradient-2: #0a1f33;
    --card-gradient: linear-gradient(135deg, rgba(77, 166, 255, 0.05) 0%, rgba(77, 166, 255, 0.02) 100%);
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: ltr !important;
    unicode-bidi: normal !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
}

.container {
    max-width: 1200px;
    transform: none !important;
    direction: ltr !important;
    margin: 0 auto;
    padding: 20px;
}

/* Header - Modern Design */
header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, var(--header-gradient-1) 0%, var(--header-gradient-2) 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

header:hover {
    box-shadow: var(--shadow-lg);
}

.header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.home-button,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-button:hover,
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-button:active,
.theme-toggle:active {
    transform: translateY(0);
}

.home-button .icon,
.theme-toggle .icon {
    font-size: 1.3rem;
}

header h1 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Catalog Notification */
.catalog-notification {
    background: rgba(0, 120, 212, 0.05);
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

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

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #605e5c;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .catalog-notification {
    background: rgba(0, 120, 212, 0.1);
    border-color: rgba(0, 120, 212, 0.4);
}

.catalog-banner {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--info-color);
}

.catalog-banner.warning {
    border-left-color: var(--warning-color);
    background: #fff4e5;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.95rem;
}

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

/* Step Progress Indicator */
.step-progress-wrapper {
    position: sticky;
    top: var(--spacing-md);
    z-index: 100;
    margin-bottom: var(--spacing-lg);
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.step-progress-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto var(--spacing-xs);
    transition: all var(--transition);
}

.step-progress-item.active .step-progress-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
    transform: scale(1.15);
}

.step-progress-item.completed .step-progress-number {
    background: var(--success-color);
    color: white;
}

.step-progress-item.completed .step-progress-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.step-progress-item.active .step-progress-label {
    color: var(--primary-color);
}

.step-progress-item.completed .step-progress-label {
    color: var(--success-color);
}

.step-progress-connector {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin-bottom: var(--spacing-xl);
    transition: background var(--transition);
}

.step-progress-item.completed + .step-progress-connector {
    background: var(--success-color);
}

/* Wizard Steps */
.wizard-step {
    display: none;
    background: var(--card-bg);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: none !important;
    direction: ltr !important;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.wizard-step > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Workload Cards - Compact Design */
.workload-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: var(--spacing-lg);
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

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

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

.card.selected {
    border-color: var(--primary-color);
    background: var(--card-gradient);
    box-shadow: var(--shadow-md);
}

.card.selected::before {
    transform: scaleX(1);
}

.card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.card-specs {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all var(--transition);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--primary-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error-color);
}

.form-group input.success,
.form-group select.success {
    border-color: var(--success-color);
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* Buttons - Modern Design */
.button-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-export {
    background: var(--success-color);
    color: white;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.btn-export:hover {
    background: #0e6b0e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert ul {
    margin: 10px 0 0 20px;
}

.alert-success {
    background: #dff6dd;
    border-left-color: var(--success-color);
    color: #0e5a0e;
}

.alert-error {
    background: #fde7e9;
    border-left-color: var(--error-color);
    color: #a80000;
}

.alert-warning {
    background: #fff4e5;
    border-left-color: var(--warning-color);
    color: #8a5300;
}

.alert-info {
    background: #e6f6ff;
    border-left-color: var(--info-color);
    color: #004e8c;
}

/* Plan Summary */
.plan-summary {
    background: #fafafa;
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.summary-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.solution-summary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(0, 120, 212, 0.02));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
}

.solution-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.solution-deployment {
    margin-top: 16px;
}

.solution-deployment pre {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #323130;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    margin-top: 8px;
}

[data-theme="dark"] .solution-deployment pre {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e1dfdd;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-table td:first-child {
    color: #605e5c;
    width: 40%;
}

.node-pool {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
}

.node-pool ul {
    margin: 10px 0 0 20px;
    font-size: 0.95rem;
}

.node-pool li {
    margin: 5px 0;
    color: #605e5c;
}

/* Export Section */
.export-section {
    background: white;
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 2px dashed var(--border-color);
}

.export-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.export-description {
    text-align: center;
    color: #605e5c;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.data-sources-link {
    text-align: center;
    font-size: 0.9rem;
    color: #605e5c;
    margin-top: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid var(--info-color);
}

.data-sources-link strong {
    color: var(--text-color);
}

.data-sources-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.data-sources-link a:hover {
    text-decoration: underline;
}

/* Success/Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.95rem;
    text-align: center;
}

.alert-success {
    background-color: #dff6dd;
    border: 1px solid #107c10;
    color: #107c10;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #0078d4;
    color: #0078d4;
}

.alert-warning {
    background-color: #fff4e5;
    border: 1px solid #ff8c00;
    color: #ff8c00;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #605e5c;
    margin-top: 40px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Theme Toggle */
/* Theme toggle specific positioning removed - now handled by shared styles above */

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .wizard-step {
        padding: 20px;
    }

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

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

    .workload-cards {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Industry Selector */
.industry-selector {
    margin-bottom: 40px;
}

.industry-selector h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.industry-selector > p {
    color: #605e5c;
    margin-bottom: 20px;
}

.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: var(--spacing-lg);
}

.industry-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

.industry-card.selected {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.08), rgba(16, 124, 16, 0.03));
    box-shadow: var(--shadow-md);
}

.industry-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--success-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.industry-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.industry-card h4 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.industry-card p {
    color: #605e5c;
    font-size: 0.75rem;
    margin-bottom: 8px;
    min-height: auto;
    line-height: 1.3;
}

.compliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.tag {
    display: inline-block;
    background: var(--info-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* Collapsible Section Styles */
.collapsible-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.collapsible-trigger:hover {
    background: var(--primary-light);
}

.collapsible-icon {
    transition: transform var(--transition);
}

.collapsible-trigger.expanded .collapsible-icon {
    transform: rotate(90deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) ease-in-out;
}

.collapsible-content.expanded {
    max-height: 2000px;
}

/* Info Tooltip Styles */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    position: relative;
    user-select: none;
}

.info-icon:hover {
    background: var(--primary-dark);
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d30;
    color: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 350px;
    width: max-content;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d2d30;
}

.info-icon:hover .info-tooltip {
    opacity: 1;
    pointer-events: auto;
}

/* Dark theme adjustments */
body.dark-theme .info-tooltip {
    background: #1e1e1e;
    color: #d4d4d4;
}

body.dark-theme .info-tooltip::after {
    border-top-color: #1e1e1e;
}

.compliance-details {
    background: var(--card-gradient);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.compliance-details h4 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
}

.framework-item {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.framework-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.framework-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.framework-description {
    color: #605e5c;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.framework-scope {
    font-size: 0.85rem;
    color: #8a8886;
    font-style: italic;
    margin-bottom: 10px;
}

.framework-requirements {
    margin-top: 10px;
}

.framework-requirements summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    padding: 8px;
    background: rgba(0, 120, 212, 0.05);
    border-radius: 4px;
    user-select: none;
}

.framework-requirements ul {
    margin-top: 10px;
    padding-left: 25px;
}

.framework-requirements li {
    color: #605e5c;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Environment Selector */
.environment-selector {
    margin-bottom: 40px;
}

.environment-selector h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.environment-selector > p {
    color: #605e5c;
    margin-bottom: 20px;
}

/* Solution Selector */
.solution-selector {
    margin-bottom: 40px;
}

.solution-selector h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.solution-selector > p {
    color: #605e5c;
    margin-bottom: 20px;
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.solution-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.solution-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.solution-card.selected {
    border-color: var(--primary-color);
    background: var(--card-gradient);
    box-shadow: var(--shadow-lg);
}

.solution-card.selected::after {
    content: '✓';
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.solution-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
}

.solution-card p {
    color: #605e5c;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.solution-tags .tag {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.solution-industries {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.solution-industries small {
    color: #8a8886;
    font-size: 0.85rem;
}

.solution-details {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.03), rgba(0, 120, 212, 0.01));
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    animation: slideDown 0.3s ease;
}

.solution-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.solution-info > p {
    color: #605e5c;
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-requirements,
.solution-use-cases {
    margin-bottom: 20px;
}

.solution-requirements h5,
.solution-use-cases h5 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.solution-requirements ul,
.solution-use-cases ul {
    list-style: none;
    padding: 0;
}

.solution-requirements li,
.solution-use-cases li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #605e5c;
    line-height: 1.5;
}

.solution-requirements li::before {
    content: '⚙️';
    position: absolute;
    left: 0;
}

.solution-use-cases li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

[data-theme="dark"] .solution-card {
    border-color: #3b3a39;
}

[data-theme="dark"] .solution-card:hover {
    border-color: #0078d4;
}

[data-theme="dark"] .solution-details {
    background: rgba(0, 120, 212, 0.05);
    border-color: rgba(0, 120, 212, 0.3);
}

.environment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.env-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.env-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

.env-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(0, 120, 212, 0.02));
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.2);
}

.env-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.env-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.env-card h4 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.env-card p {
    color: #605e5c;
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.env-details {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.env-details small {
    color: #8a8886;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 8px;
}

.cost-badge {
    display: inline-block;
    background: var(--info-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Security Scorecard - Color Coded */
.security-scorecard {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.08), rgba(16, 124, 16, 0.03));
    border: 3px solid var(--success-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.security-scorecard.warning {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08), rgba(255, 140, 0, 0.03));
    border-color: var(--warning-color);
}

.security-scorecard.error {
    background: linear-gradient(135deg, rgba(209, 52, 56, 0.08), rgba(209, 52, 56, 0.03));
    border-color: var(--error-color);
}

.security-scorecard h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    font-size: 1.5rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid var(--success-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow);
}

.score-circle.excellent {
    border-color: var(--success-color);
    background: rgba(16, 124, 16, 0.15);
    box-shadow: 0 0 0 4px rgba(16, 124, 16, 0.2);
}

.score-circle.good {
    border-color: var(--info-color);
    background: rgba(0, 188, 242, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 188, 242, 0.2);
}

.score-circle.fair {
    border-color: var(--warning-color);
    background: rgba(255, 140, 0, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
}

.score-circle.poor {
    border-color: var(--error-color);
    background: rgba(209, 52, 56, 0.15);
    box-shadow: 0 0 0 4px rgba(209, 52, 56, 0.2);
}

.score-number {
    font-size: 3rem;
    line-height: 1;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.7;
}

.score-details {
    flex: 1;
}

.score-rating {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.score-rating.excellent {
    color: var(--success-color);
}

.score-rating.good {
    color: var(--info-color);
}

.score-rating.fair {
    color: var(--warning-color);
}

.score-rating.poor {
    color: var(--error-color);
}

.score-subtitle {
    color: #605e5c;
    font-size: 0.9rem;
}

.security-checks {
    display: grid;
    gap: 12px;
}

.security-check {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border-radius: var(--radius);
    border-left: 5px solid var(--border-color);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.security-check:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.security-check.passed {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, rgba(16, 124, 16, 0.08) 0%, transparent 100%);
}

.security-check.failed {
    border-left-color: var(--error-color);
    background: linear-gradient(90deg, rgba(209, 52, 56, 0.08) 0%, transparent 100%);
}

.security-check.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.08) 0%, transparent 100%);
}

.check-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.check-content {
    flex: 1;
}

.check-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.check-description {
    font-size: 0.9rem;
    color: #605e5c;
    margin-bottom: 4px;
}

.check-recommendation {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: italic;
}

.check-points {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(0, 120, 212, 0.1);
    border-radius: 4px;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Compliance Badge */
.compliance-badge {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 120, 212, 0.05) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.compliance-badge strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.compliance-frameworks {
    font-size: 0.9rem;
    color: #605e5c;
}

[data-theme="dark"] .compliance-frameworks {
    color: #a19f9d;
}

/* Category Breakdown Styles */
.category-breakdown-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.category-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.excellent {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.05) 0%, transparent 100%);
}

.category-card.good {
    border-color: #0078d4;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05) 0%, transparent 100%);
}

.category-card.fair {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 185, 0, 0.05) 0%, transparent 100%);
}

.category-card.poor {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(164, 38, 44, 0.05) 0%, transparent 100%);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.category-score {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.category-points {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.category-progress {
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-fill.excellent {
    background: var(--success-color);
}

.progress-fill.good {
    background: #0078d4;
}

.progress-fill.fair {
    background: var(--warning-color);
}

.progress-fill.poor {
    background: var(--error-color);
}

.category-checks-count {
    font-size: 0.85rem;
    color: #605e5c;
}

[data-theme="dark"] .category-checks-count {
    color: #a19f9d;
}

/* Compliance Gap Analysis Styles */
.gap-analysis-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.gap-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.framework-gap {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.framework-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.framework-info h4 {
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.framework-description {
    color: #605e5c;
    font-size: 0.9rem;
    margin: 4px 0;
}

[data-theme="dark"] .framework-description {
    color: #a19f9d;
}

.framework-scope {
    display: inline-block;
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.framework-compliance {
    text-align: right;
    flex-shrink: 0;
}

.compliance-percentage {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.compliance-percentage.excellent {
    color: var(--success-color);
}

.compliance-percentage.good {
    color: #0078d4;
}

.compliance-percentage.fair {
    color: var(--warning-color);
}

.compliance-percentage.poor {
    color: var(--error-color);
}

.compliance-count {
    font-size: 0.85rem;
    color: #605e5c;
}

[data-theme="dark"] .compliance-count {
    color: #a19f9d;
}

.gap-details {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.gap-summary {
    margin-bottom: 12px;
}

.gap-count {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.gap-count.has-gaps {
    background: rgba(255, 185, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.gap-count.no-gaps {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.gap-items h5 {
    color: var(--text-color);
    font-size: 1rem;
    margin: 16px 0 12px 0;
}

.gap-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 6px;
    border-left: 4px solid var(--error-color);
    margin-bottom: 12px;
}

.gap-control-id {
    background: var(--error-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    height: fit-content;
    white-space: nowrap;
}

.gap-control-details {
    flex: 1;
}

.gap-control-details strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 8px;
}

.gap-remediation {
    background: rgba(0, 120, 212, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px;
    margin-top: 8px;
    border-radius: 4px;
}

.gap-remediation strong {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.remediation-steps {
    margin: 8px 0;
    padding-left: 20px;
}

.remediation-steps li {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.remediation-command {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
}

.remediation-command code {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Compliance Matrix Styles */
.compliance-matrix-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.matrix-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.matrix-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.summary-item {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.summary-item.compliant {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.summary-item.non-compliant {
    background: rgba(164, 38, 44, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.summary-item.total {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.matrix-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.compliance-matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
}

.compliance-matrix-table thead {
    background: var(--primary-color);
    color: white;
}

.compliance-matrix-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--primary-color);
}

.compliance-matrix-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.compliance-matrix-table tbody tr:hover {
    background: rgba(0, 120, 212, 0.05);
}

.matrix-cell-check {
    min-width: 200px;
}

.matrix-cell-category {
    min-width: 150px;
}

.matrix-cell-status {
    text-align: center;
    min-width: 120px;
}

.status-compliant {
    background: rgba(16, 124, 16, 0.1);
}

.status-noncompliant {
    background: rgba(164, 38, 44, 0.1);
}

.status-icon {
    font-size: 1.2rem;
    margin-right: 4px;
}

.control-id {
    font-size: 0.75rem;
    color: #605e5c;
    display: block;
    margin-top: 2px;
}

[data-theme="dark"] .control-id {
    color: #a19f9d;
}

.matrix-cell-na {
    text-align: center;
    color: #8a8886;
}

.category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.matrix-row-critical {
    border-left: 3px solid var(--error-color);
}

.matrix-row-high {
    border-left: 3px solid var(--warning-color);
}

.matrix-row-medium {
    border-left: 3px solid var(--primary-color);
}

/* Responsive adjustments for compliance features */
@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .framework-header {
        flex-direction: column;
    }
    
    .framework-compliance {
        text-align: left;
    }
    
    .matrix-table-wrapper {
        max-width: 100%;
    }
    
    .compliance-matrix-table {
        font-size: 0.8rem;
    }
    
    .compliance-matrix-table th,
    .compliance-matrix-table td {
        padding: 8px;
    }
}

/* Security Options Grid */
.security-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.security-option-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.security-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .security-option-card:hover {
    box-shadow: 0 4px 20px rgba(183, 148, 246, 0.3);
}

.security-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.security-option-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.security-option-header label {
    font-size: 1.1rem;
    cursor: pointer;
    margin: 0;
}

.security-option-body {
    padding-left: 30px;
}

.cost-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cost-paid {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

[data-theme="dark"] .cost-paid {
    background: rgba(255, 167, 38, 0.25);
    color: #ffb74d;
    border: 2px solid #ffa726;
    font-weight: 600;
}

.cost-free {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

[data-theme="dark"] .cost-free {
    background: rgba(76, 175, 80, 0.25);
    color: #8bc34a;
    border: 2px solid #4caf50;
    font-weight: 600;
}

.security-description {
    margin: 10px 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.security-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.security-features li {
    padding: 5px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.security-cost-estimate {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid var(--warning-color);
    border-radius: 4px;
}

[data-theme="dark"] .security-cost-estimate {
    background: rgba(255, 167, 38, 0.15);
    border: 2px solid #ffa726;
    color: #f5f5f5;
}

.security-recommendation {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-left: 3px solid var(--success-color);
    border-radius: 4px;
}

[data-theme="dark"] .security-recommendation {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4caf50;
    color: #f5f5f5;
}

/* Dark mode improved contrast and borders */
[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
    background: #3d3d3d;
    color: #f5f5f5;
    border: 1px solid #555555;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #4d4d4d;
}

[data-theme="dark"] .card,
[data-theme="dark"] .solution-card,
[data-theme="dark"] .workload-card {
    border: 2px solid #555555;
    background: var(--card-bg);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .solution-card:hover,
[data-theme="dark"] .workload-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
    transform: translateY(-3px);
}

[data-theme="dark"] .security-option-card {
    border: 2px solid #555555;
}

[data-theme="dark"] .security-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
}

[data-theme="dark"] .alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid var(--success-color);
    color: #8bc34a;
}

[data-theme="dark"] .alert-warning {
    background: rgba(255, 167, 38, 0.2);
    border: 2px solid var(--warning-color);
    color: #ffb74d;
}

[data-theme="dark"] .alert-error {
    background: rgba(239, 83, 80, 0.2);
    border: 2px solid var(--error-color);
    color: #ef5350;
}

/* Dark mode input and form improvements */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #3d3d3d;
    color: #f5f5f5;
    border: 2px solid #555555;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

[data-theme="dark"] .form-group label {
    color: #f5f5f5;
    font-weight: 600;
}

[data-theme="dark"] .info-banner {
    background: rgba(41, 182, 246, 0.15) !important;
    border: 2px solid var(--info-color);
    color: #f5f5f5;
}

/* Loading spinner (for future use) */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Preset buttons */
.preset-btn {
    transition: all 0.2s ease;
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preset-btn:active {
    transform: translateY(0);
}

.preset-banner {
    animation: fadeIn 0.5s ease;
}

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

/* Force LTR on all config sections and their children */
.config-section-card,
.config-section-card *,
#monitoringConfigSection,
#monitoringConfigSection *,
#securityConfigSection,
#securityConfigSection *,
#networkConfigSection,
#networkConfigSection *,
#storageConfigSection,
#storageConfigSection *,
#identityConfigSection,
#identityConfigSection *,
#arcGatewayConfigSection,
#arcGatewayConfigSection *,
#firewallConfigSection,
#firewallConfigSection *,
.advanced-section,
.advanced-section *,
.form-grid,
.form-grid *,
.checkbox-group,
.checkbox-group *,
.toggle-advanced-btn,
.info-banner,
.info-banner *,
button,
button *,
label,
label * {
    direction: ltr !important;
    unicode-bidi: normal !important;
    transform: none !important;
    text-align: left !important;
}
