/* Design System & Variables — Light Minimalist Premium (Integra Style) */
:root {
    --bg-primary: #f8fafc; /* Very light slate-gray background */
    --bg-secondary: #ffffff; /* Pure white for cards, sidebar, panels */
    --bg-tertiary: #f1f5f9; /* Light grey for inputs, dropdowns, hovered items */
    --border-color: #e2e8f0; /* Thin, soft border */
    --border-hover: #cbd5e1;
    
    --text-primary: #0f172a; /* Slate 900 for dark readability */
    --text-secondary: #475569; /* Slate 700 for subtitles */
    --text-muted: #94a3b8; /* Slate 400 for breadcrumbs, placeholder labels */
    
    --accent-primary: #000000; /* Deep black accent from Integra design */
    --accent-primary-hover: #1e293b;
    --accent-primary-muted: rgba(0, 0, 0, 0.05);
    
    --accent-emerald: #10b981; /* Success states */
    --accent-emerald-muted: #ecfdf5;
    
    --accent-blue: #3b82f6;
    --accent-blue-muted: #eff6ff;
    
    --accent-danger: #ef4444;
    --accent-danger-hover: #dc2626;
    --accent-danger-muted: #fef2f2;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

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

/* Sidebar (White panel, thin border) */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
}

/* Project selector (Integra style dropdown) */
.project-selector-container {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 700;
}

.project-select-wrapper {
    display: flex;
    gap: 8px;
}

.project-select {
    flex: 1;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 32px;
}

.project-select:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-tertiary);
}

.btn-icon {
    width: 38px;
    height: 38px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: white;
}

/* Navigation Links (Integra active list style) */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Active Nav Link: Solid Black with white text and an arrow on the right */
.nav-item.active {
    color: white;
    background-color: var(--accent-primary);
}

.nav-item.active::after {
    content: '›';
    position: absolute;
    right: 16px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.badge {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: auto;
}

.nav-item.active .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sidebar progress card */
.sidebar-progress-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
}

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

.progress-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.progress-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

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

.progress-bar {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-indigo {
    background-color: var(--accent-primary);
}

.progress-footer-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-primary);
}

/* Header (Minimal, breadcrumbs, white background) */
.main-header {
    height: 80px;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    flex-direction: column;
}

/* Add dynamic breadcrumb look */
.header-left::before {
    content: "MI PROYECTO • ROADMAP DE IMPLEMENTACIÓN";
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.header-left h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.header-left p {
    font-size: 12px;
    color: var(--text-secondary);
    display: none; /* Keep it clean like the mockup */
}

/* Tabs structure */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.2s ease;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

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

/* Utility Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .main-header { padding: 0 20px; }
    .tab-content { padding: 20px; }
}

/* Cards (Integra Style: White background, thin border, sharp text) */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

/* Remove colored top borders, maintain clean minimal style */
.card-accent, .card-accent-blue, .card-accent-indigo, .card-accent-emerald {
    border-top: none;
    border-left: 4px solid var(--accent-primary);
}

.card h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Progress Ring SVG styles */
.progress-ring-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 80px;
    height: 80px;
}

.progress-ring-bg {
    stroke: var(--bg-tertiary);
}

