:root {
    /* Branding Colors */
    --primary: #203f77; /* Loony Heads Navy Blue */
    --primary-light: #3a60a8; /* Lighter Navy Blue */
    --primary-dark: #162d55; /* Darker Navy Blue */
    --white: #ffffff;
    
    /* UI Colors */
    --bg-light: #f8fafc; /* Clean off-white background */
    --bg-card: #ffffff; /* Crisp white cards */
    --text-main: #0f172a; /* Dark slate text */
    --text-muted: #64748b; /* Medium slate gray text */
    --border-color: #cbd5e1; /* Light gray border */
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Content Format Badges */
    --badge-reel: #ec4899;
    --badge-carousel: #8b5cf6;
    --badge-poster: #3b82f6;
    --badge-story: #f97316;
    
    /* Visuals */
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --bg-light: #0b0f19;
    --bg-card: #131b2e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #27354f;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
}

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

/* Custom Thin Elegant Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    height: 100vh;
    overflow: hidden;
}

/* Auth Page Containers */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #203f77;
    color: var(--text-main);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 3rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: center;
}

.auth-logo-wrapper {
    background: var(--white);
    width: 90px;
    height: 90px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.auth-card h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auth-toggle {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-toggle span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

/* Split Layout Dashboard */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Panel (Branding / Menu) */
.left-panel {
    flex: 0 0 25%;
    max-width: 380px;
    background-color: #1e3a6a;
    background-image: linear-gradient(180deg, #14284b 0%, #1e3a6a 100%);
    color: #ffffff;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.brand-content {
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
    padding-right: 2.2rem;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.big-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-content h1 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #ffffff !important;
}

.brand-content h1 span {
    font-weight: 400;
    color: #60a5fa;
    opacity: 1;
}

.brand-content p {
    font-size: 0.85rem;
    color: #cbd5e1 !important;
    line-height: 1.45;
    opacity: 1;
}

.user-info-section {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #f1f5f9;
}

.user-info-section .user-name-text {
    color: #ffffff !important;
    font-weight: 600;
}

.user-info-section i {
    cursor: pointer;
    transition: var(--transition);
}

/* Navigation List */
.nav-list {
    list-style: none;
    margin-top: 0.8rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 5px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.25) !important;
    color: #ffffff !important;
    border-left: 4px solid #60a5fa;
    font-weight: 600;
}

/* Right Panel (Main Content) */
.right-panel {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-light);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Client Dashboard List */
.client-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.client-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15), 0 0 15px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-light);
}

