/* Style Sheet for Interactive Floor Plan Viewer */

/* Custom Variables */
:root {
    --bg-dark: #0f111a;
    --bg-sidebar: rgba(22, 25, 41, 0.75);
    --bg-card: rgba(30, 35, 58, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f3f9;
    --text-secondary: #8b9bb4;
    --accent-color: #4f46e5;
    --accent-hover: #6366f1;
    
    /* Category Colors - Modern HSL */
    --color-lobby: #ec4899;
    --color-reading: #3b82f6;
    --color-office: #10b981;
    --color-service: #f59e0b;
    --color-toilet: #8b5cf6;
    --color-vertical: #ef4444;
    --color-corridor: #64748b;
    
    /* Font Families */
    --font-ui: 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
    --font-code: 'Inter', monospace;
}

/* Theme Dark Overrides */
.theme-dark {
    --bg-dark: #090a0f;
    --bg-sidebar: rgba(15, 17, 26, 0.85);
    --bg-card: rgba(22, 25, 38, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    transition: background-color 0.4s ease;
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar Styling (Glassmorphism) */
.sidebar {
    width: 380px;
    height: 100%;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-area i {
    font-size: 28px;
    color: var(--accent-hover);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.logo-area h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-area p {
    font-size: 9px;
    font-family: var(--font-code);
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Sidebar scrollable area */
.sidebar-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
}

.sidebar-section h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 600;
}

/* Scrollbar customization */
.sidebar::-webkit-scrollbar,
.sidebar-section::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Floor Button List */
.floor-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.floor-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.floor-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.floor-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.floor-btn .num {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-code);
    opacity: 0.8;
}

.floor-btn.active .num {
    opacity: 1;
}

.floor-btn .text {
    font-size: 13px;
    font-weight: 500;
}

/* Style Selectors */
.style-selector {
    display: flex;
    gap: 8px;
}

.style-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.style-btn i {
    font-size: 14px;
    opacity: 0.7;
}

.style-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.style-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}

.style-btn.active i {
    opacity: 1;
}

/* Search Box Styling */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px 12px 38px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

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

.search-results-panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 6px;
}

.search-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item .name {
    font-weight: 500;
}

.search-item .area {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Stats Card Panel */
.stats-card {
    background: rgba(22, 25, 38, 0.4);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-code);
}

.stat-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 12px 0;
}

.category-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.category-stat-progress-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.category-stat-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

/* Legend Card Panel */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-lobby { background-color: var(--color-lobby); }
.category-reading { background-color: var(--color-reading); }
.category-office { background-color: var(--color-office); }
.category-service { background-color: var(--color-service); }
.category-toilet { background-color: var(--color-toilet); }
.category-vertical { background-color: var(--color-vertical); }
.category-corridor { background-color: var(--color-corridor); }

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 18px 24px;
    border-top: 1px solid var(--border-color);
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-footer p {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Workspace Panel */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.workspace-header {
    height: 76px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 17, 26, 0.2);
    backdrop-filter: blur(5px);
    z-index: 5;
}

.current-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.badge {
    background: var(--accent-hover);
    color: white;
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.current-info h2 {
    font-size: 18px;
    font-weight: 600;
}

.current-info .divider {
    color: var(--border-color);
}

.current-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.workspace-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.control-btn.btn-primary {
    width: auto;
    padding: 0 16px;
    background: var(--accent-color);
    border-color: var(--accent-hover);
    font-weight: 500;
    gap: 8px;
    font-size: 13px;
}

.control-btn.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Canvas Container Area */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.canvas-container:active {
    cursor: grabbing;
}

/* Floor Plan SVG Graphics Styling */
#blueprint-svg {
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    transition: transform 0.05s linear;
}

/* SVG Elements Styling based on MAP STYLE */

/* --- STYLE 1: COLOR (Modern Colored Fills) --- */
.style-color .svg-grid {
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 1px;
}

.style-color .svg-grid-major {
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1px;
}

.style-color .wall-outer {
    stroke: #334155;
    stroke-width: 6;
    stroke-linejoin: round;
    stroke-linecap: round;
    fill: none;
}

.style-color .wall-inner {
    stroke: #475569;
    stroke-width: 3.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    fill: none;
}

.style-color .room-fill {
    fill-opacity: 0.12;
    transition: fill-opacity 0.2s ease, stroke-width 0.2s ease;
    cursor: pointer;
}

.style-color .room-fill:hover {
    fill-opacity: 0.24;
}

