/* ==========================================================================
   DENTA3D - CORE CSS STYLESHEET
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-base: #0a0d14;
    --bg-panel: rgba(18, 22, 33, 0.75);
    --bg-panel-solid: #121621;
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-focus: rgba(0, 168, 204, 0.4);
    
    --text-primary: #f1f3f9;
    --text-secondary: #8e9cae;
    --text-muted: #5e6b7c;
    
    --accent-blue: #00bcd4;
    --accent-blue-rgb: 0, 188, 212;
    --accent-blue-hover: #0097a7;
    
    --status-healthy: #2ecc71;
    --status-decay: #ff4d4d;
    --status-filled: #4da6ff;
    --status-crown: #ffd700;
    --status-missing: #7f8c8d;
    
    --glow-color: rgba(0, 188, 212, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Light Theme Variables (Ready for toggling if needed) */
.light-theme {
    --bg-base: #f4f6fa;
    --bg-panel: rgba(255, 255, 255, 0.8);
    --bg-panel-solid: #ffffff;
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-focus: rgba(0, 188, 212, 0.5);
    
    --text-primary: #1e2530;
    --text-secondary: #5a6578;
    --text-muted: #95a1b3;
    
    --glow-color: rgba(0, 188, 212, 0.1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 188, 212, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(155, 89, 182, 0.05) 0px, transparent 50%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout Container */
.app-container {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    width: 100vw;
    height: 100vh;
    gap: 16px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Panel Template */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* SIDEBAR LEFT: Patients List */
.sidebar-left {
    height: 100%;
}

.brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
}
.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-blue), #8e44ad);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}
.brand-icon {
    font-size: 20px;
    color: #ffffff;
}
.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-text span {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 1.5px;
    display: block;
}

.search-box {
    margin: 16px 20px;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}
.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 10px 12px 10px 38px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}
.search-box input:focus {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px var(--glow-color);
}

.section-header {
    padding: 0 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.patient-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Patient Card Item */
.patient-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    position: relative;
}
.patient-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
    transform: translateY(-1px);
}
.patient-card.active {
    background: rgba(0, 188, 212, 0.08);
    border-color: var(--border-focus);
    box-shadow: inset 0 0 8px rgba(0, 188, 212, 0.1);
}
.patient-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition-smooth);
}
.patient-card.active .patient-avatar {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}
.patient-card-info {
    flex: 1;
    min-width: 0;
}
.patient-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13.5px;
}
.patient-meta {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.patient-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-healthy);
    box-shadow: 0 0 6px var(--status-healthy);
}
.patient-status-indicator.has-decay {
    background-color: var(--status-decay);
    box-shadow: 0 0 6px var(--status-decay);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.15);
}
.db-stats {
    font-size: 11px;
    color: var(--text-muted);
}

/* Buttons */
.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-icon:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.btn-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
}
.btn-icon-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* MAIN CONTENT AREA: 3D VIEWPORT */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 76px;
}

.active-patient-card {
    flex: 1;
    padding: 14px 20px;
    display: flex;
    flex-direction: row; /* Override glass-panel column stack */
    align-items: center;
    gap: 14px;
    height: 100%;
}
.patient-avatar-large {
    font-size: 32px;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}
.patient-info-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}
.patient-info-header span {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
}

.view-controls {
    display: flex;
    flex-direction: row; /* Override glass-panel column stack */
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: 100%;
}
.btn-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-smooth);
}
.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.btn-toggle.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
}
.divider {
    width: 1px;
    height: 24px;
    background: var(--border-glass);
    margin: 0 8px;
}

/* 3D Canvas Box */
.canvas-container {
    flex: 1;
    position: relative;
    background: #06090e;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}
.canvas-instructions {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 11px;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Summary Overlay Panel */
.dental-summary-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 16px;
    width: 280px;
    z-index: 10;
    pointer-events: auto;
}
.dental-summary-overlay h3 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.summary-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 10px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.summary-item .count {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}
.summary-item .label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}
.summary-item.decay .count { color: var(--status-decay); }
.summary-item.filled .count { color: var(--status-filled); }
.summary-item.crown .count { color: var(--status-crown); }
.summary-item.missing .count { color: var(--text-muted); }