.progress-ring-circle {
    stroke: var(--accent-primary);
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.progress-stats {
    flex: 1;
    margin-left: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Badge styles */
.badge-emerald {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* Mini timelines for Dashboard */
.phases-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.timeline-step {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    min-width: 120px;
    transition: all var(--transition-fast);
}

.timeline-step:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-primary);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-step:hover .step-num {
    background-color: var(--accent-primary);
    color: white;
}

.step-details h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.progress-mini {
    width: 100%;
    height: 4px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-mini-bar {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Quick idea styles (Dashed placeholder look from mock) */
.quick-idea-form {
    display: flex;
    gap: 8px;
}

.form-control {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
}

textarea.form-control {
    resize: vertical;
}

.idea-list {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dashed card border like "Subir Imagen" in the mock */
.idea-item {
    background-color: var(--bg-secondary);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    transition: border-color var(--transition-fast);
}

.idea-item:hover {
    border-color: var(--accent-primary);
}

.idea-item p {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    margin-right: 12px;
}

.idea-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.idea-delete:hover {
    color: var(--accent-danger);
}

/* Lists and tables */
.dashboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.list-date {
    color: var(--text-muted);
    font-weight: 700;
    min-width: 60px;
}

.list-title {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Roadmap Accordion */
.roadmap-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.accordion-item.active {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover {
    background-color: var(--bg-primary);
}

.accordion-header .header-left,
.accordion-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phase-badge {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.accordion-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.duration-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.phase-progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .phase-progress-circle {
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: white;
}

.chevron-icon {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.accordion-body {
    display: none;
    border-top: 1px solid var(--border-color);
    padding: 24px;
    background-color: var(--bg-primary);
}

.accordion-item.active .accordion-body {
    display: block;
}

.phase-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .phase-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.meta-section strong {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
}

.meta-section p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.task-list-container h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 800;
}

/* Custom interactive checkboxes (Integra style black/white checkbox) */
.interactive-task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.task-checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    background-color: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.task-checkbox-label:hover .custom-checkbox {
    border-color: var(--accent-primary);
}

.task-checkbox-label input:checked + .custom-checkbox {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.task-checkbox-label input:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-checkbox-label input:checked ~ .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-text {
    transition: color var(--transition-fast);
}

/* Dynamic Task Item styling */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    gap: 16px;
    margin-bottom: 8px;
}

.task-item:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.task-item-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-grow: 1;
}

.task-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.task-text-container {
    display: flex;
    flex-direction: column;
}

.task-desc-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.task-deadline-picker {
    font-family: inherit;
    font-size: 11px;
    padding: 4px 8px;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.task-deadline-picker:hover, .task-deadline-picker:focus {
    border-style: solid;
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.task-delete-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.task-delete-btn:hover {
    background-color: var(--accent-danger-muted);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Calendar Task row and badges */
.calendar-task-row {
    background-color: rgba(0, 0, 0, 0.01);
}

.calendar-task-row:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.badge-task-phase {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-task-format {
    background-color: var(--accent-primary-muted);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-completed {
    background-color: var(--accent-emerald-muted);
    color: var(--accent-emerald);
}

.status-pending {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Sesion 0 Workshop Forms (Flat structured cards) */
.workshop-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.workshop-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.workshop-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.workshop-card-header h3 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sec-letter {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.sec-progress {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.workshop-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.question-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Buttons (Solid black / White minimal from mock) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1.5px solid transparent;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

/* Primary CTA: Solid Black */
.btn-indigo {
    background-color: var(--accent-primary);
    color: white;
}

.btn-indigo:hover {
    background-color: var(--accent-primary-hover);
}

/* Secondary CTA: Plain white with border */
.btn-outline {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-primary);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.btn-danger-outline {
    background-color: transparent;
    border-color: var(--accent-danger-hover);
    color: var(--accent-danger-hover);
}

.btn-danger-outline:hover {
    background-color: var(--accent-danger-muted);
}

/* Calendar layout */
.calendar-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.form-control-sm {
    padding: 6px 12px;
    font-size: 12px;
    height: 36px;
    border-radius: var(--radius-sm);
}

/* Mini stat cards (Clean flat boxes) */
.mini-stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.mini-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.mini-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th, 
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* Dropdowns / Select inside tables */
.badge-status {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

.status-idea { background-color: var(--bg-tertiary); color: var(--text-secondary); }
.status-scheduled { background-color: var(--accent-blue-muted); color: var(--accent-blue); }
.status-published { background-color: var(--accent-emerald-muted); color: var(--accent-emerald); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.3); /* Slate modal mask */
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-sm {
    max-width: 400px;
}

.modal-preview {
    max-width: min(980px, 96vw);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-footer {
    padding: 16px 24px 0 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.file-preview-meta {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

#file-preview-modal {
    z-index: 10020;
}

.file-preview-body {
    min-height: 420px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: var(--bg-primary);
}

.file-preview-loading,
.file-preview-empty {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.file-preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: auto;
    border-radius: var(--radius-sm);
}

.file-preview-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
}

.file-preview-text {
    width: 100%;
    min-height: 420px;
    max-height: 70vh;
    overflow: auto;
    white-space: pre-wrap;
    color: var(--text-primary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.55;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.file-preview-fallback {
    width: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
}

.file-preview-fallback i {
    width: 34px;
    height: 34px;
    color: var(--text-muted);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Resources / Entregables Styling */
.resource-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

.resource-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.resource-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.resource-phase-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    background-color: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.resource-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 40px;
}

.resource-action-panel {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Selector Group for Link vs File */
.toggle-group {
    display: flex;
    background-color: var(--bg-primary);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.toggle-btn.active {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Link Form styling */
.link-input-group {
    display: flex;
    gap: 8px;
}

.link-input-group .form-control {
    min-width: 0;
    flex: 1;
}

/* File Upload Dotted Box (mock style) */
.file-upload-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    gap: 6px;
}

.file-upload-placeholder:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.file-upload-placeholder i {
    width: 20px;
    height: 20px;
}

.file-upload-placeholder span {
    font-size: 12px;
    font-weight: 700;
}

/* File Info Box */
.file-info-box {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.file-details i {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.file-text-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: var(--text-muted);
}

/* Helper flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.height-full { height: 100%; }
.flex-1 { flex: 1; }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.align-self-start { align-self: flex-start; }

/* Whiteboard Layout & Interface */
.whiteboard-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 500px;
    display: flex;
    gap: 16px;
}

.whiteboard-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 8px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    z-index: 10;
    align-self: flex-start;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tool-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.tool-btn.active {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.tool-btn.text-danger:hover {
    background-color: var(--accent-danger-muted);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.toolbar-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
    width: 100%;
}

.whiteboard-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    user-select: none;
    -webkit-user-select: none;
}

.whiteboard-viewport:active {
    cursor: grabbing;
}

.whiteboard-canvas {
    touch-action: none;
    width: 5000px;
    height: 5000px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    background-color: #fafafa;
    background-image: radial-gradient(#e5e7eb 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* SVG Arrow Connections Layer */
.whiteboard-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.whiteboard-svg path {
    fill: none;
    stroke-linecap: round;
    transition: stroke-width 0.1s ease;
}

/* Whiteboard Elements */
.wb-element {
    position: absolute;
    z-index: 2;
    cursor: move;
    box-sizing: border-box;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.wb-element:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.wb-element.selected {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.wb-element.wb-connection-source {
    outline: 2px solid var(--accent-primary);
    outline-offset: 5px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05), var(--shadow-sm);
}

/* Sticky Note Style */
.wb-sticky {
    background-color: #fef08a; /* Yellow pastel default */
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    color: #451a03;
    overflow: visible;
    text-align: center;
    justify-content: center;
    align-items: center;
    word-break: break-word;
}

/* Rectangular Process Flow Style */
.wb-rect {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    justify-content: center;
    align-items: center;
    word-break: break-word;
}

.wb-rect:hover {
    border-color: var(--text-secondary);
}

/* Text Element Style */
.wb-text {
    background: transparent;
    border: 1px dashed transparent;
    padding: 8px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
    word-break: break-word;
}

.wb-text:hover {
    border-color: var(--border-color);
}

/* Image Element Style */
.wb-image {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: visible;
    position: relative;
}

.wb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: inherit;
}

.wb-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    background-color: var(--bg-tertiary);
    gap: 8px;
    border-radius: inherit;
    overflow: hidden;
}

.wb-image-placeholder i {
    width: 24px;
    height: 24px;
}

/* Editable in-place elements */
.wb-element-editor {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: inherit;
    padding: 0;
    margin: 0;
}

.wb-text-display {
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: pre-wrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Color Picker Bubble */
.wb-color-picker-bubble {
    position: fixed;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.color-swatch:hover {
    transform: scale(1.2);
}

/* Whiteboard Ports & Selection Actions */
.wb-port {
    width: 12px;
    height: 12px;
    background-color: var(--accent-primary);
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
    cursor: crosshair;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), var(--shadow-sm);
}

/* Position ports perfectly in the middle of each edge */
.wb-port-top {
    top: -6px;
    left: calc(50% - 6px);
}
.wb-port-right {
    right: -6px;
    top: calc(50% - 6px);
}
.wb-port-bottom {
    bottom: -6px;
    left: calc(50% - 6px);
}
.wb-port-left {
    left: -6px;
    top: calc(50% - 6px);
}

/* Hover effect for ports */
.wb-port:hover {
    transform: scale(1.22);
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.12), var(--shadow-sm);
}

/* Keep ports out of the way until the user is actually connecting. */
.whiteboard-viewport.wb-tool-connect .wb-element:hover .wb-port,
.wb-element.wb-connection-source .wb-port,
.wb-element.wb-connect-hover .wb-port {
    opacity: 1;
}

/* Floating action buttons: appear as a small toolbar above selected nodes. */
.wb-delete-btn-bubble,
.wb-connect-btn-bubble {
    position: absolute;
    top: -42px;
    width: 28px;
    height: 28px;
    background-color: var(--accent-primary);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 18;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.wb-connect-btn-bubble {
    left: calc(50% - 32px);
}

.wb-delete-btn-bubble {
    left: calc(50% + 4px);
}

.wb-element.selected .wb-delete-btn-bubble {
    display: flex;
}

.wb-delete-btn-bubble:hover {
    transform: scale(1.08);
    background-color: var(--accent-danger-hover);
}

.wb-element.selected .wb-connect-btn-bubble {
    display: flex;
}

.wb-connect-btn-bubble:hover {
    transform: scale(1.08);
    background-color: var(--accent-emerald);
}

/* Whiteboard Resize Handles */
.wb-resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    z-index: 15;
    display: none; /* Hidden by default */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Show handles when hovered or selected */
.wb-element:hover .wb-resize-handle,
.wb-element.selected .wb-resize-handle {
    display: block;
}

.wb-resize-handle:hover {
    background-color: var(--accent-primary);
    transform: scale(1.06);
}

/* Positioning and cursors */
.wb-resize-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.wb-resize-ne { top: -7px; right: -7px; cursor: nesw-resize; }
.wb-resize-se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.wb-resize-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }

/* Invisible side rails keep edge resizing easy without adding visual clutter. */
.wb-resize-n,
.wb-resize-e,
.wb-resize-s,
.wb-resize-w {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
}

.wb-resize-n  { top: -8px; left: 18px; right: 18px; width: auto; height: 14px; cursor: ns-resize; }
.wb-resize-e  { top: 18px; right: -8px; bottom: 18px; width: 14px; height: auto; cursor: ew-resize; }
.wb-resize-s  { bottom: -8px; left: 18px; right: 18px; width: auto; height: 14px; cursor: ns-resize; }
.wb-resize-w  { top: 18px; left: -8px; bottom: 18px; width: 14px; height: auto; cursor: ew-resize; }

/* Whiteboard Connect Hover Highlight */
.wb-element.wb-connect-hover {
    outline: 2.5px dashed var(--accent-emerald) !important;
    outline-offset: 4px;
}

/* Read-Only Mode Restrictions */
body.read-only-mode .btn-add-resource,
body.read-only-mode .btn-outline.btn-sm[onclick^="openAddTaskModal"],
body.read-only-mode #add-project-btn,
body.read-only-mode #project-settings-btn,
body.read-only-mode #delete-project-btn,
body.read-only-mode #import-data-btn,
body.read-only-mode #share-project-btn,
body.read-only-mode #add-post-btn,
body.read-only-mode #add-metric-btn,
body.read-only-mode #quick-idea-btn,
body.read-only-mode .whiteboard-toolbar,
body.read-only-mode .wb-port,
body.read-only-mode .wb-delete-btn-bubble,
body.read-only-mode .wb-connect-btn-bubble,
body.read-only-mode .color-swatch,
body.read-only-mode .wb-color-picker-bubble,
body.read-only-mode .wb-resize-handle,
body.read-only-mode button[onclick^="deletePost"],
body.read-only-mode button[onclick^="deleteMetric"],
body.read-only-mode button[onclick^="deleteResource"],
body.read-only-mode button[onclick^="deleteQuickIdea"],
body.read-only-mode .file-upload-placeholder,
body.read-only-mode #wb-sheet-controls button,
body.read-only-mode #wb-new-sheet-btn,
body.read-only-mode #wb-import-sheet-btn,
body.read-only-mode .wb-sheet-actions button:not([title*="Descargar"]),
body.read-only-mode #wb-exports-list button.text-danger {
    display: none !important;
}

body.read-only-mode textarea,
body.read-only-mode input[type="text"],
body.read-only-mode input[type="date"],
body.read-only-mode select:not(#wb-sheet-select),
body.read-only-mode input[type="checkbox"] {
    pointer-events: none !important;
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Whiteboard specific read-only rules */
body.read-only-mode .wb-element {
    cursor: default !important;
    pointer-events: none !important;
}

body.read-only-mode #whiteboard-viewport {
    cursor: grab !important;
}

body.read-only-mode .wb-element * {
    pointer-events: none !important;
}

/* Whiteboard Files Management list styling */
#wb-sheets-list::-webkit-scrollbar,
#wb-exports-list::-webkit-scrollbar {
    width: 6px;
}
#wb-sheets-list::-webkit-scrollbar-track,
#wb-exports-list::-webkit-scrollbar-track {
    background: transparent;
}
#wb-sheets-list::-webkit-scrollbar-thumb,
#wb-exports-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

#wb-sheets-list .wb-sheet-actions,
#wb-exports-list .wb-export-actions {
    display: flex;
    gap: 4px;
}

#wb-sheets-list .btn-xs,
#wb-exports-list .btn-xs {
    padding: 4px 6px;
    height: 24px;
    width: 24px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* ==========================================================================
   KANBAN BOARD / PROJECTS TAB STYLES
   ========================================================================== */

/* Kanban Wrapper & Layout */
.kanban-wrapper {
    display: flex;
    gap: 16px;
    padding: 24px;
    flex: 1;
    min-height: 0;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    transition: background var(--transition-normal);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}

/* Background Presets */
.kanban-wrapper.bg-glacier {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('https://images.unsplash.com/photo-1518098268026-4e43a1a009de?auto=format&fit=crop&w=1200&q=80');
}
.kanban-wrapper.bg-mountain {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=80');
}
.kanban-wrapper.bg-forest {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1200&q=80');
}
.kanban-wrapper.bg-dark {
    background-color: #121212;
    background-image: none;
}

/* Columns Scrollbar */
.kanban-wrapper::-webkit-scrollbar {
    height: 8px;
}
.kanban-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.kanban-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.kanban-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Column Container */
.kb-column {
    width: 290px;
    flex-shrink: 0;
    background-color: rgba(17, 18, 14, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    max-height: calc(100% - 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color var(--transition-fast);
}

.kb-column:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Column Header */
.kb-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: default;
}

.kb-column-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.kb-column-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kb-column-count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 20px;
}

/* Column Body (Cards List) */
.kb-column-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 12px 8px 12px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background-color var(--transition-fast);
}

.kb-column-body::-webkit-scrollbar {
    width: 4px;
}
.kb-column-body::-webkit-scrollbar-track {
    background: transparent;
}
.kb-column-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Drag Over Column State */
.kb-column-body.drag-over {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

/* Column Footer (Add Card Btn) */
.kb-column-footer {
    padding: 8px 12px 12px 12px;
}

.kb-add-card-btn {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.kb-add-card-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cards */
.kb-card {
    background-color: rgba(38, 38, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.kb-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kb-card:active {
    cursor: grabbing;
}

.kb-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* Card Banner Image Preview */
.kb-card-banner {
    width: calc(100% + 24px);
    margin: -12px -12px 8px -12px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
}

/* Card PDF Attachment Preview */
.kb-card-pdf-banner {
    width: calc(100% + 24px);
    margin: -12px -12px 8px -12px;
    height: 90px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.03));
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    gap: 6px;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}
.kb-card-pdf-banner i {
    width: 20px;
    height: 20px;
}
.kb-card-pdf-banner span {
    font-size: 11px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* Card Link Preview */
.kb-card-link-preview {
    width: calc(100% + 24px);
    margin: -12px -12px 8px -12px;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.kb-card-link-preview:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
.kb-card-link-preview-banner {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}
.kb-card-link-preview-fallback-banner {
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.02));
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-indigo);
    gap: 4px;
}
.kb-card-link-preview-fallback-banner i {
    width: 18px;
    height: 18px;
}
.kb-card-link-meta {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kb-card-link-site-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kb-card-link-favicon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: contain;
}
.kb-card-link-domain {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    opacity: 0.8;
}
.kb-card-link-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-card-link-desc {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

/* Card Priority Color Bar */
.kb-card-tag-bar {
    height: 4px;
    border-radius: 2px;
    width: 40px;
    margin-bottom: 8px;
}

/* Card Content details */
.kb-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    word-break: break-word;
}

/* Card Footer Indicators */
.kb-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.kb-card-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
}

.kb-card-indicator i {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Dropdown board selector styles */
.dropdown-menu {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 500;
    color: var(--text-primary);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 13px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
}

.dropdown-item.active {
    background-color: var(--accent-primary-muted);
    color: var(--accent-primary);
    font-weight: 700;
}

/* Read-Only Mode Kanban Restrictions */
body.read-only-mode #kb-add-column-btn,
body.read-only-mode .kb-add-card-btn,
body.read-only-mode .kb-column-actions,
body.read-only-mode #kb-delete-board-btn,
body.read-only-mode #kb-card-modal button#kb-card-delete-btn,
body.read-only-mode #kb-card-modal button#kb-card-upload-btn,
body.read-only-mode #kb-card-modal button#kb-card-remove-image-btn,
body.read-only-mode #kb-card-modal button[type="submit"] {
    display: none !important;
}

body.read-only-mode .kb-card {
    cursor: pointer !important;
}

body.read-only-mode .kb-card * {
    pointer-events: none !important;
}

/* Full Screen Overrides for Whiteboard and Projects Tabs */
#tab-pizarra, #tab-proyectos {
    max-width: none !important;
    padding: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#tab-proyectos {
    height: calc(100vh - 80px) !important;
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
}

#tab-proyectos.active {
    display: flex !important;
}

/* ========================================================================
   AI ASSISTANT — Chat Styles
   ======================================================================== */

/* Floating Action Button */
#ai-chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35), 0 0 0 0 rgba(15, 23, 42, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.45);
}

#ai-chat-fab.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

#ai-chat-fab .ai-fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #334155);
    animation: ai-fab-pulse 2.5s ease-out infinite;
    z-index: -1;
}

#ai-chat-fab.active .ai-fab-pulse {
    animation: none;
}

@keyframes ai-fab-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Chat Side Panel */
.ai-chat-panel {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    height: 100vh;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-panel.open {
    right: 0;
}

/* Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(51, 65, 85, 0.05) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ai-chat-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.ai-chat-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ai-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-model-select {
    font-size: 11px;
    padding: 5px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    max-width: 160px;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.ai-model-select:focus {
    border-color: var(--border-hover);
}

.ai-chat-header-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.ai-chat-header-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Messages Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* Message Bubbles */
.ai-msg {
    display: flex;
    gap: 8px;
    max-width: 95%;
    animation: ai-msg-appear 0.3s ease-out;
}

@keyframes ai-msg-appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-assistant {
    align-self: flex-start;
}

.ai-msg-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 2px;
    flex-shrink: 0;
}

.ai-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-primary);
    word-break: break-word;
}

.ai-msg-bubble p {
    margin: 0;
}

.ai-msg-bubble p + p {
    margin-top: 8px;
}

.ai-msg-bubble code {
    background-color: rgba(15, 23, 42, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.ai-msg-bubble pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 12px 14px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.5;
}

.ai-msg-bubble pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.ai-msg-bubble strong {
    font-weight: 650;
}

.ai-msg-assistant .ai-msg-bubble {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.ai-msg-user .ai-msg-bubble {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-msg-user .ai-msg-bubble code {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Typing Indicator */
.ai-typing-indicator {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0 16px 8px;
    flex-shrink: 0;
}

.ai-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.ai-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: ai-dot-bounce 1.4s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ai-dot-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Input Area */
.ai-chat-input-area {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    flex-shrink: 0;
}

.ai-chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ai-chat-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.ai-chat-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-primary);
    resize: none;
    max-height: 120px;
    padding: 6px 0;
}

.ai-chat-input::placeholder {
    color: var(--text-muted);
}

.ai-chat-send-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
    transition: all var(--transition-fast);
}

.ai-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
}

.ai-chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.ai-chat-disclaimer {
    display: block;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.7;
}

/* Cloud Sync Card & Status styles */
.cloud-sync-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
}

.cloud-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloud-status-info i {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
    display: inline-block;
}

.cloud-icon-disconnected {
    color: var(--text-muted);
}

.cloud-icon-connected {
    color: var(--accent-emerald);
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.2));
}

.cloud-icon-syncing {
    color: var(--accent-blue);
    animation: cloudSpin 1.5s linear infinite;
}

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

.cloud-status-text {
    display: flex;
    flex-direction: column;
}

.status-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-desc {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
}

.btn-xs {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-xs i {
    width: 12px;
    height: 12px;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    
    .app-container {
        position: relative;
        overflow: hidden;
    }

    /* Sidebar hides offscreen by default on mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 290px;
        z-index: 9995;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* Sidebar Backdrop Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 9990;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-normal);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Main Content adjustments */
    .main-content {
        width: 100vw;
        height: 100vh;
    }
    
    .main-header {
        height: 70px;
        padding: 0 16px;
    }
    
    .header-left h2 {
        font-size: 18px;
    }
    
    .header-left::before {
        font-size: 8px;
    }
    
    /* Grids & Paddings */
    .grid {
        gap: 16px !important;
    }
    
    .tab-content {
        padding: 16px !important;
    }
    
    .ai-chat-panel {
        width: 100vw;
        right: -100vw;
        z-index: 9998;
    }

    #ai-chat-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