.client-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.client-card-socials {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.client-card-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.client-card-socials a:hover {
    color: var(--primary);
}

.delete-client-btn, .edit-client-btn {
    position: absolute;
    top: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.delete-client-btn {
    right: 14px;
}

.edit-client-btn {
    right: 48px;
}

.delete-client-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

.edit-client-btn:hover {
    color: var(--primary-light);
    background: rgba(32, 63, 119, 0.08);
}

.add-client-card {
    border: 2px dashed var(--border-color);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.add-client-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(32, 63, 119, 0.02);
}

.add-client-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-md);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(32, 63, 119, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #dc2626;
}

/* Workspace Selector Headers */
.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.workspace-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-dashboard-btn {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.back-to-dashboard-btn:hover {
    color: var(--primary);
}

.month-selector-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Workspace Tabs */
.workspace-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.tab-btn {
    padding: 10px 5px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 100%; height: 2px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
    flex: 1;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Excel Spreadsheet Grid styling */
.spreadsheet-container {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    position: relative;
    max-height: calc(100vh - 250px);
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.spreadsheet-table th {
    background-color: #eff6ff;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 10px 12px;
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.spreadsheet-table td {
    padding: 8px 12px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    cursor: cell;
    background: var(--bg-card);
    color: var(--text-main);
    transition: background-color 0.1s;
}

.spreadsheet-table tr:hover td {
    background-color: #f1f5f9;
}

.spreadsheet-table tr.weekly-summary-row td {
    background-color: rgba(37, 99, 235, 0.08);
    font-weight: bold;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.spreadsheet-table tr.monthly-total-row td {
    background-color: rgba(37, 99, 235, 0.15);
    font-weight: bold;
    border-top: 3px double var(--primary-light);
    border-bottom: 3px double var(--primary-light);
    color: var(--primary-dark);
}

/* Sticky first column for actions */
.spreadsheet-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 5;
    border-right: 2px solid var(--border-color);
}
.spreadsheet-table th:first-child {
    position: sticky;
    left: 0;
    background: #eff6ff;
    z-index: 11;
    border-right: 2px solid var(--border-color);
}
.spreadsheet-table tr:hover td:first-child {
    background-color: #e2e8f0;
}

/* Delete Row Button */
.btn-delete-row {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.btn-delete-row:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}

/* Cell editors */
.spreadsheet-table td.editable:focus {
    outline: 2px solid var(--primary);
    background: var(--white);
}

.cell-editor {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0;
}

.cell-editor:focus {
    outline: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-reel { background: rgba(236, 72, 153, 0.1); color: var(--badge-reel); }
.badge-carousel { background: rgba(139, 92, 246, 0.1); color: var(--badge-carousel); }
.badge-poster { background: rgba(59, 130, 246, 0.1); color: var(--badge-poster); }
.badge-story { background: rgba(249, 115, 22, 0.1); color: var(--badge-story); }

.badge-status {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}
.status-not-started { background: #f1f5f9; color: var(--text-muted); }
.status-assigned { background: #fef3c7; color: var(--warning); }
.status-created { background: #e0f2fe; color: var(--info); }
.status-ready { background: #dcfce7; color: var(--success); }
.status-posted { background: #e0e7ff; color: var(--primary-light); }
.status-review { background: #ffedd5; color: #ea580c; }

/* Details Drawer / Sidebar */
.details-drawer {
    position: fixed;
    top: 0; right: 0; width: 450px; height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 80;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.details-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.drawer-header h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.drawer-close {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-section {
    margin-bottom: 1.5rem;
}

.drawer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.drawer-section p, .drawer-section pre {
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    font-family: inherit;
    color: var(--text-main);
}

.thumbnail-preview {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* Strategic Blueprint Details */
.blueprint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.blueprint-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.blueprint-item {
    margin-bottom: 1rem;
}

.blueprint-item h4 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.blueprint-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Weekly Performance Report Layout */
.weekly-report-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.report-canvas {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.report-header {
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.report-header img {
    height: 60px;
    margin-bottom: 1rem;
}

.report-header h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
}

.report-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.report-metric-card h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.report-metric-card p {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

.report-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-post-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.report-post-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.report-post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.report-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.report-post-caption {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.report-post-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Loading overlays & notices */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(9, 13, 22, 0.85); backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.4s ease;
}

.loading-overlay.hidden {
    opacity: 0; pointer-events: none;
}

.loader-content {
    text-align: center; color: #ffffff;
}

.spinner {
    width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff; border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Helpers */
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; }
    .left-panel { flex: none; width: 100%; max-width: none; height: auto; }
    .right-panel { padding: 1.5rem; }
    .spreadsheet-container { max-height: 500px; }
}

/* Campaign Proposal Wizard Cards Styling */
.campaign-proposal-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.campaign-proposal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(32, 63, 119, 0.08) !important;
    border-color: var(--primary-light) !important;
}
.campaign-proposal-card input:focus, 
.campaign-proposal-card textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(32, 63, 119, 0.1) !important;
    outline: none;
}
.campaign-proposal-card label {
    letter-spacing: 0.3px;
}

/* Tone Pill styling */
.tone-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #f1f5f9; /* Sleek light grey background */
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: var(--shadow-sm);
}
.tone-pill input[type="checkbox"] {
    display: none; /* Hide default browser checkbox */
}
.tone-pill:hover {
    border-color: var(--primary-light);
    background: #e2e8f0;
}
.tone-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Approved Content Plan Card */
.approved-plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.approved-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ea580c;
    opacity: 0.8;
}

.approved-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(234, 88, 12, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(234, 88, 12, 0.3) !important;
}

.approved-plan-card h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 5px 0 2px 0;
    transition: var(--transition);
}

.approved-plan-card:hover h4 {
    color: #ea580c;
}

.approved-plan-card .meta-summary {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.approved-plan-card .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.approved-plan-card .meta-item i {
    font-size: 0.85rem;
}

/* Marketing Planner Tab Styles */
.mp-session-tile {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-session-tile:hover {
    border-color: var(--primary-light);
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.mp-session-tile.active {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(32, 63, 119, 0.15);
}
.mp-session-tile .delete-session-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.mp-session-tile .delete-session-btn:hover {
    color: var(--error);
}

.mp-idea-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}
.mp-idea-card:hover {
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}
.mp-idea-card .badge-type {
    align-self: flex-start;
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mp-idea-card .card-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mp-idea-card .card-actions button {
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mp-idea-card .btn-push-calendar {
    background: var(--primary-light);
    color: white;
    border: none;
}
.mp-idea-card .btn-push-calendar:hover {
    background: var(--primary);
}
.mp-idea-card .btn-push-ads {
    background: #10b981;
    color: white;
    border: none;
}
.mp-idea-card .btn-push-ads:hover {
    background: #059669;
}
.mp-idea-card .btn-archive-draft {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.mp-idea-card .btn-archive-draft:hover {
    background: #f1f5f9;
    border-color: var(--text-muted);
}

/* ===================================================
   UI/UX v2.0 ENHANCEMENTS & ROADMAP STYLES
   =================================================== */

/* --- Dark Theme Overrides --- */
[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-main);
}
[data-theme="dark"] .spreadsheet-container,
[data-theme="dark"] .spreadsheet-table,
[data-theme="dark"] .spreadsheet-table td,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .client-card,
[data-theme="dark"] .approved-plan-card,
[data-theme="dark"] .campaign-proposal-card,
[data-theme="dark"] .report-metric-card,
[data-theme="dark"] .mp-idea-card,
[data-theme="dark"] .review-box,
[data-theme="dark"] #managerFeedbackWidget {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}
[data-theme="dark"] .spreadsheet-table th {
    background-color: #1a243b !important;
    color: #93c5fd !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .spreadsheet-table td:first-child {
    background: var(--bg-card) !important;
}
[data-theme="dark"] .spreadsheet-table th:first-child {
    background: #1a243b !important;
}
[data-theme="dark"] .spreadsheet-table tr:hover td {
    background-color: #1e2d4a !important;
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #0f172a !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}
[data-theme="dark"] .btn-secondary {
    background-color: #1e293b !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}
[data-theme="dark"] .left-panel {
    background-color: #070d18 !important;
    background-image: linear-gradient(180deg, #050912 0%, #0d172a 100%) !important;
    border-right: 1px solid #1e293b !important;
    color: #ffffff !important;
}
[data-theme="dark"] .left-panel .brand-content h1 {
    color: #ffffff !important;
}
[data-theme="dark"] .left-panel .brand-content h1 span {
    color: #60a5fa !important;
}
[data-theme="dark"] .left-panel .brand-content p {
    color: #94a3b8 !important;
}
[data-theme="dark"] .left-panel h3 {
    color: #94a3b8 !important;
}
[data-theme="dark"] .left-panel .nav-item {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .left-panel .nav-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .left-panel .nav-item.active {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #ffffff !important;
    border-left: 4px solid #3b82f6 !important;
}
[data-theme="dark"] .left-panel .user-info-section {
    border-top: 1px solid #1e293b !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .left-panel .user-name-text {
    color: #ffffff !important;
}
[data-theme="dark"] .client-card {
    background: #111a2e !important;
    border-color: #243452 !important;
}
[data-theme="dark"] .client-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25) !important;
}
[data-theme="dark"] .client-card h3 {
    color: #60a5fa !important;
}
[data-theme="dark"] .client-card-socials {
    border-top: 1px solid #243452 !important;
}
[data-theme="dark"] .client-card-socials a {
    color: #94a3b8 !important;
}
[data-theme="dark"] .client-card-socials a:hover {
    color: #60a5fa !important;
}

/* --- R1: Stepped AI Progress Stepper --- */
.ai-stepper-modal {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.ai-stepper-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.2rem;
    max-width: 540px;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ai-stepper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #10b981);
    background-size: 200% 100%;
    animation: gradientMove 2.5s linear infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
.ai-stepper-glow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #60a5fa;
    margin-bottom: 1rem;
    animation: pulseIcon 2s ease-in-out infinite;
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 12px #60a5fa); }
}
.ai-stepper-stages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1.8rem 0;
    text-align: left;
}
.ai-stepper-stage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    opacity: 0.45;
}
.ai-stepper-stage-item.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.ai-stepper-stage-item.completed {
    opacity: 0.9;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}
.ai-stage-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    flex-shrink: 0;
}
.ai-stepper-stage-item.active .ai-stage-badge {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 10px #3b82f6;
}
.ai-stepper-stage-item.completed .ai-stage-badge {
    background: #10b981;
    color: white;
}
.ai-stage-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #f1f5f9;
    flex: 1;
}
.ai-stage-spinner {
    font-size: 0.85rem;
    color: #60a5fa;
    animation: fa-spin 1s linear infinite;
    display: none;
}
.ai-stepper-stage-item.active .ai-stage-spinner {
    display: inline-block;
}
.ai-stepper-timer {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* --- R2: Quality Score Badges --- */
.quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}
.quality-pill-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.quality-pill-good {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.quality-pill-review {
    background: rgba(234, 88, 12, 0.15);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}
.quality-pill-poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- R3: Calendar Smart View Toggle --- */
.calendar-view-mode-bar {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    box-shadow: var(--shadow-sm);
}
.view-mode-pill {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.view-mode-pill:hover {
    color: var(--text-main);
    background: var(--bg-light);
}
.view-mode-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Smart Column Visibility Rules */
.calendar-view-content th:nth-child(4), .calendar-view-content td:nth-child(4),
.calendar-view-content th:nth-child(6), .calendar-view-content td:nth-child(6) {
    display: none !important;
}

.calendar-view-designer th:nth-child(3), .calendar-view-designer td:nth-child(3),
.calendar-view-designer th:nth-child(5), .calendar-view-designer td:nth-child(5),
.calendar-view-designer th:nth-child(6), .calendar-view-designer td:nth-child(6) {
    display: none !important;
}

.calendar-view-metrics th:nth-child(3), .calendar-view-metrics td:nth-child(3),
.calendar-view-metrics th:nth-child(4), .calendar-view-metrics td:nth-child(4),
.calendar-view-metrics th:nth-child(5), .calendar-view-metrics td:nth-child(5),
.calendar-view-metrics th:nth-child(6), .calendar-view-metrics td:nth-child(6) {
    display: none !important;
}

/* --- R4: Illustrated Empty States --- */
.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(32, 63, 119, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 4px;
}
[data-theme="dark"] .empty-state-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.empty-state-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.empty-state-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.5;
    margin: 0;
}
.empty-state-action {
    margin-top: 8px;
}

/* --- R5: Stacking Top-Right Toast Notification System --- */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100vw - 48px);
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-item.hide {
    transform: translateX(120%);
    opacity: 0;
}
.toast-item.toast-success { border-left: 4px solid #10b981; }
.toast-item.toast-error { border-left: 4px solid #ef4444; }
.toast-item.toast-warning { border-left: 4px solid #f59e0b; }
.toast-item.toast-info { border-left: 4px solid #3b82f6; }

.toast-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: #3b82f6; }

.toast-content {
    flex: 1;
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-word;
}
.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s;
}
.toast-close-btn:hover {
    color: #ffffff;
}
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform-origin: left;
}

/* --- R8: Collapsible Sidebar Rail --- */
.left-panel {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), flex 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.left-panel.collapsed {
    flex: 0 0 68px !important;
    max-width: 68px !important;
    padding: 1.2rem 0.6rem !important;
    align-items: center;
}
.left-panel.collapsed .brand-content h1,
.left-panel.collapsed .brand-content p,
.left-panel.collapsed .nav-list span,
.left-panel.collapsed #dashboardNav h3,
.left-panel.collapsed #workspaceNav h3,
.left-panel.collapsed .agency-toolkit-title,
.left-panel.collapsed .user-name-text,
.left-panel.collapsed .back-to-dashboard-btn span {
    display: none !important;
}
.left-panel.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
}
.left-panel.collapsed .nav-item i {
    margin: 0;
    font-size: 1.15rem;
}
.left-panel.collapsed .logo-wrapper {
    width: 42px;
    height: 42px;
    margin-bottom: 0.5rem;
}
.left-panel.collapsed .user-info-section {
    flex-direction: column;
    gap: 10px;
    padding-top: 1rem;
}

.sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    z-index: 20;
}
.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}
.left-panel.collapsed .sidebar-collapse-btn {
    position: static;
    margin: 0 auto 1.5rem auto;
}

/* --- Theme Toggle Switch in Footer --- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}

/* --- R9: Pinterest-Style Competitor Gallery Overlay --- */
.competitor-gallery-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.competitor-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
}
.competitor-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0f172a;
    overflow: hidden;
}
.competitor-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.competitor-gallery-card:hover .competitor-card-img-wrap img {
    transform: scale(1.04);
}
.competitor-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    color: #ffffff;
}
.competitor-gallery-card:hover .competitor-hover-overlay {
    opacity: 1;
}
.competitor-overlay-caption {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #e2e8f0;
}
.competitor-overlay-actions {
    display: flex;
    gap: 6px;
}

/* --- R12: Guided Onboarding Banner --- */
.onboarding-banner {
    background: linear-gradient(135deg, rgba(32, 63, 119, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1.5px solid rgba(32, 63, 119, 0.2);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}
[data-theme="dark"] .onboarding-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(96, 165, 250, 0.3);
}
.onboarding-steps {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}
.onboarding-step-box {
    flex: 1;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.onboarding-step-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.onboarding-step-box.completed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* --- R10: Responsive Tablet & Mobile Media Queries --- */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    .left-panel {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 1.5rem !important;
    }
    .right-panel {
        padding: 1.5rem 1rem !important;
        overflow-y: visible !important;
    }
    .sidebar-collapse-btn {
        display: none !important;
    }
    .spreadsheet-container {
        max-height: 500px;
    }
}
@media (max-width: 768px) {
    .calendar-view-mode-bar {
        width: 100%;
        overflow-x: auto;
    }
    .client-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .onboarding-steps {
        flex-direction: column;
    }
}


