:root {
    --bg-dark: #0a0a0f;
    --bg-panel: #13131f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-hover: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(102, 126, 234, 0.2);
    --border-hover: rgba(102, 126, 234, 0.4);
    --primary: #667eea;
    --primary-hover: #5a6fd6;
    --primary-light: rgba(102, 126, 234, 0.15);
    --success: #2ed598;
    --success-bg: rgba(46, 213, 152, 0.1);
    --warning: #ffc107;
    --warning-bg: rgba(255, 193, 7, 0.1);
    --danger: #ff4757;
    --danger-bg: rgba(255, 71, 87, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono-font: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LIDA HEADER */
.lida-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1600px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lida-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.lida-logo {
    width: 65px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.lida-brand-name {
    font-size: 32px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.lida-brand-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.lida-tool-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.lida-tool-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
}

/* SHARE SECTION */
.share-section {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    width: 100%;
    max-width: 1600px;
}

.share-mobile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.share-mobile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.share-desktop-btns {
    display: none;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.share-label {
    color: #888;
    font-size: 14px;
}

.share-btn {
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.share-btn-facebook { background: #1877f2; }
.share-btn-linkedin { background: #0077b5; }
.share-btn-twitter { background: #14171a; }
.share-btn-copy { background: #555; }
.share-icon { width: 16px; height: 16px; }

/* CONTAINER */
.container {
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    max-width: 1600px;
    width: 100%;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* MODE SELECTOR */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

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

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.mode-icon {
    font-size: 1.3em;
}

/* TOOLBAR */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-panel);
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.toolbar-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

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

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
}

#global-search {
    padding: 10px 10px 10px 40px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    width: 250px;
    transition: all 0.2s ease;
}

#global-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-dropdown {
    padding: 10px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* MODE CONTENT */
.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* INPUT GRID */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.file-panel {
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.file-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

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

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.upload-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--primary);
    color: white;
}

.textarea-container {
    position: relative;
    flex: 1;
}

textarea {
    width: 100%;
    height: 280px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1.25rem;
    border-radius: 12px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.2s ease;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.textarea-toolbar {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.textarea-container:hover .textarea-toolbar {
    opacity: 1;
}

.mini-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.var-count {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
    background: var(--bg-dark);
    border-radius: 8px;
}

/* MULTI-ENVIRONMENT MODE */
.multi-env-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.multi-env-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.multi-env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* DOCKER SECTION */
.docker-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ACTION BAR */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.2em;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* LOADING */
.loading-state {
    text-align: center;
    padding: 3rem;
}

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

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

/* VIEW TABS */
.view-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: var(--bg-card);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary);
}

/* TAB CONTENT */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* HEALTH SCORE CARD */
.health-score-card {
    background: var(--bg-panel);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.score-visual {
    flex-shrink: 0;
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--bg-dark);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--success), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.score-details {
    flex: 1;
}

.score-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

#health-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.health-item-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.health-item-value {
    font-weight: 600;
    color: var(--text-main);
}

.health-item-value.good { color: var(--success); }
.health-item-value.warning { color: var(--warning); }
.health-item-value.bad { color: var(--danger); }

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card.matching .stat-value { color: var(--success); }
.stat-card.missing .stat-value { color: var(--danger); }
.stat-card.extra .stat-value { color: var(--warning); }
.stat-card.secrets .stat-value { color: var(--danger); }

/* DEPLOYMENT CARD */
.deployment-card {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.deployment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--border-hover);
}

.checklist-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.checklist-text {
    flex: 1;
}

.checklist-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.checklist-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checklist-item.pass {
    border-color: rgba(46, 213, 152, 0.3);
}

.checklist-item.warning {
    border-color: rgba(255, 193, 7, 0.3);
}

.checklist-item.fail {
    border-color: rgba(255, 71, 87, 0.3);
}

/* WARNINGS SECTION */
.warnings-section {
    margin-bottom: 2rem;
}

.warnings-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.warning-item {
    background: var(--danger-bg);
    border-left: 4px solid var(--danger);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0 12px 12px 0;
    transition: all 0.2s ease;
}

.warning-item:hover {
    transform: translateX(5px);
}

.success-message {
    background: var(--success-bg);
    border-left: 4px solid var(--success);
    padding: 1.25rem;
    border-radius: 0 12px 12px 0;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* COMPARISON GRID */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.comp-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.comp-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.comp-box h4 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.comp-list {
    list-style: none;
}

.comp-list li {
    background: var(--bg-dark);
    padding: 10px 14px 10px 2.5rem;
    margin-bottom: 8px;
    border-radius: 8px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
}

.comp-list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.comp-list li:hover {
    transform: translateX(5px);
}

.missing-col li { color: #ff99a3; border: 1px solid rgba(255, 71, 87, 0.3); }
.missing-col li::before { background: var(--danger); }
.extra-col li { color: #ffe69c; border: 1px solid rgba(255, 193, 7, 0.3); }
.extra-col li::before { background: var(--warning); }
.matching-col li { color: #9bfdd6; border: 1px solid rgba(46, 213, 152, 0.3); }
.matching-col li::before { background: var(--success); }

/* DIFF VIEW */
.diff-container {
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
}

.diff-line {
    display: flex;
    gap: 1rem;
    padding: 6px 12px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 2px;
}

.diff-line.added {
    background: rgba(46, 213, 152, 0.1);
    border-left: 3px solid var(--success);
}

.diff-line.removed {
    background: rgba(255, 71, 87, 0.1);
    border-left: 3px solid var(--danger);
}

.diff-line.changed {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning);
}

.diff-marker {
    font-weight: 700;
    flex-shrink: 0;
    width: 20px;
}

/* MATRIX TABLE */
.matrix-controls {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.matrix-table-wrapper {
    overflow-x: auto;
    background: var(--bg-panel);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.matrix-table th,
.matrix-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.matrix-table th {
    background: var(--bg-dark);
    font-weight: 700;
    color: var(--text-main);
    position: sticky;
    top: 0;
    z-index: 10;
}

.matrix-table tr:hover {
    background: var(--bg-hover);
}

.matrix-cell {
    font-family: var(--mono-font);
    font-size: 0.85rem;
}

.matrix-cell.present { color: var(--success); }
.matrix-cell.missing { color: var(--danger); }
.matrix-cell.different { color: var(--warning); }

/* INSIGHTS GRID */
.insights-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insight-item {
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
}

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

.insight-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.insight-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* GENERATOR SECTION */
.generator-section {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.generator-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

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

.action-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    text-align: left;
}

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

.action-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.action-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.danger-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.danger-btn:hover {
    background: #e63946;
    transform: translateY(-2px);
}

#template-output {
    width: 100%;
    height: 400px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* HISTORY LIST */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg-dark);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-item-name {
    font-weight: 700;
    color: var(--text-main);
}

.history-item-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-item-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.fab-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.fab-menu.active {
    display: flex;
    animation: fabSlideIn 0.3s ease;
}

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

.fab-option {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.fab-option:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(-5px);
}

/* EXPORT PANEL */
.export-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    min-width: 400px;
}

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

.export-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.export-option-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.export-option-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.export-option-btn span {
    font-size: 2em;
}

/* SHORTCUTS GRID */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.shortcut-item {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

kbd {
    background: var(--bg-hover);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: var(--mono-font);
    font-size: 0.85em;
    font-weight: 600;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    z-index: 3000;
    min-width: 250px;
    text-align: center;
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* PRIVACY NOTICE */
.privacy-notice-box {
    font-size: 0.95rem;
    margin-top: 3rem;
    padding: 1.25rem;
    background: var(--success-bg);
    border-radius: 12px;
    border: 1px solid rgba(46, 213, 152, 0.3);
    text-align: center;
}

/* ICON BUTTON */
.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* LIDA FOOTER */
.lida-footer {
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
    width: 100%;
    max-width: 1600px;
    position: relative;
}

.lida-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.lida-footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.lida-footer-copyright {
    font-size: 22px;
    color: #2a05fb;
    font-weight: 700;
    background: linear-gradient(#000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.lida-footer-version {
    font-size: 16px;
    color: #fff;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.lida-footer-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.lida-btn-discover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.lida-btn-discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lida-btn-discover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.lida-btn-discover:hover::before {
    left: 100%;
}

.lida-footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.lida-footer-bottom-text {
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .input-grid, .docker-section {
        grid-template-columns: 1fr;
    }
    
    .health-score-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .lida-header {
        padding: 20px 15px;
        border-radius: 12px 12px 0 0;
    }
    
    .container {
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
        justify-content: center;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-section {
        width: 100%;
        justify-content: space-between;
    }
    
    #global-search {
        width: 100%;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .cta-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .view-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .generator-actions {
        grid-template-columns: 1fr;
    }
    
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 0 10px;
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* PRINT */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .lida-header, .share-section, .toolbar, .action-bar, .fab-container, .lida-footer {
        display: none;
    }
    
    .results-section {
        display: block !important;
    }
}