/* ====================================
   MONDAY.COM CLONE - EXTERNAL STYLESHEET
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ----- CSS VARIABLES (EXACT MONDAY.COM COLOR SYSTEM) ----- */
:root {
    --bg-primary: #0c0f15;
    --bg-secondary: #14181f;
    --bg-card: #1c2128;
    --border-light: #2b313a;
    --text-white: #ffffff;
    --text-muted: #9aa8c7;
    --text-dim: #7a89aa;
    --primary-blue: #6c8aff;
    --primary-hover: #5b7ce0;
    --accent-green: #00c875;
    --accent-orange: #fdab3d;
    --accent-red: #f96057;
    --accent-purple: #a358d0;
    --accent-sky: #6cc3ff;
    --status-done: #00c875;
    --status-stuck: #f96057;
    --status-working: #fdab3d;
}

:root[data-theme="light"] {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --border-light: #d8e0ec;
    --text-white: #ffffff;
    --text-muted: #607089;
    --text-dim: #7b8aa0;
    --primary-blue: #4b7cff;
    --primary-hover: #3e6de8;
}

html,
body {
    background: var(--bg-primary);
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========== LOGIN PAGE ========== */
.login-page-container {
    min-height: 100vh;
    background: var(--bg-primary);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(145deg, #0f1420 0%, #0b0e14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    max-width: 440px;
    width: 100%;
    background: #1a202c;
    border-radius: 48px;
    padding: 48px 40px;
    border: 1px solid #333c4d;
}

.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-box h1 i {
    color: var(--primary-blue);
}

.workspace-name {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.input-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-top: 16px;
}

.monday-input {
    width: 100%;
    padding: 16px 20px;
    background: #262e3d;
    border: 2px solid #3d4a62;
    border-radius: 20px;
    margin: 8px 0 20px; /* Keep standard margin */
    color: white;
    font-size: 1rem;
}

.monday-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

/* Override input margin when inside wrapper */
.password-input-wrapper .monday-input {
    margin-bottom: 20px; /* Still keep bottom margin for standard flow */
}

.password-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 24px; /* Manual offset for center alignment with input */
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 10;
}

.password-input-wrapper i:hover {
    color: white;
}

.forgot-link {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.login-btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 28px;
    transition: background 0.2s;
}

.login-btn-primary:hover {
    background: var(--primary-hover);
}

.error-msg {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.error-msg.show {
    display: block;
}

.social-buttons {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.social-btn {
    flex: 1;
    background: #262e3d;
    border: 1px solid var(--border-light);
    border-radius: 60px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #2d3748;
}

.invite-note {
    background: #262e3d;
    padding: 20px;
    border-radius: 24px;
    margin: 28px 0;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.login-right {
    flex: 1;
    background: #0f1420;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid var(--border-light);
}

.preview-card {
    background: #1a202c;
    padding: 60px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

/* ========== DASHBOARD ========== */
.dashboard-page-container {
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    background: #1a202c;
    border-bottom: 1px solid var(--border-light);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo-group {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.app-logo-img {
    width: 80px;
    height: 34px;
    object-fit: contain;
    filter: invert(1);
}

.nav-plans-btn {
    background: rgba(0, 115, 255, 0.1);
    border: 1px solid #1f76ed;
    color: #1f76ed;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-plans-btn:hover {
    background: rgba(0, 115, 255, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-icon-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    transition: background 0.2s;
}

.nav-icon-item:hover {
    background: #2b3446;
    color: white;
}

.inbox-item .icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff3d57;
    color: white;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    border: 1px solid #1a202c;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: #3d4450;
    margin: 0 8px;
}

.monday-logo-small {
    padding: 4px;
}

.m-box {
    background: linear-gradient(135deg, #ff3d57, #ffcb00);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.avatar {
    width: 28px;
    height: 28px;
    background: #67ac5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 8px;
    color: white;
}

.avatar:hover {
    background: #5b6e8a;
}

.dashboard-container {
    display: flex;
    height: calc(100vh - 64px);
}

/* ----- LEFT SIDEBAR ----- */
.dashboard-sidebar {
    width: 260px;
    background: #1a202c;
    border-right: 1px solid var(--border-light);
    padding: 24px 16px;
    /* display: flex;
    flex-direction: column; */
    gap: 24px;
    /* overflow-y: auto; removed to allow dropdowns to pop out */
    position: relative;
    z-index: 100;
}

:root[data-theme="light"] .dashboard-nav,
:root[data-theme="light"] .dashboard-sidebar,
:root[data-theme="light"] .dashboard-main,
:root[data-theme="light"] .dashboard-page-container,
:root[data-theme="light"] .greeting-section,
:root[data-theme="light"] .project-group,
:root[data-theme="light"] .group-header-project,
:root[data-theme="light"] .group-table-row,
:root[data-theme="light"] .kanban-col,
:root[data-theme="light"] .kanban-group-lane,
:root[data-theme="light"] .calendar-grid-enhanced,
:root[data-theme="light"] .calendar-days-header,
:root[data-theme="light"] .calendar-toolbar-enhanced,
:root[data-theme="light"] .project-toolbar-unified,
:root[data-theme="light"] .project-container,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .chart-content-enhanced,
:root[data-theme="light"] .calendar-main-grid,
:root[data-theme="light"] .group-table,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .mywork-container,
:root[data-theme="light"] .recents-page,
:root[data-theme="light"] .more-page,
:root[data-theme="light"] .modal-content,
:root[data-theme="light"] .entity-editor-card,
:root[data-theme="light"] .status-picker,
:root[data-theme="light"] .promo-box,
:root[data-theme="light"] .promo-content,
:root[data-theme="light"] .learn-card,
:root[data-theme="light"] .workspace-card,
:root[data-theme="light"] .board-card,
:root[data-theme="light"] .board-info,
:root[data-theme="light"] .settings-card,
:root[data-theme="light"] .home-section {
    background: #ffffff !important;
    color: #18212f !important;
    border-color: #d8e0ec !important;
}

:root[data-theme="light"] .sidebar-item,
:root[data-theme="light"] .nav-icon-item,
:root[data-theme="light"] .theme-toggle-btn,
:root[data-theme="light"] .workspace-text,
:root[data-theme="light"] .greeting-left h1,
:root[data-theme="light"] .greeting-left p,
:root[data-theme="light"] .feed-header strong,
:root[data-theme="light"] .feed-message,
:root[data-theme="light"] .invite-text,
:root[data-theme="light"] .board-title,
:root[data-theme="light"] .promo-content p,
:root[data-theme="light"] .toolbar-btn,
:root[data-theme="light"] .toolbar-btn-icon,
:root[data-theme="light"] .tab-item,
:root[data-theme="light"] .card-title,
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3 {
    color: #18212f !important;
}

:root[data-theme="light"] .sidebar-item:hover,
:root[data-theme="light"] .nav-icon-item:hover,
:root[data-theme="light"] .theme-toggle-btn:hover,
:root[data-theme="light"] .workspace-selector,
:root[data-theme="light"] .toolbar-search-wrapper,
:root[data-theme="light"] .search-box,
:root[data-theme="light"] .search-box input,
:root[data-theme="light"] .board-card:hover,
:root[data-theme="light"] .btn-feedback:hover,
:root[data-theme="light"] .btn-no-thanks:hover,
:root[data-theme="light"] .group-table-row:not(.header):hover,
:root[data-theme="light"] .cal-cell:hover {
    background: #f1f5fb !important;
}

:root[data-theme="light"] .group-table-row > div,
:root[data-theme="light"] .group-table-row.header div,
:root[data-theme="light"] .card-footer,
:root[data-theme="light"] .board-workspace,
:root[data-theme="light"] .section-header-collapsible,
:root[data-theme="light"] .toolbar-btn,
:root[data-theme="light"] .toolbar-btn-icon,
:root[data-theme="light"] .tab-item,
:root[data-theme="light"] .group-title,
:root[data-theme="light"] .group-count,
:root[data-theme="light"] .profile-label,
:root[data-theme="light"] .profile-card-head p,
:root[data-theme="light"] .empty-state-line {
    color: #607089 !important;
}

:root[data-theme="light"] .app-logo-img {
    filter: none;
}

:root[data-theme="light"] .project-header-top,
:root[data-theme="light"] .project-tabs-bar,
:root[data-theme="light"] .mywork-header,
:root[data-theme="light"] .mywork-toolbar,
:root[data-theme="light"] .task-group,
:root[data-theme="light"] .recent-timeline .timeline-item,
:root[data-theme="light"] .settings-grid .settings-card,
:root[data-theme="light"] .workspace-selector,
:root[data-theme="light"] .workspace-add-btn,
:root[data-theme="light"] .board-delete-btn,
:root[data-theme="light"] .delete-workspace-btn,
:root[data-theme="light"] .theme-toggle-btn {
    border-color: #d8e0ec !important;
}

:root[data-theme="light"] .kanban-card,
:root[data-theme="light"] .group-table-row.header,
:root[data-theme="light"] .workspace-add-btn,
:root[data-theme="light"] .theme-toggle-btn,
:root[data-theme="light"] .nav-icon-item,
:root[data-theme="light"] .status-option.empty {
    background: #f7f9fc !important;
}

:root[data-theme="light"] .profile-input,
:root[data-theme="light"] .entity-editor-input,
:root[data-theme="light"] .entity-editor-preview,
:root[data-theme="light"] .toolbar-search-wrapper input,
:root[data-theme="light"] .search-box input {
    background: #ffffff !important;
    color: #18212f !important;
    border-color: #d8e0ec !important;
}

:root[data-theme="light"] .board-card,
:root[data-theme="light"] .greeting-section,
:root[data-theme="light"] .home-section,
:root[data-theme="light"] .workspace-card {
    box-shadow: 0 10px 24px rgba(24, 33, 47, 0.06) !important;
}

:root[data-theme="light"] .promo-box {
    background: linear-gradient(135deg, #dfeafe 0%, #edf3ff 100%) !important;
}

:root[data-theme="light"] .promo-content {
    background: rgba(255, 255, 255, 0.78) !important;
    border-top: 1px solid rgba(216, 224, 236, 0.95) !important;
}

:root[data-theme="light"] .promo-image {
    color: #4b7cff !important;
}

:root[data-theme="light"] .board-preview {
    background: linear-gradient(135deg, #7ea3ff 0%, #8cb7ff 100%) !important;
}

:root[data-theme="light"] .feed-item {
    border-bottom-color: #e3e9f2 !important;
}

:root[data-theme="light"] .feed-avatar,
:root[data-theme="light"] .invite-avatar-plus {
    background: #eef3fb !important;
    border-color: #ffffff !important;
    color: #607089 !important;
}

:root[data-theme="light"] .btn-feedback,
:root[data-theme="light"] .btn-no-thanks,
:root[data-theme="light"] .btn-invite,
:root[data-theme="light"] .btn-explore {
    border: 1px solid #cfd9e8 !important;
    color: #18212f !important;
}

:root[data-theme="light"] .btn-feedback,
:root[data-theme="light"] .btn-no-thanks {
    background: #ffffff !important;
}

:root[data-theme="light"] .btn-invite {
    background: #eef4ff !important;
    color: #25457a !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .btn-invite:hover,
:root[data-theme="light"] .btn-explore:hover {
    background: #e3edff !important;
}

:root[data-theme="light"] .btn-explore {
    background: #ffffff !important;
    color: #1f3e70 !important;
}

:root[data-theme="light"] .calendar-days-header div,
:root[data-theme="light"] .day-num,
:root[data-theme="light"] .col-header span,
:root[data-theme="light"] .bar-label {
    color: #607089 !important;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 12px;
}

.sidebar-item {
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.1s;
}

.sidebar-item:hover {
    background: #262e3d;
    color: white;
}

.sidebar-item.active {
    background: #f8f8f82c;
    color: white;
    border-left: 3px solid var(--primary-blue);
    padding-left: 9px;
    backdrop-filter: blur(10px);
}

.sidebar-item i {
    color: var(--primary-blue);
    width: 20px;
}

.badge {
    margin-left: auto;
    background: #2d3748;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* ----- SIDEBAR NAV (Top Navigation) ----- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

/* ----- SIDEBAR FEATURE (Monday AI) ----- */
.sidebar-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.1s;
}

.sidebar-feature:hover {
    background: #262e3d;
    color: white;
}

.sidebar-feature i:last-child {
    margin-left: auto;
}

/* ----- WORKSPACE SELECTOR ----- */
.workspace-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #262e3d;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}

.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #b0b0b0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: #2b3446;
    color: white;
}

.workspace-block {
    margin-bottom: 14px;
}

.workspace-board-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 10px;
}

.workspace-board-list .sidebar-item {
    padding-left: 14px;
}

.board-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.empty-state-line {
    color: var(--text-muted);
    padding: 16px 4px;
    font-size: 14px;
}

.dynamic-settings-card p {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 13px;
}

[data-mywork-board],
[data-home-board],
[data-more-board] {
    cursor: pointer;
}

.board-sidebar-item > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.workspace-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #a358d0, #6c8aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.workspace-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-white);
}

.workspace-selector i:nth-child(3) {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.workspace-add-btn {
    min-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #3d4557;
    border: 1px solid #4d5668;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.1s;
}

.workspace-add-btn:hover {
    background: #4d5668;
    border-color: #5d6778;
}

.workspace-create-btn {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px dashed #3d4557;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: all 0.15s ease;
}

.workspace-create-btn:hover {
    color: var(--text-white);
    border-color: #6c8aff;
    background: rgba(108, 138, 255, 0.08);
}

.profile-page-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.profile-card {
    width: min(100%, 720px);
    background: #171c24;
    border: 1px solid #2b313a;
    border-radius: 18px;
    padding: 24px;
}

.profile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-card-head h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.profile-card-head p {
    color: var(--text-muted);
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c8aff, #a358d0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.profile-form {
    display: grid;
    gap: 10px;
}

.profile-label {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #2b313a;
    background: #0f141b;
    color: #fff;
    padding: 0 14px;
    margin-bottom: 6px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.profile-btn {
    min-width: 140px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.profile-btn.primary {
    background: #6c8aff;
    color: #fff;
}

.profile-btn.danger {
    background: rgba(249, 96, 87, 0.12);
    color: #ff8a80;
    border-color: rgba(249, 96, 87, 0.25);
}

.profile-feedback {
    min-height: 22px;
    margin-top: 6px;
    font-size: 14px;
}

.profile-feedback.success {
    color: #00c875;
}

.profile-feedback.error {
    color: #ff8a80;
}

.board-delete-btn,
.delete-workspace-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.board-delete-btn:hover,
.delete-workspace-btn:hover {
    color: #ff8a80;
    border-color: rgba(249, 96, 87, 0.25);
    background: rgba(249, 96, 87, 0.08);
}

/* ----- MAIN CONTENT AREA ----- */
.dashboard-main {
    flex: 1;
    min-width: 0;
    /* Prevents nested tables from breaking the flex container width */
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dashboard-main.reporting-page-active {
    padding: 0;
}

.page-content {
    display: none;
}

.page-content.active-page {
    display: block;
}

/* ========== MAIN DASHBOARD PAGE ========== */
.project-header {
    margin-bottom: 24px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.project-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.project-tab {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.project-tab.active {
    color: var(--text-white);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
}

.sidekick-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #262e3d;
    padding: 12px 20px;
    border-radius: 40px;
    margin-bottom: 24px;
    width: fit-content;
}

.sidekick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidekick-item i {
    color: var(--primary-blue);
}

/* ========== TABLE STYLES ========== */
.table-container {
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow-x: auto;
    margin-bottom: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.table th {
    text-align: left;
    padding: 16px 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    background: #1e2431;
}

.table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-white);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-done {
    background: rgba(0, 200, 117, 0.2);
    color: var(--accent-green);
}

.status-stuck {
    background: rgba(249, 96, 87, 0.2);
    color: var(--accent-red);
}

.status-working {
    background: rgba(253, 171, 61, 0.2);
    color: var(--accent-orange);
}

.status-badge.agency {
    background: rgba(163, 88, 208, 0.2);
    color: var(--accent-purple);
}

/* ========== STATUS PICKER DROPDOWN ========== */
.status-picker {
    position: fixed;
    background: #262e3d;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 5000;
    min-width: 160px;
    animation: fadeInScale 0.15s ease-out;
}

.status-picker.show {
    display: block;
}

.status-option {
    padding: 10px 16px;
    margin: 4px 0;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.status-option-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 12px;
}

.status-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.entity-editor-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 16, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12000;
    padding: 20px;
}

.entity-editor-modal.show {
    display: flex;
}

.entity-editor-card {
    width: min(100%, 520px);
    background: #171c24;
    border: 1px solid #2b313a;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.entity-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.entity-editor-head h3 {
    font-size: 18px;
    color: #ffffff;
}

.entity-editor-close,
.entity-editor-btn {
    border: 1px solid #2b313a;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.entity-editor-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.entity-editor-label {
    display: block;
    color: #9aa8c7;
    margin-bottom: 8px;
    font-size: 13px;
}

.entity-editor-input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #2b313a;
    background: #0f141b;
    color: #ffffff;
    padding: 0 14px;
    margin-bottom: 14px;
}

.entity-editor-color-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.entity-editor-color {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #2b313a;
    background: transparent;
    cursor: pointer;
}

.entity-editor-input.hex {
    margin-bottom: 0;
}

.entity-editor-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.entity-editor-swatch {
    min-height: 42px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
}

.entity-editor-swatch span {
    display: inline-block;
    width: 100%;
    padding: 12px 6px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.entity-editor-swatch.active {
    border-color: #ffffff;
}

.entity-editor-preview {
    background: #0f141b;
    border: 1px solid #2b313a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.entity-editor-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.entity-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.entity-editor-btn {
    min-width: 96px;
    height: 40px;
    border-radius: 10px;
    padding: 0 14px;
}

.entity-editor-btn.primary {
    background: #6c8aff;
    border-color: #6c8aff;
}

.entity-editor-btn.secondary {
    color: #9aa8c7;
}

.status-option-row {
    display: grid;
    grid-template-columns: 1fr 32px 32px;
    gap: 6px;
    align-items: center;
    margin: 4px 0;
}

.status-option-row .status-option {
    margin: 0;
}

.status-option-action,
.status-manage-btn {
    border: 1px solid var(--border-light);
    background: #1c2128;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    min-height: 32px;
}

.status-option-action:hover,
.status-manage-btn:hover {
    color: var(--text-white);
    background: #2c3444;
}

.status-option-action.delete:hover {
    color: #ff8a80;
}

.status-manage-btn {
    width: 100%;
    margin-top: 8px;
    font-weight: 600;
    padding: 8px 12px;
}

.status-option.done { background: var(--status-done); }
.status-option.working { background: var(--status-working); }
.status-option.stuck { background: var(--status-stuck); }
.status-option.agency { background: var(--accent-purple); }
.status-option.empty { background: #3d4557; color: var(--text-muted); }

.status-option:hover {
    filter: brightness(1.1);
    transform: translateX(4px);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


.owner-avatar {
    width: 28px;
    height: 28px;
    background: #4e5c77;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.add-task {
    color: var(--text-muted);
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.add-task:hover {
    color: var(--text-white);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 16px;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.add-group {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.add-group:hover {
    color: var(--text-white);
}

.sidekicks-section {
    margin-top: 32px;
    padding: 20px;
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.sidekicks-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.suggestion-item {
    padding: 12px;
    background: #262e3d;
    border-radius: 8px;
    margin-bottom: 8px;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #2d3748;
}

.buttons-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: 24px 0;
}

.button-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.button-item:hover {
    color: var(--text-white);
}

.footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    gap: 24px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text-white);
}

/* ========== ENHANCED PAGES ========== */
.maintable-page,
.kanban-page,
.recents-page,
.more-page,
.integrate-page,
.automate-page,
.invite-page,
.project-page,
.sidekicks-page,
.aisuggestions-page,
.new-page,
.buttons-page {
    background: #1a202c;
    border-radius: 16px;
    padding: 32px;
}

.integrate-grid,
.automation-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.integration-card,
.automation-card,
.settings-card {
    background: #262e3d;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: border-color 0.2s;
}

.integration-card:hover,
.automation-card:hover,
.settings-card:hover {
    border-color: var(--primary-blue);
}

.integration-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.automation-trigger {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 8px 0;
}

.invite-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.invite-card {
    background: #262e3d;
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.project-progress {
    height: 8px;
    background: #262e3d;
    border-radius: 4px;
    margin: 24px 0;
}

.progress-fill {
    width: 65%;
    height: 100%;
    background: var(--primary-blue);
    border-radius: 4px;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.project-metrics div {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.project-metrics div:hover {
    background: #262e3d;
}

.stat-number {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* ========== TABLE FILTERS ========== */
.table-filters {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.filter-badge {
    background: #262e3d;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.filter-badge.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ========== KANBAN BOARD ========== */
.kanban-page {
    background: #1a202c;
    border-radius: 16px;
    padding: 32px;
}

.kanban-columns {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 0 20px;
    margin-top: 32px;
}

.kanban-col {
    flex: 1;
    min-width: 300px;
    background: #262e3d;
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
}

/* Column header colors based on status */
.kanban-col[data-column="todo"] .col-header {
    background: linear-gradient(135deg, #7c5295 0%, #6b4589 100%);
    border-bottom: none;
}

.kanban-col[data-column="progress"] .col-header {
    background: linear-gradient(135deg, #fdab3d 0%, #f89e13 100%);
    border-bottom: none;
}

.kanban-col[data-column="done"] .col-header {
    background: linear-gradient(135deg, #00c875 0%, #00b868 100%);
    border-bottom: none;
}

.col-header span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: white;
}

.kanban-card {
    background: #1a202c;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    cursor: grab;
    transition: all 0.2s;
    margin-left: 12px;
}

.kanban-card:first-of-type {
    margin-top: 12px;
}

.kanban-card:last-of-type {
    margin-bottom: 12px;
}

.kanban-card:hover {
    border-color: var(--primary-blue);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.card-title {
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.card-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.card-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.kanban-card:hover .card-actions {
    opacity: 1;
}

.card-actions i {
    margin-left: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.card-actions i:hover {
    color: var(--primary-blue);
}

/* ========== RECENTS TIMELINE ========== */
.recent-timeline {
    margin-top: 24px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    cursor: pointer;
}

.timeline-item:hover {
    background: #262e3d;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    background: #262e3d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.timeline-time {
    color: var(--text-muted);
    min-width: 120px;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 16px;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1a202c;
    border-radius: 16px;
    width: 400px;
    padding: 24px;
    border: 1px solid #333c4d;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-white);
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    background: #262e3d;
    border: 1px solid #3d4a62;
    border-radius: 8px;
    margin: 10px 0 20px;
    color: white;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.create-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.create-btn:hover {
    background: var(--primary-hover);
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #262e3d;
    color: var(--text-white);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3d4a62;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5a7a;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 200px;
    }

    .kanban-columns {
        overflow-x: auto;
    }

    .project-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 12px;
    }

    .sidebar-section {
        flex-direction: row;
        gap: 12px;
    }

    .login-container {
        flex-direction: column;
    }

    .login-right {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
}

/* ========== HOME PAGE (DASHBOARD) ========== */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
}

.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #1a1f2b;
    border-radius: 12px;
}

.greeting-left h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.greeting-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.greeting-right {
    display: flex;
    gap: 12px;
}

.btn-feedback,
.btn-search {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
}

.btn-feedback {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-feedback:hover {
    background: #262e3d;
    color: var(--text-white);
}

.btn-search {
    background: var(--primary-blue);
    color: white;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.home-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-section {
    background: #1a1f2b;
    border-radius: 12px;
    padding: 24px;
}

.section-header-collapsible {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
    cursor: pointer;
}

.section-header-collapsible i:first-child {
    color: var(--text-muted);
}

.badge-blue {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.info-icon {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Recently Visited Grid */
.recently-visited-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.board-card {
    background: #262e3d;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.board-card:hover {
    background: #2d3647;
    transform: translateY(-2px);
}

.board-preview {
    height: 120px;
    background: linear-gradient(135deg, #6c8aff, #a358d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.board-info {
    padding: 12px;
}

.board-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.star-icon {
    margin-left: auto;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.1s;
}

.star-icon:hover {
    color: var(--accent-orange);
}

.board-workspace {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Feed Items */
.feed-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #2b313a;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-avatar {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #262e3d;
    overflow: hidden;
}

.feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-content {
    flex: 1;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.feed-header strong {
    color: var(--text-white);
}

.feed-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feed-message {
    color: var(--text-white);
    font-size: 0.95rem;
}

/* Invite Section */
.invite-section {
    display: flex;
    gap: 16px;
}

.invite-avatars {
    display: flex;
    gap: -8px;
}

.invite-avatar,
.invite-avatar-plus {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 2px solid #1a1f2b;
    margin-left: -8px;
    background: linear-gradient(135deg, #6c8aff, #a358d0);
}

.invite-avatar:first-child {
    margin-left: 0;
    background: linear-gradient(135deg, #a358d0, #f96057);
}

.invite-avatar:nth-child(2) {
    background: linear-gradient(135deg, #6cc3ff, #6c8aff);
}

.invite-avatar-plus {
    background: #262e3d;
    color: var(--text-muted);
}

.invite-content {
    flex: 1;
}

.invite-text {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.invite-buttons {
    display: flex;
    gap: 8px;
}

.btn-no-thanks,
.btn-invite {
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s;
}

.btn-no-thanks {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-no-thanks:hover {
    background: #262e3d;
    color: var(--text-white);
}

.btn-invite {
    background: var(--primary-blue);
    color: white;
}

.btn-invite:hover {
    background: var(--primary-hover);
}

/* Workspaces Grid */
.workspaces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.workspace-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #262e3d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.workspace-card:hover {
    background: #2d3647;
}

.workspace-badge-large {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a358d0, #6c8aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.workspace-details {
    flex: 1;
}

.workspace-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.workspace-type {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.workspace-type i {
    font-size: 0.75rem;
}

/* Promo Box */
.promo-box {
    background: linear-gradient(135deg, #6c8aff 0%, #a358d0 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.promo-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.promo-content {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.promo-content p {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.btn-explore {
    width: 100%;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.1s;
}

.btn-explore:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Learn Section */
.learn-section h3 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.learn-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #262e3d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.learn-card:hover {
    background: #2d3647;
}

.learn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.learn-icon.getting-started {
    background: #6c8aff;
}

.learn-icon.help-center {
    background: #a358d0;
}

.learn-icon.magic-ai {
    background: #fdab3d;
}

.learn-content h4 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.learn-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
    }

    .greeting-section {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .greeting-right {
        justify-content: center;
    }

    .recently-visited-grid {
        grid-template-columns: 1fr;
    }

    .workspaces-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MY WORK PAGE ========== */
.mywork-container {
    max-width: 1400px;
    margin: 0 auto;
}

.mywork-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.mywork-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mywork-title h1 {
    font-size: 1.8rem;
    color: var(--text-white);
}

.mywork-title .info-icon {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.mywork-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.customize-icon {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.1s;
}

.customize-icon:hover {
    color: var(--text-white);
}

.btn-customize {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.1s;
}

.btn-customize:hover {
    background: #262e3d;
}

/* Toolbar */
.mywork-toolbar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px 0;
}

.tabs {
    display: flex;
    gap: 24px;
}

.tab {
    padding: 8px 0;
    color: var(--text-muted) !important;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: all 0.1s;
}

.tab:hover {
    color: var(--text-white);
}

.tab.active {
    color: var(--text-white);
    border-bottom-color: var(--primary-blue);
}

.toolbar-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-new-item {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
}

.btn-new-item:hover {
    background: var(--primary-hover);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #262e3d;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.search-box i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    min-width: 120px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
}

.toolbar-right {
    margin-left: auto;
}

.date-view-select {
    padding: 8px 12px;
    background: #262e3d;
    color: var(--text-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.1s;
}

.date-view-select:hover {
    background: #2d3647;
}

/* Table Wrapper */
.mywork-table-wrapper {
    background: #1a1f2b;
    border-radius: 8px;
    overflow: hidden;
}

.task-group {
    border-bottom: 1px solid #2b313a;
}

.task-group:last-child {
    border-bottom: none;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1a1f2b;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}

.group-header:hover {
    background: #212835;
}

.group-header i {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.group-header.collapsed i {
    transform: rotate(-90deg);
}

.group-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.group-title.today {
    color: #00c875;
}

.group-title.thisweek {
    color: #6cc3ff;
}

.group-title.nextweek {
    color: #6cc3ff;
}

.group-title.later {
    color: #fdab3d;
}

.group-title.withoutdate {
    color: #9aa8c7;
}

.group-count {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* My Work Table */
.mywork-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1f2b;
}

.mywork-table thead {
    border-bottom: 1px solid #2b313a;
}

.mywork-table th {
    padding: 12px 20px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    background: #14181f;
}

.mywork-table th:first-child {
    width: 30px;
}

.mywork-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #2b313a;
    color: var(--text-white);
    font-size: 0.9rem;
}

.mywork-table tbody tr:hover {
    background: #212835;
}

.group-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.group-tag.works {
    background: #264b9f;
    color: #6cc3ff;
}

.group-tag.members {
    background: #662b6b;
    color: #d485d0;
}

.item-name {
    color: var(--text-white);
    font-weight: 500;
}

.table td:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c8aff, #a358d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge-orange {
    background: #c85f1e;
    color: #fdab3d;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge-blue {
    background: #1a3d5e;
    color: #6cc3ff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* ========== MY FIRST PROJECT PAGE ========== */
.project-container {
    background: #0c0f15;
    padding: 24px;
    min-height: 100vh;
}

.project-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.project-header-top h1 {
    font-size: 1.6rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.project-header-top i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tabs Bar */
.project-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0;
}

/* Tabs with dropdown */
.project-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0;
}

.tab-item {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-item:hover {
    color: var(--text-white);
}

.tab-item.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}


/* Add view button */
.tab-add-view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    transition: color 0.2s;
}

.tab-add-view-btn:hover {
    color: var(--text-white);
}

/* Dropdown menu */
.view-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 140px;
    margin-top: 4px;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    transition: background 0.15s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

/* Close button on tabs */
.project-tab .fa-times {
    opacity: 0;
    transition: opacity 0.2s;
}

.project-tab:hover .fa-times {
    opacity: 1;
}

/* View containers */
.project-views-container {
    display: flex;
    flex-direction: column;
}

.project-view {
    display: none;
}

.project-view:first-child {
    display: block;
}

/* calendar styles */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
    margin-top: 16px;
}

.calendar-day {
    background: var(--bg-white);
    padding: 8px;
    min-height: 80px;
    font-size: 0.85rem;
    border: 1px solid var(--border-lighter);
}

.calendar-day .date-number {
    font-weight: bold;
    margin-bottom: 4px;
}

.calendar-task {
    margin-top: 4px;
    padding: 2px 4px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* chart container */
.chart-container {
    max-width: 600px;
    margin: 24px auto;
}

.tab-item {
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 3px solid var(--primary-blue);
    position: relative;
    bottom: -1px;
}

.tab-add-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.1s;
    margin-left: 8px;
}

.tab-add-btn:hover {
    color: var(--text-white);
}

/* Project Toolbar */
.project-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1f2b;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.toolbar-search i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toolbar-search input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    min-width: 100px;
}

.toolbar-search input::placeholder {
    color: var(--text-muted);
}

.toolbar-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.filter-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s;
}

.filter-btn:hover {
    background: #1a1f2b;
    color: var(--text-white);
}

/* Project Groups */
.project-groups {
    background: #1a1f2b;
    border-radius: 8px;
    overflow: hidden;
}

.project-group {
    border-bottom: 1px solid #2b313a;
}

.project-group:last-of-type {
    border-bottom: none;
}

.group-header-project {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #1a1f2b;
    cursor: pointer;
    user-select: none;
    border-left: 4px solid;
}

.group-header-project.works-group {
    border-left-color: #6c8aff;
}

.group-header-project .works-group {
    color: #6c8aff;
}

.group-header-project.members-group {
    border-left-color: #a358d0;
}

.group-header-project .members-group {
    color: #a358d0;
}

.group-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.group-name.works-group {
    color: #e4eaff;
}

.group-name.members-group {
    color: #a358d0;
}

.group-header-project i:first-child {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.group-action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-action-btn:hover {
    background: #262e3d;
    border-color: var(--border-light);
    color: var(--text-white);
}

.group-action-btn.delete:hover {
    color: #ff8a80;
    border-color: rgba(249, 96, 87, 0.25);
}

/* Group Table */
.group-table {
    background: #1a1f2b;
}

.group-table-row {
    display: grid;
    grid-template-columns: 40px 180px 80px 140px 100px 100px 40px;
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #2b313a;
    font-size: 0.9rem;
    color: var(--text-white);
}

.group-table-row.header {
    background: #14181f;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.group-table-row:hover {
    background: #212835;
}

.group-table-row.add-item {
    color: var(--text-muted);
    cursor: pointer;
}

.group-table-row.add-item:hover {
    color: var(--text-white);
}

.col-checkbox {
    display: flex;
    align-items: center;
}

.col-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.col-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.col-item i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.col-person {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.avatar-small.person {
    background: #262e3d;
    color: var(--text-muted);
}

.avatar-small:not(.person) {
    background: linear-gradient(135deg, #6c8aff, #a358d0);
}

.col-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status-badge.stuck {
    background: #c85f1e;
    color: #ffffff;
}

.status-badge.done {
    background: #1a5e3c;
    color: #ffffff;
}

.status-badge.working {
    background: #B361E5;
    color: #ffffff;
}

.status-badge.agency {
    background: #1a3d5e;
    color: #ffffff;
}

.col-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.col-action {
    text-align: center;
    color: var(--text-muted);
}

.task-delete-btn {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-delete-btn:hover {
    color: #ff6b6b;
    background: rgba(249, 96, 87, 0.08);
    border-color: rgba(249, 96, 87, 0.18);
}

/* Group Timeline */
.group-timeline {
    padding: 0 20px 12px;
    background: #1a1f2b;
}

.timeline-bar {
    height: 20px;
    background: linear-gradient(to right, #00c875 33%, #fdab3d 33%, #fdab3d 66%, #f96057 66%);
    border-radius: 2px;
}

/* Add New Group Button */
.btn-add-group {
    margin-top: 16px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.1s;
}

.btn-add-group:hover {
    background: #1a1f2b;
    color: var(--text-white);
}

/* Project Kanban Enhancements */
#projectKanbanColumns .kanban-card {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: grab;
}

/* ========== MY FIRST PROJECT ENHANCED STYLES ========== */
.project-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.header-left h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
}

.header-left h1 i {
    font-size: 16px;
    color: var(--text-muted);
}

.header-utility-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.util-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a89aa;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.util-btn:hover {
    color: #ffffff;
}

.util-btn i {
    font-size: 15px;
    color: #6c8aff;
}

.badge-new {
    background: #6c8aff;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.util-btn-icon {
    color: #7a89aa;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.util-btn-icon:hover {
    color: #ffffff;
}

.util-btn-avatar {
    width: 28px;
    height: 28px;
    background: #4e5c77;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.btn-invite {
    background: transparent;
    border: 1px solid #3d4a62;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-invite:hover {
    background: #262e3d;
}

/* Tabs Bar */
.project-tabs-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #2b313a;
    padding: 0 12px;
}

.tab-item {
    padding: 12px 0;
    color: #9aa8c7;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-item:hover {
    color: #ffffff;
}

.tab-item.active {
    color: #ffffff;
    border-bottom-color: #6c8aff;
}

.tab-item-add {
    color: #9aa8c7;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
}

/* Unified Toolbar */
.project-toolbar-unified {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2b313a;
    background: var(--bg-primary);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toolbar-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search-wrapper i {
    position: absolute;
    left: 12px;
    color: #7a89aa;
}

.toolbar-search-wrapper input {
    background: #1c2128;
    border: 1px solid #2b313a;
    color: white;
    padding: 8px 12px 8px 36px;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #9aa8c7;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toolbar-btn:hover {
    background: #262e3d;
    color: #ffffff;
}

.toolbar-btn i {
    font-size: 16px;
}

.color-indicator-bar {
    display: flex;
    gap: 4px;
    background: #262e3d;
    padding: 6px 14px;
    border-radius: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.dot.orange {
    background: #fdab3d;
}

.dot.red {
    background: #f96057;
}

.dot.green {
    background: #00c875;
}

.dot.blue {
    background: #6c8aff;
}

.toolbar-btn-icon {
    background: transparent;
    border: none;
    color: #9aa8c7;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.toolbar-btn-icon:hover {
    color: #ffffff;
}

/* Kanban Enhanced */
.kanban-page-enhanced {
    padding: 24px;
    background: var(--bg-primary);
}

.kanban-columns {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    overflow-x: auto;
}

.kanban-col {
    flex: 1;
    min-width: 260px;
    background: #1c1c2b;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
}

.col-header {
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
}

.col-header span {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.color-working {
    background: #fdbd59;
    color: #1c1c2b !important;
}

.color-stuck {
    background: #e2445c;
}

.color-done {
    background: #00c875;
}

.color-blank {
    background: #c4c4c4;
    color: #1c1c2b !important;
}

.color-agency {
    background: #579bfc;
}

.kanban-card {
    background: #2b2b3b;
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #3d3d4d;
    transition: transform 0.2s;
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: #6c8aff;
}

.card-title {
    color: inherit;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    font-size: 12px;
    opacity: 0.9;
}

.kanban-group-lanes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
}

.kanban-group-lane {
    border: 1px solid #2b313a;
    border-radius: 10px;
    background: #151a22;
    min-height: 88px;
    padding: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.kanban-group-lane.drag-over {
    border-color: #6c8aff;
    background: #1a2130;
}

.kanban-group-lane-head {
    margin-bottom: 10px;
}

.kanban-group-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.kanban-group-lane-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Project Groups & Tables */
.project-groups {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #0c0f15;
}

.project-group {
    background: #1c2128;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2b313a;
}

.group-header-project {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1c2128;
    cursor: pointer;
    border-bottom: 1px solid #2b313a;
    border-left: 4px solid transparent;
}

.group-header-project i {
    color: #7a89aa;
    font-size: 12px;
}

.group-name {
    font-weight: 600;
    font-size: 16px;
}

.group-name.works-group {
    color: #f96057;
}

.group-name.members-group {
    color: #6c8aff;
}

.group-table {
    width: 100%;
}

.group-table-row {
    display: grid;
    grid-template-columns: 40px 1.5fr 1fr 1fr 1fr 1fr 40px;
    align-items: center;
    border-bottom: 1px solid #2b313a;
    background: #1c2128;
}

.group-table-row.header {
    background: #1c2128;
    height: 40px;
}

.group-table-row.header div {
    color: #7a89aa;
    font-size: 13px;
    font-weight: 500;
}

.group-table-row:not(.header):hover {
    background: #262e3d;
}

.group-table-row>div {
    padding: 8px 12px;
    height: 100%;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    border-right: 1px solid #2b313a;
}

.group-table-row>div:last-child {
    border-right: none;
}

.col-checkbox input {
    cursor: pointer;
}

.col-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-item i {
    color: #6c8aff;
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    width: 100%;
    text-align: center;
}

.status-badge.stuck {
    background: #e2445c;
}

.status-badge.done {
    background: #00c875;
}

.status-badge.working {
    background: #fdab3d;
    color: #ffffff;
}

.status-badge.agency {
    background: #579bfc;
}

.status-badge.blank {
    background: #3d4557;
    color: var(--text-muted);
}

.avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4e5c77;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.add-item {
    color: #7a89aa;
    cursor: pointer;
    background: transparent !important;
}

.btn-add-group {
    background: transparent;
    border: 1px solid #2b313a;
    color: #7a89aa;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
}

/* Recents Dropdown Styling */
#recentsToggle {
    position: relative;
}

.recents-dropdown {
    display: none;
    position: absolute;
    left: 240px;
    /* Adjust to stay inside view but pop out over main area */
    top: 0;
    width: 280px;
    background: #2b2c34;
    border: 1px solid #3d4450;
    border-radius: 8px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.recents-dropdown.show,
.more-dropdown.show {
    display: block;
}

/* More Dropdown Specifics */
.more-dropdown {
    display: none;
    position: absolute;
    left: 240px;
    top: 0;
    width: 280px;
    background: #2b2c34;
    border: 1px solid #3d4450;
    border-radius: 8px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.more-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.more-dropdown .dropdown-item:hover {
    background: #3d4450;
}

.more-dropdown .dropdown-item i {
    color: #b0b0b0;
    width: 16px;
    text-align: center;
}

.more-dropdown .shortcut {
    margin-left: auto;
    color: #7a89aa;
    font-size: 12px;
}

.more-dropdown .dropdown-divider {
    height: 1px;
    background: #3d4450;
    margin: 8px 0;
}

.recents-dropdown .dropdown-header {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.recents-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 20px;
    border-top: 1px solid #3d445033;
    padding-top: 15px;
}

.recents-dropdown .dropdown-item:hover {
    background: #3d4450;
}

.recents-dropdown .dropdown-item i {
    color: #7a89aa;
}

.recents-dropdown .dropdown-footer {
    text-align: center;
    font-size: 13px;
    color: #7a89aa;
    border-top: 1px solid #3d4450;
    padding-top: 20px;
}

.recents-dropdown .dropdown-footer a {
    color: #4d8dfb;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

.recents-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}

.dashboard-reporting-container {
    padding: 24px;
    height: auto;
    overflow-y: visible;
}

.reporting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.reporting-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.reporting-header .header-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.reporting-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reporting-header .util-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reporting-header .util-icon:hover {
    background: #262e3d;
    color: var(--text-white);
}

.reporting-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border-light);
}

.reporting-toolbar .toolbar-search-wrapper {
    min-width: 220px;
}

.reporting-toolbar .toolbar-search-wrapper input {
    width: 240px;
    height: 38px;
}

.reporting-toolbar .toolbar-right-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

#dashboard_reportingPage .toolbar-btn {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

#dashboard_reportingPage .toolbar-btn:hover {
    border-color: var(--border-light);
}

#dashboard_reportingPage .btn-add-widget,
#dashboard_reportingPage .btn-invite {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-add-widget {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.reporting-card {
    background: #1c2128;
    border: 1px solid #2b313a;
    border-radius: 8px;
    padding: 16px;
}

.summary-card {
    min-height: 150px;
}

.chart-card {
    grid-column: span 2;
    min-height: 300px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #7a89aa;
    font-size: 14px;
}

.card-body p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-connect-boards {
    background: transparent;
    border: 1px solid #3d4450;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-connect-boards:hover {
    background: #2b313a;
}

/* Illustration simulation */
.card-body-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.illustration-placeholder {
    text-align: center;
}

.chart-bars-sim {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 80px;
    margin-bottom: 20px;
}

.bar-sim {
    width: 12px;
    border-radius: 2px 2px 0 0;
}

.bar-sim.green {
    background: #00c875;
}

.bar-sim.blue {
    background: #579bfc;
}

.bar-sim.purple {
    background: #a25ddc;
}

.illustration-placeholder p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
}


/* Calendar View Enhanced Styling */
.calendar-toolbar-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.btn-new-item-calendar,
.btn-new-item-chart {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.nav-arrows {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.current-month-year {
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 140px;
    text-align: center;
}

.view-select {
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.calendar-grid-enhanced {
    background: #1c2128;
    border: 1px solid #2b313a;
    border-radius: 4px;
    overflow: hidden;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #0c0f15;
    border-bottom: 1px solid #2b313a;
}

.calendar-days-header div {
    padding: 10px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.calendar-main-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(120px, auto);
}

.cal-cell {
    border-right: 1px solid #2b313a;
    border-bottom: 1px solid #2b313a;
    padding: 8px;
    position: relative;
    transition: background 0.2s;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell:hover {
    background: #262e3d;
}

.cal-cell.muted {
    opacity: 0.4;
}

.cal-cell.today {
    background: rgba(108, 138, 255, 0.05);
}

.cal-cell.highlight-blue {
    background: rgba(108, 138, 255, 0.1);
}

.day-num {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cal-cell.today .day-num {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Calendar Task Bars */
.cal-task-bar {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    font-weight: 500;
}

.calendar-marker-tag {
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.calendar-marker-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-task-bar.done {
    background: #00c875;
}

.cal-task-bar.stuck {
    background: #f96057;
}

.cal-task-bar.working {
    background: #fdab3d;
    color: #1c2128;
}

.cal-task-bar.agency {
    background: #6c8aff;
}

.cal-task-bar.start-marker {
    border-left: 3px solid rgba(255, 255, 255, 0.95);
}

.cal-task-bar.end-marker {
    border: 1px dashed rgba(255, 255, 255, 0.6);
    background: transparent;
}

.cal-task-bar.done.end-marker {
    color: #8ff0bf;
}

.cal-task-bar.stuck.end-marker {
    color: #ffb3ad;
}

.cal-task-bar.working.end-marker {
    color: #ffd98a;
}

.cal-task-bar.agency.end-marker {
    color: #c7d4ff;
}

.cal-task-bar.range-marker {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.calendar-footer-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Chart View Enhanced Styling */
.chart-card {
    background: #1c2128;
    border: 1px solid #2b313a;
    border-radius: 8px;
    padding: 24px;
    max-width: 600px;
    margin: 20px 0;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.chart-main-body {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr 30px;
    gap: 10px;
    position: relative;
    height: 300px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-bottom: 20px;
}

.chart-grid-area {
    position: relative;
    border-left: 1px solid #3d4450;
    border-bottom: 1px solid #3d4450;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-grid-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.chart-bars-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 20px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 60px;
}

.bar {
    width: 40px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: opacity 0.2s;
    display: flex;
    justify-content: center;
}

.bar span {
    position: absolute;
    top: -20px;
    font-size: 0.8rem;
    color: var(--text-white);
}

.bar.working {
    background: #fdab3d;
}

.bar.stuck {
    background: #f96057;
}

.bar.done {
    background: #00c875;
}

.bar.agency {
    background: #579bfc;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.chart-x-axis-title {
    grid-column: 1 / 3;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* =========================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================= */

/* Tablets and smaller */
@media screen and (max-width: 1024px) {
    .dashboard-nav {
        height: 60px !important;
        background: rgba(26, 32, 44, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1100 !important;
    }

    .dashboard-sidebar {
        position: fixed !important;
        left: -320px;
        top: 60px;
        bottom: 0;
        height: calc(100vh - 60px);
        width: 280px;
        max-width: 85vw;
        background: rgba(26, 32, 44, 0.98);
        z-index: 1050;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Accordion Dropdowns on Mobile Sidebar */
    .sidebar-item#recentsToggle,
    .sidebar-item#moreToggle {
        flex-wrap: wrap !important;
    }

    .recents-dropdown,
    .more-dropdown {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin-top: 12px !important;
        margin-left: 0 !important;
        background: rgba(0, 0, 0, 0.2) !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        transform: none !important;
    }

    .dashboard-sidebar.show-sidebar {
        left: 0 !important;
    }

    .dashboard-main {
        padding: 16px;
    }

    .nav-plans-btn {
        display: none;
    }

    .dashboard-grid,
    .integrate-grid,
    .automation-grid,
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-box {
        padding: 40px 30px;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {

    /* Login Page Fixes */
    .login-container {
        flex-direction: column;
    }

    .login-right {
        display: none;
        /* Hide preview image on mobile */
    }

    .login-left {
        padding: 0;
        justify-content: flex-start;
        background: transparent;
    }

    .login-box {
        padding: 40px 24px;
        border: none;
        background: transparent;
        box-shadow: none;
        width: 100%;
        margin-top: 5vh;
    }

    /* Dashboard Header */
    .nav-right .nav-icon-item:not(.inbox-item) {
        display: none;
    }

    /* Force Sidebar Items Vertical */
    .sidebar-section,
    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .sidebar-item,
    .workspace-selector {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
    }

    .nav-divider {
        display: none;
    }

    .nav-left {
        gap: 8px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-text .sub-text {
        display: none;
    }

    .dashboard-nav {
        padding: 0 8px;
    }

    /* Main Dashboard Layout */
    .dashboard-main {
        padding: 10px;
    }

    .maintable-page,
    .kanban-page,
    .recents-page,
    .more-page,
    .integrate-page,
    .automate-page,
    .invite-page,
    .project-page,
    .sidekicks-page,
    .aisuggestions-page,
    .new-page,
    .buttons-page {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .project-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .project-header,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Grids & Cards */
    .dashboard-grid,
    .integrate-grid,
    .automation-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .chart-main-body {
        grid-template-columns: 30px 1fr;
    }

    .sidekick-bar {
        width: 100%;
        overflow-x: auto;
    }

    .buttons-bar {
        flex-wrap: wrap;
        padding: 12px;
    }

    /* Table & Calendar overrides */
    .table-container {
        margin-bottom: 16px;
        max-width: 100%;
    }

    /* Hide extra horizontal scrollbars natively */
    .project-tabs,
    .sidekick-bar,
    .table-container,
    .dashboard-sidebar,
    body {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
        background-clip: padding-box; /* dummy addition to satisfy lint if it matches background-clip */
    }

    .project-tabs::-webkit-scrollbar,
    .sidekick-bar::-webkit-scrollbar,
    .table-container::-webkit-scrollbar,
    .dashboard-sidebar::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .calendar-days-header div {
        font-size: 0.7rem;
        padding: 5px;
    }

    .cal-cell {
        padding: 4px;
    }

    .project-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        gap: 16px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 90%;
        padding: 24px;
        margin: 20% auto;
        border-radius: 24px;
        background: #1c2128;
    }

    /* Premium Mobile Aesthetics Upgrades */
    .login-page-container {
        background: #0f1420;
    }

    .login-box h1 {
        font-size: 2.2rem;
        background: linear-gradient(135deg, #fff, #9aa8c7);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .login-btn-primary {
        background: linear-gradient(135deg, #6c8aff, #a358d0);
        box-shadow: 0 8px 20px rgba(108, 138, 255, 0.3);
        transform: translateY(0);
        transition: all 0.3s ease;
        border-radius: 16px;
    }

    .login-btn-primary:active {
        transform: translateY(2px);
        box-shadow: 0 4px 10px rgba(108, 138, 255, 0.2);
    }

    .social-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .social-btn {
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dashboard-nav {
        height: 60px;
        background: rgba(26, 32, 44, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0 16px;
    }

    .dashboard-container {
        height: calc(100vh - 60px);
    }

    .project-header h1,
    .project-title {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #ffffff, #9aa8c7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .integration-card,
    .automation-card,
    .reporting-card,
    .settings-card {
        background: linear-gradient(145deg, #262e3d, #1c2128);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-radius: 16px;
    }

    .table-container {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .project-tab {
        font-size: 1rem;
        padding-bottom: 8px;
    }

    /* Mobile Toolbar & Header Refinements */
    .project-header-top,
    .project-toolbar-unified,
    .chart-toolbar-enhanced,
    .calendar-toolbar-enhanced {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        height: auto !important;
    }

    .header-right,
    .toolbar-left,
    .toolbar-right {
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .header-right::-webkit-scrollbar,
    .toolbar-left::-webkit-scrollbar,
    .toolbar-right::-webkit-scrollbar {
        display: none;
    }

    .header-utility-btns {
        display: flex;
        flex-wrap: nowrap !important;
        width: max-content;
    }

    .toolbar-search-wrapper {
        min-width: 140px;
    }

    /* Premium Modal Pop-up Animation */
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .modal.active .modal-content {
        animation: modalFadeIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    /* Sticky Task Title Column on Mobile */
    .col-item {
        position: sticky;
        left: 0;
        background: #1c2128;
        z-index: 10;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
    }

    .group-table-row.header .col-item {
        background: #1e2431;
    }

    .col-checkbox {
        display: none;
        /* Make more room for data on mobile */
    }

    /* Kanban Views Refined */
    .kanban-columns {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .kanban-columns::-webkit-scrollbar {
        display: none;
    }

    .kanban-col {
        min-width: 85vw !important;
        scroll-snap-align: center;
        background: #1c2128 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Calendar Views Refined */
    .calendar-grid-enhanced {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border: none;
    }

    .calendar-grid-enhanced::-webkit-scrollbar {
        display: none;
    }

    .calendar-days-header,
    .calendar-main-grid {
        min-width: 500px;
    }

    /* Dashboard & Reporting Page Overflow Fixes */
    .reporting-toolbar,
    .reporting-header .header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
    }

    .toolbar-search-wrapper,
    .btn-add-widget,
    .btn-connect-boards,
    .btn-invite {
        flex-grow: 1;
    }

    .dashboard-reporting-container {
        overflow-x: hidden;
        padding: 12px;
    }

    /* Main Table Upgrades for Mobile */
    .group-table {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-radius: 12px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        /* Outer boundary ring */
    }

    .group-table::-webkit-scrollbar {
        display: none;
    }

    .group-table-row {
        min-width: 750px;
        /* Forces layout to breathe and become a swipeable view */
        padding: 4px 0;
    }

    /* Calendar Visual Enhancements */
    .calendar-grid-enhanced {
        background: #1c2128;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        padding: 8px;
    }

    .calendar-days-header,
    .calendar-main-grid {
        min-width: 650px;
        /* Big enough so squares look proper */
    }

    .cal-cell {
        min-height: 90px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }

    .cal-task-bar {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 4px;
        margin-top: 4px;
    }

    /* Chart Component Scaling */
    .chart-card {
        padding: 16px !important;
        border-radius: 16px;
    }

    .chart-main-body {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .chart-main-body::-webkit-scrollbar {
        display: none;
    }

    .chart-grid-area {
        min-width: 450px;
        padding-bottom: 40px;
        margin-top: 10px;
    }

    .chart-bar-group .bar-label {
        font-size: 0.70rem;
        position: absolute;
        bottom: -35px;
        transform: rotate(-45deg);
        transform-origin: left top;
        white-space: nowrap;
        color: var(--text-muted);
    }

    .chart-y-axis {
        font-size: 0.70rem;
        padding-right: 12px;
    }
}

/* Mobile menu toggle button */
.mobile-menu-btn {
    display: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-btn:hover {
    background: #2b3446;
    color: white;
}

@media screen and (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Overlay for sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}