/* SIDEBAR RIGHT: Detailed Dental Charting Panel */
.sidebar-right {
    height: 100%;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}
.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.05);
}
.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 12px;
    line-height: 1.6;
}

/* Active Tooth Detail Panel */
.tooth-details-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}
.btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-close:hover {
    color: var(--text-primary);
}

.tooth-identifier {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tooth-badge {
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}
.tooth-identifier h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.tooth-type-sub {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Status selection grid */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.status-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
    text-align: left;
}
.status-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
}
.status-btn.active {
    background: rgba(255, 255, 255, 0.07);
    border-width: 1.5px;
}
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.status-btn.healthy .status-indicator { background: var(--status-healthy); box-shadow: 0 0 6px var(--status-healthy); }
.status-btn.decay .status-indicator { background: var(--status-decay); box-shadow: 0 0 6px var(--status-decay); }
.status-btn.filled .status-indicator { background: var(--status-filled); box-shadow: 0 0 6px var(--status-filled); }
.status-btn.crown .status-indicator { background: var(--status-crown); box-shadow: 0 0 6px var(--status-crown); }
.status-btn.missing .status-indicator { background: var(--status-missing); box-shadow: 0 0 6px var(--status-missing); }

.status-btn.active.healthy { border-color: var(--status-healthy); box-shadow: inset 0 0 8px rgba(46, 204, 113, 0.1); }
.status-btn.active.decay { border-color: var(--status-decay); box-shadow: inset 0 0 8px rgba(255, 77, 77, 0.15); }
.status-btn.active.filled { border-color: var(--status-filled); box-shadow: inset 0 0 8px rgba(77, 166, 255, 0.15); }
.status-btn.active.crown { border-color: var(--status-crown); box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.15); }
.status-btn.active.missing { border-color: var(--status-missing); box-shadow: inset 0 0 8px rgba(127, 140, 141, 0.15); }

/* Color presets */
.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 12px;
    border-radius: var(--border-radius-md);
}
.color-presets {
    display: flex;
    gap: 8px;
}
.color-preset {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.color-preset:hover {
    transform: scale(1.15);
    border-color: #ffffff;
}
.color-preset.active {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
    transform: scale(1.1);
}
.custom-color-input {
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-color-input input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}
.custom-color-input input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.custom-color-input input[type="color"]::-webkit-color-swatch {
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}
.custom-color-input span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Clinical notes textarea */
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    resize: vertical;
    transition: var(--transition-smooth);
}
textarea:focus {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px var(--glow-color);
}

/* History Timeline */
.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}
.timeline-item {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid var(--border-glass);
    padding-bottom: 4px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 4px var(--accent-blue);
}
.timeline-date {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.timeline-text {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 1px;
}
.timeline-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
    padding: 1px 4px;
    border-radius: 3px;
}
.timeline-status.decay { background: rgba(255, 77, 77, 0.15); color: var(--status-decay); }
.timeline-status.filled { background: rgba(77, 166, 255, 0.15); color: var(--status-filled); }
.timeline-status.crown { background: rgba(255, 215, 0, 0.15); color: var(--status-crown); }
.timeline-status.missing { background: rgba(127, 140, 141, 0.15); color: var(--status-missing); }
.timeline-status.healthy { background: rgba(46, 204, 113, 0.15); color: var(--status-healthy); }

.drawer-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
}
.drawer-footer button {
    width: 100%;
}

/* MODAL WINDOW OVERLAYS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 12, 0.65);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 500px;
    max-width: 90%;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
    animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

#add-patient-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
input[type="text"],
input[type="date"],
input[type="tel"],
select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    width: 100%;
}
input[type="text"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px var(--glow-color);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Responsive Overrides (For smaller viewports) */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 280px 1fr;
        grid-template-rows: 1fr auto;
    }
    .sidebar-right {
        grid-column: 1 / -1;
        height: auto;
        max-height: 400px;
    }
}
@media (max-width: 800px) {
    .app-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    .sidebar-left, .sidebar-right, .main-content {
        height: auto;
    }
    .canvas-container {
        height: 450px;
    }
}
