/* Layout Structure */
.sidebar {
    width: 400px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.main-stage {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.app-header {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.brand-gradient {
    background: -webkit-linear-gradient(0deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-signature {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-signature::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--primary);
    display: block;
}

.author-highlight {
    color: var(--purple);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Panels & Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.panel-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}

.panel-subtitle:first-child {
    margin-top: 0;
}

.comm-panel {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.comm-style {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.comm-input {
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #6ee7b7 !important;
    font-weight: bold;
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    border-color: var(--primary);
}

.view-section {
    display: none;
    height: 100%;
    flex-direction: column;
    gap: 20px;
}

.view-section.active-view {
    display: flex;
}

.hidden {
    display: none !important;
}
