:root {
    --brand-primary: #ff5e00; /* Naranja Tecnológico / Eléctrico */
    --brand-primary-hover: #ea580c;
    --brand-light: #fff7ed;
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    
    --status-idea: #94a3b8;
    --status-progress: #3b82f6; /* Azul */
    --status-review: #f59e0b; /* Naranja/Amarillo */
    --status-approved: #10b981; /* Verde */
    --status-published: #8b5cf6; /* Morado para Publicado */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --sidebar-width: 260px;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100dvh; width: 100vw; margin: 0; padding: 0; overflow: hidden; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-app); color: var(--text-dark); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand-text, .detail-title { font-family: 'Outfit', sans-serif; }

/* VIEWS */
.view { display: none; height: 100dvh; width: 100vw; flex-direction: column; }
.view.active { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ================= LOGIN ================= */
#login-view { justify-content: center; align-items: center; background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.glass-panel { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-float); }
.login-header { text-align: center; margin-bottom: 32px; }
.logo { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--brand-primary); color: white; border-radius: 12px; margin-bottom: 16px; }
.login-header h1 { font-size: 24px; margin-bottom: 8px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.input-group input { width: 100%; padding: 12px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: 14px; }
.w-full { width: 100%; padding: 12px; }
.login-footer { margin-top: 24px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ================= SHARED COMPONENTS ================= */
.app-header { height: 70px; background: var(--bg-surface); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--border-soft); z-index: 10; }
.header-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; background: var(--brand-primary); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; font-family: 'Outfit'; }
.agency-logo { background: #0f172a; } /* Fixed color for agency panel */
.brand-text { font-size: 20px; font-weight: 700; }
.header-user { display: flex; align-items: center; gap: 16px; }

.btn { padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-primary { background: var(--brand-primary); color: white; border: none; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border-soft); color: var(--text-dark); }
.icon-btn { background: transparent; border: none; cursor: pointer; color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.icon-btn:hover { background: var(--border-soft); color: var(--text-dark); transform: scale(1.05); }

/* Theme Toggle Animation */
#btn-master-theme i, #btn-ws-theme i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
:root.dark #btn-master-theme i, :root.dark #btn-ws-theme i {
    transform: rotate(360deg);
}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-overlay.active { display: flex; animation: fade 0.2s; }
.modal-box { background: var(--bg-surface); width: 100%; max-width: 500px; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-float); max-height: 90vh; overflow-y: auto;}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; font-family: 'Inter'; font-size: 14px; background: var(--bg-surface); outline: none; transition: var(--transition); box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand-primary); }

.checkbox-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 120px; overflow-y: auto; padding-right: 4px; }
.checkbox-list label { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-bottom: 0 !important; cursor: pointer; font-size: 14px; }
.checkbox-list input[type="checkbox"] { width: auto; padding: 0; cursor: pointer; }

.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; }

/* ================= MASTER DASHBOARD ================= */
.master-content { padding: 40px 60px; overflow-y: auto; flex: 1; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-title { font-size: 32px; color: var(--text-dark); margin-bottom: 6px; }
.section-subtitle { color: var(--text-muted); font-size: 15px; }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.client-card { background: var(--bg-surface); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); cursor: pointer; transition: var(--transition); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--border-soft); }
.client-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: white; margin-bottom: 16px; font-family: 'Outfit'; overflow: hidden; }
.client-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-name { font-size: 20px; font-weight: 700; font-family: 'Outfit'; margin-bottom: 8px;}
.client-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;}
.c-badge { background: var(--bg-app); padding: 4px 8px; border-radius: 6px; font-weight: 600;}
.btn-edit-brand { background: transparent; border: none; color: var(--text-muted); cursor: pointer; border-radius: 50%; padding: 6px; display: flex; transition: var(--transition); }
.btn-edit-brand:hover { background: var(--bg-app); color: var(--text-dark); }
.btn-edit-brand i { width: 16px; height: 16px; }

/* Action buttons on card */
.card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.card-actions button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; border-radius: 50%; padding: 6px; display: flex; transition: var(--transition); }
.card-actions button:hover { background: var(--bg-app); color: var(--text-dark); }
.card-actions button i { width: 16px; height: 16px; }