.style-color .room-lobby { fill: var(--color-lobby); }
.style-color .room-reading { fill: var(--color-reading); }
.style-color .room-office { fill: var(--color-office); }
.style-color .room-service { fill: var(--color-service); }
.style-color .room-toilet { fill: var(--color-toilet); }
.style-color .room-vertical { fill: var(--color-vertical); }
.style-color .room-corridor { fill: var(--color-corridor); }

.style-color .stair-step {
    stroke: #64748b;
    stroke-width: 1px;
}

.style-color .door-arc {
    stroke: var(--accent-hover);
    stroke-width: 1.5px;
    stroke-dasharray: 2, 2;
    fill: none;
}

.style-color .door-leaf {
    stroke: var(--accent-hover);
    stroke-width: 2px;
}

.style-color .window-symbol {
    stroke: #0ea5e9;
    stroke-width: 2.5px;
}

.style-color .room-label-title {
    fill: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

.style-color .room-label-area {
    fill: #94a3b8;
    font-size: 11px;
    font-family: var(--font-code);
    text-anchor: middle;
    pointer-events: none;
}

.style-color .room-label-title-eng {
    fill: #64748b;
    font-size: 8px;
    font-family: var(--font-code);
    text-anchor: middle;
    letter-spacing: 0.5px;
    font-weight: 500;
    pointer-events: none;
}


/* --- STYLE 2: BLUEPRINT (Engineering Blueprint) --- */
.theme-blueprint {
    --bg-dark: #001f3f;
    --bg-sidebar: rgba(0, 20, 48, 0.85);
    --bg-card: rgba(0, 31, 74, 0.6);
    --border-color: rgba(0, 150, 255, 0.15);
    --text-primary: #a3e2ff;
    --text-secondary: #00a8ff;
    --accent-color: #0074d9;
    --accent-hover: #00a8ff;
}

.style-blueprint .svg-grid {
    stroke: rgba(0, 150, 255, 0.08);
    stroke-width: 0.5px;
}

.style-blueprint .svg-grid-major {
    stroke: rgba(0, 150, 255, 0.18);
    stroke-width: 1px;
}

.style-blueprint .wall-outer {
    stroke: #00bfff;
    stroke-width: 5;
    fill: none;
    filter: drop-shadow(0 0 1.5px rgba(0, 191, 255, 0.5));
}

.style-blueprint .wall-inner {
    stroke: #00a8ff;
    stroke-width: 3;
    fill: none;
}

.style-blueprint .room-fill {
    fill: rgba(0, 120, 255, 0.03);
    cursor: pointer;
    transition: fill 0.2s ease;
}

.style-blueprint .room-fill:hover {
    fill: rgba(0, 191, 255, 0.12);
}

.style-blueprint .stair-step {
    stroke: #00a8ff;
    stroke-width: 1px;
}

.style-blueprint .door-arc {
    stroke: #00a8ff;
    stroke-width: 1.5px;
    stroke-dasharray: 2, 2;
    fill: none;
}

.style-blueprint .door-leaf {
    stroke: #00bfff;
    stroke-width: 2px;
}

.style-blueprint .window-symbol {
    stroke: #00ffcc;
    stroke-width: 2px;
}

.style-blueprint .room-label-title {
    fill: #a3e2ff;
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
}

.style-blueprint .room-label-area {
    fill: #00e5ff;
    font-size: 11px;
    font-family: var(--font-code);
    text-anchor: middle;
    pointer-events: none;
}

.style-blueprint .room-label-title-eng {
    fill: #0088cc;
    font-size: 8px;
    font-family: var(--font-code);
    text-anchor: middle;
    pointer-events: none;
}


/* --- STYLE 3: CAD (Minimalist Line Drawing) --- */
.theme-cad {
    --bg-dark: #fcfcfc;
    --bg-sidebar: rgba(245, 245, 247, 0.95);
    --bg-card: rgba(255, 255, 255, 1);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #000000;
    --accent-hover: #333333;
}

.style-cad .svg-grid {
    stroke: rgba(0, 0, 0, 0.015);
    stroke-width: 0.5px;
}

.style-cad .svg-grid-major {
    stroke: rgba(0, 0, 0, 0.04);
    stroke-width: 0.8px;
}

.style-cad .wall-outer {
    stroke: #000000;
    stroke-width: 3.5;
    fill: none;
}

.style-cad .wall-inner {
    stroke: #222222;
    stroke-width: 2;
    fill: none;
}

.style-cad .room-fill {
    fill: rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: fill 0.2s ease;
}

.style-cad .room-fill:hover {
    fill: rgba(0, 0, 0, 0.015);
}

.style-cad .stair-step {
    stroke: #333333;
    stroke-width: 0.6px;
}

.style-cad .door-arc {
    stroke: #444444;
    stroke-width: 1px;
    stroke-dasharray: 2, 1;
    fill: none;
}

.style-cad .door-leaf {
    stroke: #111111;
    stroke-width: 1.5px;
}

.style-cad .window-symbol {
    stroke: #666666;
    stroke-width: 1.5px;
}

.style-cad .room-label-title {
    fill: #111111;
    font-size: 13px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
}

.style-cad .room-label-area {
    fill: #555555;
    font-size: 10px;
    font-family: var(--font-code);
    text-anchor: middle;
    pointer-events: none;
}

.style-cad .room-label-title-eng {
    fill: #999999;
    font-size: 7.5px;
    font-family: var(--font-code);
    text-anchor: middle;
    pointer-events: none;
}


/* Interactive Highlighting Effects */
.room-fill.highlighted {
    animation: flash-highlight 1.5s infinite alternate;
}

.style-color .room-fill.highlighted {
    fill-opacity: 0.45;
    stroke: var(--accent-hover);
    stroke-width: 1.5px;
}

.style-blueprint .room-fill.highlighted {
    fill: rgba(0, 191, 255, 0.3);
    stroke: #00ffcc;
    stroke-width: 1.5px;
}

.style-cad .room-fill.highlighted {
    fill: rgba(0, 0, 0, 0.05);
    stroke: #000000;
    stroke-width: 1.5px;
}

@keyframes flash-highlight {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Tooltip Panel Styling */
.tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    color: #f8fafc;
    width: 220px;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tooltip-badge {
    font-size: 9px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.tooltip-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.tooltip-row .label {
    color: #94a3b8;
}

.tooltip-row .value {
    font-weight: 500;
}

.tooltip-row strong.value {
    color: var(--accent-hover);
    font-family: var(--font-code);
    font-size: 12px;
}

/* CAD Theme Tooltip Override */
.theme-cad .tooltip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.theme-cad .tooltip-row .label {
    color: #86868b;
}

.theme-cad .tooltip-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.theme-cad .tooltip-row strong.value {
    color: #000;
}

/* --- Redesign Added Styles --- */

/* Room Details Sidebar Card */
.details-card {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    margin-bottom: 14px;
    animation: slide-down 0.3s ease;
}

.room-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.room-details-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

.detail-row .label {
    color: var(--text-secondary);
}

.detail-row .value {
    font-family: var(--font-code);
    color: var(--accent-hover);
}

.detail-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

/* Mockup Action Button */
.mockup-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.mockup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
    filter: brightness(1.1);
}

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

.tooltip .mockup-btn {
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 6px;
    margin-top: 4px;
}

/* Lightbox Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #94a3b8;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1010;
}

.modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-content {
    max-width: 960px;
    width: 90%;
    background: rgba(22, 25, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: zoom-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

.modal-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--accent-hover);
    border-radius: 2px;
}

.modal-img-container {
    width: 100%;
    max-height: 560px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img-container img {
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.modal-content p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Animations */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Blueprint Theme Lightbox Overrides */
.theme-blueprint .modal {
    background: rgba(0, 20, 48, 0.85);
    border-color: rgba(0, 150, 255, 0.3);
}

.theme-blueprint .modal-content {
    background: rgba(0, 31, 74, 0.8);
    border: 1px solid rgba(0, 150, 255, 0.25);
    box-shadow: 0 0 40px rgba(0, 150, 255, 0.2);
}

.theme-blueprint .modal-content h2 {
    color: #a3e2ff;
}

.theme-blueprint .modal-close {
    color: #00a8ff;
}

.theme-blueprint .modal-close:hover {
    color: #a3e2ff;
}

/* CAD Theme Lightbox Overrides */
.theme-cad .modal {
    background: rgba(255, 255, 255, 0.9);
}

.theme-cad .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.theme-cad .modal-content h2 {
    color: #1d1d1f;
}

.theme-cad .modal-content p {
    color: #515154;
}

.theme-cad .modal-close {
    color: #86868b;
}

.theme-cad .modal-close:hover {
    color: #1d1d1f;
}