/* Helper Utility */
.checkerboard-bg {
    background-color: #f8fafc;
    background-image: 
      linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
      linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Master Tabs & Panels */
.master-tabs-container { margin-bottom: 24px; display: flex; gap: 12px; border-bottom: 1px solid var(--border-soft); padding-bottom: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-tab { background: transparent; border: none; color: var(--text-muted); font-size: 15px; font-weight: 600; font-family: 'Inter'; padding: 8px 16px; cursor: pointer; border-radius: 8px; transition: var(--transition); white-space: nowrap; flex-shrink: 0; }
.m-tab.active { color: var(--brand-primary); background: var(--bg-surface); box-shadow: var(--shadow-soft); }

.m-panel { display: none; }
.m-panel.active { display: block; }

/* ================= WORKSPACE VIEW ================= */
.app-wrapper { /* display is handled by .view and .active classes */ }
.workspace { display: flex; flex: 1; overflow: hidden; }
.modern-sidebar { width: var(--sidebar-width); background: var(--bg-surface); padding: 30px 20px; border-right: 1px solid var(--border-soft); overflow-y: auto; }
.nav-group { margin-bottom: 30px; }
.nav-group-title { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; padding-left: 12px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: var(--transition); margin-bottom: 4px; }
.nav-link i { width: 18px; height: 18px; }
.nav-link:hover { background: var(--bg-app); color: var(--brand-primary); }
.nav-link.active { background: var(--brand-light); color: var(--brand-primary); font-weight: 600; }

.content-area { flex: 1; padding: 30px 40px; overflow-y: auto; }
.app-section { display: none; animation: fade 0.4s ease; }
.app-section.active { display: block; }

.view-tabs { display: flex; background: var(--border-soft); padding: 4px; border-radius: 12px; }
.view-tab { padding: 8px 16px; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.view-tab.active { background: var(--bg-surface); color: var(--text-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.sub-view { display: none; }
.sub-view.active { display: block; animation: fade 0.3s; }

/* Role Simulator Toggle (Workspace) */
.role-simulator { display: flex; align-items: center; gap: 12px; background: var(--bg-app); padding: 6px 16px; border-radius: 30px; border: 1px solid var(--border-soft); }
.role-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.toggle-switch input { display: none; }
.toggle-label { position: relative; display: flex; align-items: center; justify-content: space-between; width: 140px; height: 32px; background: #e2e8f0; border-radius: 20px; cursor: pointer; padding: 0 10px; }
.toggle-text-agency, .toggle-text-client { font-size: 12px; font-weight: 600; z-index: 2; transition: var(--transition); }
.toggle-text-agency { color: white; }
.toggle-text-client { color: var(--text-muted); }
.toggle-slider { position: absolute; top: 2px; left: 2px; width: 68px; height: 28px; background: var(--brand-primary); border-radius: 18px; transition: var(--transition); z-index: 1; }
#role-toggle:checked + .toggle-label .toggle-slider { left: calc(100% - 70px); background: var(--text-dark); }
#role-toggle:checked + .toggle-label .toggle-text-agency { color: var(--text-muted); }
#role-toggle:checked + .toggle-label .toggle-text-client { color: white; }

/* Dynamic Hiding based on body classes */
body.client-mode .btn-agency-only { display: none !important; }

/* Hide specific modules if disabled for the workspace */
body.hide-projects #nav-projects { display: none !important; }
body.hide-blogs #nav-blogs { display: none !important; }
body.hide-media #nav-media { display: none !important; }
body.hide-reports #nav-reports { display: none !important; }

/* Board */
.board-wrapper { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; }
.board-col { min-width: 280px; flex: 1; }
.col-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border-soft); }
.col-dot { width: 10px; height: 10px; border-radius: 50%; }
.col-dot.idea { background: var(--status-idea); }
.col-dot.progress { background: var(--status-progress); }
.col-dot.review { background: var(--status-review); }
.col-dot.approved { background: var(--status-approved); }
.col-dot.published { background: var(--status-published); }
.col-dot.process { background: var(--status-progress); }
.col-dot.finished { background: #64748b; } /* Slate/Gray for finished */
.col-count { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.col-body { display: flex; flex-direction: column; gap: 16px; min-height: 100px; }

.nodum-card { background: var(--bg-surface); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-soft); cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.nodum-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--brand-light); }
.card-title { font-family: 'Outfit'; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-plat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 500;}
.card-plat i { width: 14px; height: 14px; color: var(--brand-primary); }
.card-date { font-size: 12px; font-weight: 600; background: var(--bg-app); padding: 4px 8px; border-radius: 6px;}

/* Calendar */
.calendar-grid { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 20px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cal-header { font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
.cal-days { display: contents; }
.cal-day { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-soft); border-radius: 8px; padding: 6px; min-height: 90px; max-height: 120px; overflow-y: auto; background: var(--bg-surface); }
.cal-day-num { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.cal-event { font-size: 10px; font-weight: 600; padding: 4px 6px; border-radius: 4px; color: white; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event.idea { background: var(--text-muted); }
.cal-event.progress { background: #3b82f6; }
.cal-event.review { background: #f59e0b; }
.cal-event.approved { background: #10b981; }

/* Blogs */
.blogs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; transition: var(--transition); padding: 20px;}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; font-family: 'Outfit';}

/* Media & Reports simple structure */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.media-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-md); }
.media-upload-ph { width: 100%; height: 180px; border: 2px dashed var(--border-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); }

.reports-dashboard { display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }
.metrics-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.metric-card { background: var(--bg-surface); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-align: center; border: 1px solid var(--border-soft); }
.metric-card h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.metric-card .metric-val { font-size: 36px; font-weight: 700; font-family: 'Outfit'; color: var(--text-dark); margin-bottom: 8px; }
.metric-card .metric-sub { font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.charts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.chart-box { background: var(--bg-surface); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); border: 1px solid var(--border-soft); }
.chart-box h3 { font-size: 16px; font-family: 'Outfit'; margin-bottom: 16px; color: var(--text-dark); }

/* Detail Modal Specifics */
.detail-box { max-width: 700px; }
.detail-meta { display: flex; gap: 12px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.badge.idea { background: var(--bg-app); color: var(--text-muted); }
.badge.progress { background: #eff6ff; color: var(--status-progress); }
.badge.review { background: #fffbeb; color: var(--status-review); }
.badge.approved { background: #ecfdf5; color: var(--status-approved); }
.badge.published { background: #f5f3ff; color: var(--status-published); }
.badge.plat { background: var(--brand-light); color: var(--brand-primary); display: flex; align-items: center; gap: 4px; }
.detail-title { font-size: 24px; margin-bottom: 6px; line-height: 1.2; word-break: break-word; }
.detail-date { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.content-box {
    background: var(--bg-body);
    border: 1px solid var(--border-soft);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 24px;
    white-space: pre-wrap;
}
#d-desc { color: var(--text-muted); line-height: 1.7; font-size: 15px; white-space: pre-wrap; }

/* Comments Section */
.comments-section { border-top: 1px solid var(--border-soft); padding-top: 10px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; max-height: 300px; overflow-y: auto; padding-right: 10px; }
.comment { display: flex; flex-direction: column; gap: 4px; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.comment-author { font-weight: 600; color: var(--text-dark); }
.comment-date { color: var(--text-muted); }
.comment-bubble { background: var(--bg-app); padding: 12px 16px; border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md); font-size: 14px; color: var(--text-dark); display: inline-block; max-width: 90%; }
.comment.is-agency .comment-bubble { background: var(--brand-light); color: var(--brand-primary); border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md); align-self: flex-end; }
.comment.is-agency .comment-meta { justify-content: flex-end; }
.comment-form { display: flex; gap: 12px; align-items: center; }
.comment-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--border-soft); border-radius: 30px; font-size: 14px; font-family: 'Inter'; outline: none; }
.comment-form input:focus { border-color: var(--brand-primary); }
.comment-form .btn-sm { padding: 10px; border-radius: 50%; width: 44px; height: 44px; }

/* Drive Button specific style */
.btn-drive { background: #eef2ff; color: #4338ca; font-weight: 700; width: fit-content; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c7d2fe; transition: all 0.2s; text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px;}
.btn-drive:hover { background: #e0e7ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(67, 56, 202, 0.15); }
.btn-drive i { width: 16px; height: 16px; }


/* ================= DARK MODE & PREMIUM EFFECTS ================= */
:root.dark {
    --bg-app: #0f172a;
    --bg-surface: #1e293b;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-soft: #334155;
}

/* Hover Animations */
.client-card, .nodum-card, .blog-card, .metric-card, .chart-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-card:hover, .nodum-card:hover, .blog-card:hover, .metric-card:hover, .chart-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Drag & Drop Styles */
.nodum-card { cursor: grab; }
.nodum-card:active { cursor: grabbing; }
.board-col.drag-over, .col-body.drag-over { background: rgba(0,0,0,0.05); border-radius: 8px; }
:root.dark .board-col.drag-over, :root.dark .col-body.drag-over { background: rgba(255,255,255,0.05); }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    /* Prevent iOS WebKit Zoom Bug on inputs */
    input, textarea, select { font-size: 16px !important; }

    .app-wrapper { height: auto; min-height: 100dvh; }
    .workspace { flex-direction: column; overflow-y: auto; }
    
    /* Horizontal scrollable sidebar instead of vertical stack */
    .modern-sidebar { width: 100%; height: auto; padding: 10px; border-right: none; border-bottom: 1px solid var(--border-soft); }
    .nav-menu { flex-direction: row !important; overflow-x: auto; gap: 8px; white-space: nowrap; padding-bottom: 4px; align-items: center; }
    .nav-menu > div { display: flex; flex-direction: row; gap: 8px; align-items: center; }
    .nav-group { margin-bottom: 0 !important; display: flex; gap: 8px; align-items: center; }
    .nav-group-title { display: none; }
    .nav-link { padding: 8px 12px; margin-bottom: 0; border-radius: 20px; font-size: 13px; background: var(--bg-surface); border: 1px solid var(--border-soft); }
    .nav-link.active { background: var(--brand-light); border-color: var(--brand-primary); }
    .nav-link i { width: 16px; height: 16px; }
    
    .content-area, .master-content { padding: 16px 12px; overflow-y: auto; flex: 1; }
    
    /* Header kept in one line, scrollable if necessary */
    .app-header { padding: 10px 12px; padding-top: calc(15px + env(safe-area-inset-top)); height: auto; min-height: 60px; flex-wrap: nowrap; overflow-x: auto; gap: 12px; justify-content: space-between; }
    .header-user { flex-wrap: nowrap; width: auto; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
    .header-brand { flex-shrink: 0; }
    .header-brand img { height: 24px !important; }
    .brand-logo { width: 28px; height: 28px; font-size: 16px; }
    .brand-text { font-size: 16px; }
    .btn-ghost { padding: 6px 10px; font-size: 12px; }
    .icon-btn { width: 32px; height: 32px; }
    
    /* Section headers */
    .section-header { flex-direction: column; align-items: flex-start !important; gap: 12px; margin-bottom: 16px; }
    .section-title, .detail-title { font-size: 20px !important; }
    .section-actions { flex-wrap: wrap; width: 100%; gap: 8px !important; }
    .section-actions .btn { flex: 1; justify-content: center; height: 40px !important; font-size: 13px; padding: 0 12px; }
    
    #monthly-view { overflow-x: auto; padding-bottom: 16px; margin-right: -12px; padding-right: 12px; }
    .calendar-grid { min-width: 600px; padding: 12px; }
    .cal-day { min-height: 70px; max-height: 90px; }
    
    .board-wrapper { margin-right: -12px; padding-right: 12px; gap: 16px; }
    .board-col { min-width: 240px; }
    
    .metrics-cards, .charts-container, .client-grid, .blogs-grid { grid-template-columns: 1fr; }
    
    .login-container { padding: 16px; overflow-y: auto; align-items: flex-start; padding-top: 40px; }
    .glass-panel { padding: 24px; }
    
    .modal-box { width: 95%; max-height: 90vh; }
    .modal-body { padding: 16px; }
    .form-row { flex-direction: column; gap: 12px; }
}

