/* CSS Variables */
:root {
    --navy-primary: #1a2942;
    --navy-dark: #0f1829;
    --navy-light: #2a3f5f;
    --accent-blue: #4a90e2;
    --accent-green: #2ecc71;
    --accent-orange: #f39c12;
    --accent-red: #e74c3c;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(26, 41, 66, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 41, 66, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 41, 66, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

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

/* Active Tracking Bar */
.tracking-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    padding-top: 4px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    background-size: 200% 100%;
    animation: trackingPulse 3s ease-in-out infinite;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

@keyframes trackingPulse {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.95;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

.tracking-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 13px;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.tracking-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.tracking-icon {
    font-size: 14px;
}

.tracking-text {
    font-weight: 400;
}

.tracking-text strong {
    font-weight: 600;
}

.tracking-time {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 4px;
}

.tracking-stop {
    background: rgba(0,0,0,0.25);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tracking-stop:hover {
    background: rgba(0,0,0,0.4);
}

/* Top Bar */
.topbar {
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    height: 56px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 99;
    transition: left 0.3s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px 10px;
    transition: all 0.2s;
}

.topbar-menu-toggle:hover {
    background: var(--bg-white);
    color: var(--navy-primary);
    border-color: var(--accent-blue);
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-primary);
    margin: 0;
}

.topbar-stats {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.topbar-stats-inner {
    display: flex;
    gap: 8px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.stat-chip:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.stat-chip.accent {
    background: rgba(46, 204, 113, 0.15);
}

.stat-chip-icon {
    font-size: 12px;
}

.stat-chip-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-primary);
}

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

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

/* Adjust layout for topbar */
body.has-tracking-bar .topbar {
    top: 44px;
}

body.has-tracking-bar .sidebar {
    top: 44px;
    height: calc(100vh - 44px);
}

body.has-tracking-bar .main-content {
    padding-top: 100px;
}

.topbar.sidebar-collapsed {
    left: 48px;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 48px;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px 6px;
}

.sidebar.collapsed .logo {
    justify-content: center;
}

.sidebar.collapsed .logo-icon {
    font-size: 18px;
}

.sidebar.collapsed .logo span:last-child {
    display: none;
}

.sidebar.collapsed .sidebar-nav {
    padding: 12px 6px;
}

.sidebar.collapsed .nav-item {
    padding: 8px;
    justify-content: center;
}

.sidebar.collapsed .nav-item .nav-text,
.sidebar.collapsed .nav-item .nav-badge {
    display: none !important;
}

.sidebar.collapsed .nav-icon {
    font-size: 16px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 10px 6px;
}

.sidebar.collapsed .btn-settings {
    padding: 8px;
    justify-content: center;
}

.sidebar.collapsed .btn-settings span:last-child {
    display: none;
}

.menu-toggle {
    position: absolute;
    right: -12px;
    top: 16px;
    background: var(--navy-primary);
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 11px;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu-toggle:hover {
    background: var(--navy-light);
}

.sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sidebar-nav {
    flex: 1;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(3px);
}

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

.nav-item.active::before {
    transform: translateX(0);
}

.nav-icon {
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-settings {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding-top: 56px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 48px;
}

.content-wrapper {
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

/* Dashboard Compact Header */
/* Modern Dashboard Header - Light */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.4s ease;
    border: 1px solid var(--border-color);
}

.header-brand {
    flex-shrink: 0;
}

.dashboard-title {
    font-size: 20px;
    color: var(--navy-primary);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-stats {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.stat-chip:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.stat-chip.accent {
    background: rgba(46, 204, 113, 0.15);
}

.stat-chip-icon {
    font-size: 12px;
}

.stat-chip-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-primary);
}

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

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Compact Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    gap: 12px;
}

.filters-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.filter-search {
    position: relative;
    flex: 1;
    max-width: 200px;
}

.filter-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
}

.filter-search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.filter-search input:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.filter-select:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tasks Table */
.tasks-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

.tasks-table thead {
    background: var(--bg-light);
}

.tasks-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.tasks-table tbody tr {
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.tasks-table tbody tr:hover {
    background: var(--bg-light);
}

.tasks-table tbody tr:last-child {
    border-bottom: none;
}

.tasks-table td {
    padding: 8px 10px;
    font-size: 13px;
    vertical-align: middle;
}

.td-client {
    font-weight: 600;
    color: var(--navy-primary);
}

.td-muted {
    color: var(--text-muted);
    font-size: 12px;
}

.td-urgent {
    color: var(--accent-red);
    font-weight: 600;
}

.td-time {
    font-weight: 600;
    color: var(--navy-primary);
    font-size: 12px;
}

.td-actions {
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.todo {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.in-progress,
.status-badge.in_progress {
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent-blue);
}

.status-badge.waiting {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-orange);
}

.status-badge.done {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
}

/* Priority Dots */
.priority-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.priority-dot.high {
    background: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.priority-dot.medium {
    background: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.priority-dot.low {
    background: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Category Tag */
.category-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Timer Button in Table */
.btn-timer {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-timer.start {
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
}

.btn-timer.start:hover {
    background: var(--accent-green);
    color: white;
}

.btn-timer.stop {
    background: var(--accent-red);
    color: white;
    animation: timerBlink 1.5s ease-in-out infinite;
}

/* Table Empty State */
.table-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.table-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-title {
    font-size: 48px;
    color: var(--navy-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
}

.btn-secondary:hover {
    background: var(--navy-primary);
    color: white;
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

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

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

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}

.card-title {
    font-size: 20px;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Old stat cards - kept for other pages if needed */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.stat-card .stat-unit {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card .stat-icon {
    font-size: 48px;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 8px;
    animation: fadeIn 0.8s ease;
    height: calc(100vh - 160px);
    overflow-x: auto;
}

.kanban-column {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    min-width: 200px;
    overflow: hidden;
}

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

.column-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.column-count {
    background: var(--navy-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-track {
    background: transparent;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(26, 41, 66, 0.2);
    border-radius: 3px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 41, 66, 0.3);
}

/* Filters and Controls */
.board-controls {
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.search-box {
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-group select {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: white;
}

.sort-group {
    display: flex;
    gap: 4px;
}

.sort-btn {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover, .sort-btn.active {
    background: var(--navy-primary);
    color: white;
    border-color: var(--navy-primary);
}

/* Task Card - Modern Compact Design */
.task-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(26, 41, 66, 0.06);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.3s ease;
    flex-shrink: 0;
}

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

.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--category-color, var(--accent-blue));
    transition: width 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(26, 41, 66, 0.1);
    transform: translateY(-1px);
    border-color: transparent;
}

.task-card:hover::before {
    width: 5px;
}

.task-card.dragging {
    opacity: 0.6;
    cursor: grabbing;
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 8px 24px rgba(26, 41, 66, 0.15);
}

/* Drag and Drop - Drop Zone Indicator */
.task-list.drag-over {
    background: rgba(74, 144, 226, 0.08);
    border: 2px dashed var(--accent-blue);
    border-radius: var(--radius-md);
}

.task-list.drag-over::before {
    content: 'Přesunout sem';
    display: block;
    text-align: center;
    padding: 12px;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-column.drag-over {
    background: rgba(74, 144, 226, 0.05);
}

.kanban-column.drag-over .column-header {
    background: rgba(74, 144, 226, 0.1);
    border-radius: var(--radius-sm);
}

/* Table row drag */
.task-row.dragging {
    opacity: 0.5;
    background: var(--bg-light);
}

.task-row.drag-over {
    position: relative;
}

.task-row.drag-over::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Card Inner Content */
.task-card-inner {
    padding: 12px 12px 10px 14px;
}

/* Header Row - Priority & Category */
.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.task-priority {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.task-priority.high {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.task-priority.medium {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.task-priority.low {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.task-category {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Client Name - Main focus */
.task-client-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dates Row */
.task-dates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.task-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 3px 0;
}

.task-date .date-icon {
    font-size: 11px;
}

.task-date.deadline {
    color: var(--accent-orange);
}

.task-date.deadline.urgent {
    color: white;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 3px 8px;
    border-radius: 4px;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0); }
}

.task-date.status-change {
    color: var(--accent-blue);
}

/* Footer - Time & Timer */
.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-light);
    border-top: 1px solid rgba(0,0,0,0.04);
    margin: 0 -12px -10px -14px;
    margin-top: 0;
    gap: 8px;
}

.task-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-primary);
}

.task-time-icon {
    font-size: 12px;
}

/* Last Work Date in Footer */
.task-last-work {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    flex: 1;
    justify-content: center;
}

.last-work-label {
    font-weight: 500;
}

.last-work-date {
    font-weight: 600;
    color: #8e44ad;
}

/* Timer Button */
.timer-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-btn.start {
    background: rgba(46, 204, 113, 0.12);
    color: #27ae60;
}

.timer-btn.start:hover {
    background: var(--accent-green);
    color: white;
    transform: scale(1.08);
}

.timer-btn.stop {
    background: var(--accent-red);
    color: white;
    animation: timerBlink 1.5s ease-in-out infinite;
}

.timer-btn.stop:hover {
    background: #c0392b;
    transform: scale(1.08);
}

@keyframes timerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Timer Button */
.timer-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-btn.start {
    background: var(--accent-green);
    color: white;
}

.timer-btn.stop {
    background: var(--accent-red);
    color: white;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 41, 66, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    animation: modalSlideIn 0.3s ease forwards;
}

.modal.modal-large {
    max-width: 1000px;
}

@keyframes modalSlideIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}

.modal-title {
    font-size: 28px;
    color: var(--navy-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--navy-primary);
}

.modal-body {
    margin-bottom: 24px;
}

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

/* Modern Task Detail Modal - Two Column Layout */
.modal-detail-two-col {
    padding: 0;
    max-width: 1000px;
    width: 95vw;
    max-height: 85vh;
    overflow: hidden;
}

.modal-detail-two-col.active {
    display: flex;
}

.detail-sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 20px;
    display: none;
    flex-direction: column;
    position: relative;
}

.modal-detail-two-col.active .detail-sidebar {
    display: flex;
}

.detail-main {
    flex: 1;
    background: var(--bg-white);
    padding: 24px;
    overflow-y: auto;
    overflow-x: visible;
    max-height: 85vh;
    display: none;
}

.modal-detail-two-col.active .detail-main {
    display: block;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    z-index: 10;
}

.detail-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 12px;
}

.sidebar-client-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-right: 40px;
}

.sidebar-row-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-item {
    flex: 1;
    min-width: 100px;
}

.sidebar-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.sidebar-value {
    font-size: 13px;
    font-weight: 500;
}

.sidebar-value.time {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green);
}

.sidebar-value.urgent {
    color: #ff6b6b;
}

.sidebar-value.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-value.clickable:hover {
    opacity: 0.7;
}

.sidebar-row {
    display: flex;
    gap: 16px;
}

.sidebar-half {
    flex: 1;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 16px 0;
}

.sidebar-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-sidebar {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.btn-sidebar:hover {
    background: rgba(255,255,255,0.2);
}

.btn-sidebar.danger {
    color: #ff6b6b;
}

.btn-sidebar.danger:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Sidebar Dropdowns */
.detail-sidebar .detail-dropdown {
    position: relative;
}

.detail-sidebar .detail-dropdown .dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 100;
    display: none;
}

.detail-sidebar .detail-dropdown.open .dropdown-menu {
    display: block;
}

.detail-sidebar .dropdown-item {
    padding: 10px 14px;
    color: var(--navy-primary);
    font-size: 13px;
    cursor: pointer;
}

.detail-sidebar .dropdown-item:hover {
    background: var(--bg-light);
}

.detail-category {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-category:hover {
    transform: scale(1.05);
}

.detail-priority {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-priority:hover {
    transform: scale(1.05);
}

.detail-priority.high { color: #ff6b6b; }
.detail-priority.medium { color: #feca57; }
.detail-priority.low { color: #5ff5b0; }

.detail-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-status:hover {
    transform: scale(1.05);
}

/* Main Content */
.detail-description {
    background: var(--bg-light);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-detail-two-col {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .detail-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .detail-main {
        max-height: 50vh;
    }
    
    .sidebar-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-sidebar {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

/* Subtasks Section - Modern */
.subtasks-section {
    margin-top: 0;
}

.subtasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.subtasks-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-primary);
    margin: 0;
}

.subtasks-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subtask-card.done {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.2);
}

.subtask-card.done .subtask-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.subtask-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    background: var(--bg-light);
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.subtask-card.done .subtask-checkbox {
    background: var(--accent-green);
    color: white;
}

.subtask-card.in_progress .subtask-checkbox {
    background: var(--accent-blue);
    color: white;
}

.subtask-checkbox:hover {
    transform: scale(1.1);
}

.subtask-body {
    flex: 1;
    min-width: 0;
}

.subtask-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.subtask-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.subtask-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
}

.subtask-deadline {
    color: var(--accent-orange);
}

.subtask-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.subtask-card:hover .subtask-actions {
    opacity: 1;
}

.subtask-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.subtask-btn:hover {
    background: var(--navy-primary);
    color: white;
}

.subtask-btn.danger:hover {
    background: var(--accent-red);
}

.subtasks-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.add-subtask-form {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-subtask-row {
    display: flex;
    gap: 10px;
}

.add-subtask-row .form-control {
    flex: 1;
}

.add-subtask-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Detail Dropdown Menu */
.detail-dropdown {
    position: relative;
    display: inline-block;
}

.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.clickable:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 100;
    display: none;
    overflow: hidden;
    margin-top: 4px;
}

.detail-dropdown.open .dropdown-menu {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

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

.dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--navy-primary);
    transition: background 0.15s;
}

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

/* Time Entries Modal */
.time-entries-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.2s ease;
}

.time-entries-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.time-entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--navy-primary);
    color: white;
}

.time-entries-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

.time-entries-list {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.time-entry-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.time-entry-date {
    font-weight: 600;
    color: var(--navy-primary);
    min-width: 90px;
}

.time-entry-time {
    flex: 1;
    color: var(--text-muted);
    font-size: 13px;
}

.time-entry-duration {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 14px;
}

.time-entries-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Simple Checks */
.simple-checks-section {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.simple-checks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.simple-checks-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-primary);
    margin: 0;
}

.simple-checks-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-white);
    padding: 2px 8px;
    border-radius: 10px;
}

.simple-checks-add {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.simple-checks-add input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.simple-checks-add .btn {
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
}

.simple-checks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.simple-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-white);
    border-radius: 6px;
    transition: all 0.2s;
}

.simple-check-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.simple-check-item.done {
    opacity: 0.6;
}

.simple-check-item.done .simple-check-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.simple-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.simple-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.simple-check-text {
    font-size: 13px;
    color: var(--navy-primary);
}

.simple-check-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0;
    transition: all 0.2s;
}

.simple-check-item:hover .simple-check-delete {
    opacity: 1;
}

.simple-check-delete:hover {
    color: var(--accent-red);
}

.simple-checks-empty {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Subtask Card Layout */
.subtask-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Subtasks Table */
.subtasks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.subtasks-table thead {
    background: var(--bg-light);
}

.subtasks-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.subtasks-table td {
    padding: 12px;
    vertical-align: middle;
    background: var(--bg-white);
}

.subtask-row td {
    border-bottom: 3px solid var(--bg-light);
}

.subtask-row:hover td {
    background: var(--bg-light);
}

.subtask-row.done td {
    background: rgba(46, 204, 113, 0.05);
}

.subtask-row.done .subtask-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.td-status {
    width: 140px;
}

.subtask-title-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subtask-title-cell .subtask-title {
    font-weight: 500;
    color: var(--navy-primary);
}

.subtask-title-cell .subtask-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badge Dynamic */
.status-badge-dynamic {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.status-badge-dynamic:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Subtask Status Dropdown */
.subtask-status-dropdown {
    position: relative;
    display: inline-block;
}

.subtask-status-dropdown.open {
    z-index: 99999;
}

.subtask-status-dropdown .status-badge {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.subtask-status-dropdown .status-badge:hover {
    transform: scale(1.05);
}

.subtask-status-dropdown .dropdown-menu {
    display: none;
    position: fixed;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999999;
    padding: 4px 0;
    border: 1px solid var(--border-color);
}

.subtask-status-dropdown.open .dropdown-menu {
    display: block;
    animation: slideDown 0.15s ease;
}

/* Ensure dropdown is not clipped by table cells */
.subtask-row td {
    overflow: visible !important;
}

.subtasks-table {
    overflow: visible !important;
}

.td-status {
    overflow: visible !important;
    position: relative;
}

.subtasks-section {
    overflow: visible !important;
}

/* Make sure modal content allows dropdown overflow */
.modal-detail-two-col .detail-main {
    overflow: visible;
}

.modal-detail-two-col.active .detail-main {
    overflow: visible;
    overflow-y: auto;
}

.subtask-status-dropdown .dropdown-menu.dropdown-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.subtask-status-dropdown .dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    white-space: nowrap;
}

.subtask-status-dropdown .dropdown-item:hover {
    background: var(--bg-light);
}

/* Subtask Checks Badge */
.subtask-checks-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.subtask-checks-badge:hover {
    background: var(--accent-blue);
    color: white;
}

.subtask-checks-badge.complete {
    background: rgba(46, 204, 113, 0.15);
    color: var(--accent-green);
}

/* Subtask Checklist Row */
.subtask-checklist-row td {
    padding: 0 !important;
    background: var(--bg-light);
}

.subtask-checklist-content {
    padding: 12px 16px;
    border-top: 1px dashed var(--border-color);
}

.subtask-checklist-add {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.subtask-checklist-add input {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
}

.subtask-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Table cell styling */
.subtasks-table .td-urgent {
    color: var(--accent-red);
    font-weight: 500;
}

.subtasks-table .td-muted {
    color: var(--text-muted);
}

.subtasks-table .td-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.subtask-row:hover .td-actions {
    opacity: 1;
}

.subtask-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.subtask-check-item.done {
    opacity: 0.6;
}

.subtask-check-item.done .subtask-check-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.subtask-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.subtask-check-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.subtask-check-text {
    font-size: 12px;
    color: var(--navy-primary);
}

.subtask-check-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    opacity: 0;
    transition: all 0.2s;
}

.subtask-check-item:hover .subtask-check-delete {
    opacity: 1;
}

.subtask-check-delete:hover {
    color: var(--accent-red);
}

.subtask-checks-empty {
    text-align: center;
    padding: 8px;
    color: var(--text-muted);
    font-size: 11px;
}

.subtask-checks-count {
    font-size: 11px;
    color: var(--accent-green);
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Tables */
.table-container {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--navy-primary);
    color: white;
}

.table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Sub-tasks / Checklist */
.subtasks-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--bg-light);
}

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

.subtasks-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.subtasks-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy-primary);
}

.subtask-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: start;
    transition: all 0.3s ease;
}

.subtask-item:hover {
    box-shadow: var(--shadow-sm);
}

.subtask-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.subtask-status.todo {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
}

.subtask-status.in_progress {
    background: rgba(243, 156, 18, 0.1);
    color: var(--accent-orange);
}

.subtask-status.done {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
}

.subtask-content {
    flex: 1;
}

.subtask-title {
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.subtask-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.subtask-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.subtask-actions {
    display: flex;
    gap: 8px;
}

.subtask-actions .btn-icon {
    padding: 6px;
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.add-subtask-form {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
}

.add-subtask-form .form-group {
    margin-bottom: 12px;
}

.add-subtask-form .btn {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .kanban-board {
        height: auto;
    }
    
    .kanban-column {
        min-width: 180px;
    }
    
    .tasks-table th:nth-child(6),
    .tasks-table td:nth-child(6) {
        display: none;
    }
    
    .topbar-stats {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile: Sidebar completely hidden */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-top: 56px;
    }
    
    .topbar {
        left: 0;
    }
    
    .topbar-menu-toggle {
        display: block;
    }
    
    .topbar-stats {
        display: none;
    }
    
    .modal-overlay.sidebar-open {
        display: block;
        opacity: 0.5;
        z-index: 99;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stat-chip {
        padding: 4px 8px;
    }
    
    .stat-chip-label {
        display: none;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .filters-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .filters-left {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .filter-search {
        width: 100%;
        max-width: none;
    }
    
    .filter-search input {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: 0;
    }
    
    .filters-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Table adjustments */
    .tasks-table th:nth-child(5),
    .tasks-table td:nth-child(5),
    .tasks-table th:nth-child(7),
    .tasks-table td:nth-child(7) {
        display: none;
    }
    
    .tracking-bar-content {
        font-size: 12px;
        gap: 8px;
    }
    
    .tracking-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .tasks-table th:nth-child(3),
    .tasks-table td:nth-child(3),
    .tasks-table th:nth-child(4),
    .tasks-table td:nth-child(4) {
        display: none;
    }
    
    .header-stats {
        gap: 4px;
    }
    
    .stat-chip {
        padding: 4px 6px;
        font-size: 12px;
    }
}

/* Custom Dialog */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.15s ease;
}

.custom-dialog-overlay.active {
    display: flex;
}

.custom-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.custom-dialog.active {
    display: block;
    animation: dialogSlideIn 0.2s ease;
}

@keyframes dialogSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.custom-dialog-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.custom-dialog-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 12px;
}

.custom-dialog-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.custom-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-dialog-buttons .btn {
    min-width: 100px;
    padding: 10px 20px;
}

/* Dialog button variants */
.custom-dialog-buttons .btn-danger {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.custom-dialog-buttons .btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.custom-dialog-buttons .btn-warning {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.custom-dialog-buttons .btn-warning:hover {
    background: #d68910;
    border-color: #d68910;
}

/* ==================== USER MENU & NOTIFICATIONS ==================== */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s;
}

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

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.topbar-notifications,
.topbar-user {
    position: relative;
}

.notifications-dropdown,
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-height: 400px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.topbar-notifications.open .notifications-dropdown,
.topbar-user.open .user-dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--navy-primary);
}

.notifications-header button {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 12px;
    cursor: pointer;
}

.notifications-list {
    max-height: 340px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.read {
    opacity: 0.6;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* User Menu */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--navy-primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: var(--navy-primary);
    font-size: 14px;
}

.user-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.topbar-user.open .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    min-width: 200px;
    padding: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--navy-primary);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.user-dropdown-item:hover {
    background: var(--bg-light);
}

.user-dropdown-item.logout {
    color: var(--accent-red);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ==================== ADMIN STYLES ==================== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--navy-primary);
}

.admin-tab.active {
    background: var(--bg-white);
    color: var(--navy-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

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

.users-table th {
    font-weight: 600;
    color: var(--navy-primary);
    background: var(--bg-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tr:hover {
    background: var(--bg-light);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell .user-avatar {
    width: 36px;
    height: 36px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .name {
    font-weight: 600;
    color: var(--navy-primary);
}

.user-info .username {
    font-size: 12px;
    color: var(--text-muted);
}

.user-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.user-status-badge.active {
    background: #e8f5e9;
    color: #27ae60;
}

.user-status-badge.inactive {
    background: #fdeaea;
    color: #c0392b;
}

.user-status-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

/* ==================== PROFILE STYLES ==================== */

.profile-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 600px;
}

.profile-header {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    padding: 40px;
    text-align: center;
    color: white;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.profile-role {
    opacity: 0.9;
    font-size: 14px;
}

.profile-body {
    padding: 30px 40px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.profile-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.profile-field input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-upload-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--navy-primary);
    transition: all 0.2s;
}

.avatar-upload-btn:hover {
    border-color: var(--accent-blue);
    background: #f0f7ff;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .user-name,
    .user-arrow {
        display: none;
    }
    
    .notifications-dropdown,
    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 60vh;
    }
    
    .topbar-right {
        gap: 4px;
    }
}

/* Owner Badge */
.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--navy-primary);
    font-weight: 500;
}

.owner-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* ==================== PROJECT TABS ==================== */

/* Dashboard Toolbar - Unified */
.dashboard-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toolbar-add-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    background: transparent;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-add-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.dashboard-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-primary);
    cursor: pointer;
    min-width: 140px;
}

.dashboard-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.toolbar-filters .filter-search {
    flex: 0 1 180px;
    min-width: 120px;
}

.toolbar-filters .filter-select {
    flex: 0 1 140px;
    min-width: 100px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

/* Legacy project-tabs - keep for compatibility */
.project-tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-tabs-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.project-tabs-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.project-tabs-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.project-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.project-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.project-tab:hover {
    border-color: var(--accent-blue);
    color: var(--navy-primary);
}

.project-tab.active {
    background: var(--navy-primary);
    border-color: var(--navy-primary);
    color: white;
}

.project-tab.system-tab {
    background: var(--bg-light);
}

.project-tab.system-tab.active {
    background: var(--navy-primary);
}

.project-tab-icon {
    font-size: 12px;
}

.project-shared-badge {
    font-size: 9px;
    opacity: 0.7;
}

.project-add-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    background: transparent;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.project-add-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--bg-light);
}

/* Task assignee badge */
.task-assignee-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--navy-primary));
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Detail assignee */
.detail-assignee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--navy-primary);
}

.detail-assignee.clickable:hover {
    background: var(--accent-blue);
    color: white;
}

.sidebar-item.full-width {
    grid-column: 1 / -1;
}

/* ==================== PROJECT MEMBERS ==================== */

.members-section {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.member-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.member-checkbox:hover {
    background: var(--accent-blue-light);
}

.member-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

.member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--navy-primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.member-name {
    font-size: 14px;
    color: var(--navy-primary);
}

/* Project tab wrapper for edit button */
.project-tab-wrapper {
    position: relative;
    display: inline-flex;
}

.project-edit-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-tab-wrapper:hover .project-edit-btn {
    opacity: 1;
}

.project-edit-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Assignee badge in overview table */
.assignee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--navy-primary);
}

.assignee-initial {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--navy-primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* ==================== NOTIFICATION IMPROVEMENTS ==================== */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    position: relative;
}

.notification-item.unread {
    background: linear-gradient(90deg, var(--accent-blue-light) 0%, var(--bg-white) 100%);
    border-left: 3px solid var(--accent-blue);
}

.notification-item.read {
    opacity: 0.6;
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-content {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.notification-mark-read {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    background: transparent;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-mark-read:hover {
    background: var(--accent-green);
    color: white;
}

/* ==================== TWO TASK TYPES ==================== */

/* Accent button style */
.btn-accent {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-general {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
}

.btn-general:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Client task modal styling */
.modal-client-task .modal-header {
    background: linear-gradient(135deg, var(--accent-blue), var(--navy-primary));
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
}

.modal-client-task .modal-close {
    color: white;
}

/* Individual task modal styling */
.modal-individual-task .modal-header,
.modal-header-accent {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
}

.modal-individual-task .modal-close {
    color: white;
}

/* General task modal styling */
.modal-general-task .modal-header,
.modal-header-general {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
}

.modal-general-task .modal-close {
    color: white;
}

/* Task card type indicator */
.task-card.individual-task {
    border-left: 3px solid #9b59b6;
}

.task-card.client-task {
    border-left: 3px solid var(--accent-blue);
}

.task-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.task-type-badge.individual {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.task-type-badge.client {
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-blue);
}

/* Task type indicator in detail */
.task-type-indicator {
    display: inline-block;
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.task-type-indicator.individual {
    filter: hue-rotate(270deg);
}

.sidebar-section {
    display: flex;
    align-items: center;
}

.sidebar-section .sidebar-client-name {
    margin: 0;
}

/* ==================== INBOX PAGE ==================== */

.inbox-container {
    max-width: 800px;
    margin: 0 auto;
}

.inbox-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.inbox-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.inbox-tab:hover {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.inbox-tab.active {
    background: var(--accent-blue);
    color: white;
}

.tab-badge {
    background: var(--accent-red);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.inbox-tab.active .tab-badge {
    background: white;
    color: var(--accent-blue);
}

.inbox-filters {
    margin-bottom: 16px;
}

.inbox-filters .filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.inbox-item.unread {
    background: linear-gradient(90deg, var(--accent-blue-light) 0%, var(--bg-white) 100%);
    border-left: 4px solid var(--accent-blue);
}

.inbox-item.read {
    opacity: 0.7;
}

.inbox-item:hover {
    box-shadow: var(--shadow-md);
}

.inbox-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.inbox-item-content {
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.inbox-item-title {
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 4px;
}

.inbox-item-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.inbox-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.inbox-item-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    background: transparent;
    color: var(--accent-green);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.inbox-item-action:hover {
    background: var(--accent-green);
    color: white;
}

.inbox-date-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.inbox-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.inbox-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* ==================== GENERAL TASKS PAGE ==================== */

.general-tasks-container {
    max-width: 1000px;
    margin: 0 auto;
}

.general-tasks-info {
    background: linear-gradient(135deg, #f39c1210, #e67e2210);
    border: 1px solid #f39c1240;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #b36800;
}

.general-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.general-task-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #f39c12;
    transition: all 0.2s;
}

.general-task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.general-task-card.running {
    border-left-color: var(--accent-green);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2); }
}

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

.general-task-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-primary);
    margin: 0;
}

.general-task-actions {
    display: flex;
    gap: 4px;
}

.general-task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.general-task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.general-task-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.general-task-time .time-icon {
    font-size: 16px;
}

.general-task-time .time-value {
    font-weight: 600;
    color: var(--navy-primary);
}

.general-task-buttons {
    display: flex;
    gap: 8px;
}

.btn-general {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
}

.btn-general:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.modal-header-general {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
}

.general-tasks-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.general-tasks-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* Nav badge */
.nav-badge {
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar.collapsed .nav-badge {
    display: none !important;
}

/* Button icon small */
.btn-icon {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* Add time button in task detail */
.btn-add-time {
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.btn-add-time:hover {
    background: var(--accent-blue-light);
    border-color: var(--accent-blue);
}

/* Time entry badge for manual */
.time-entry-manual {
    font-size: 10px;
    background: #f39c1220;
    color: #f39c12;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* ==================== MINI BUTTONS ==================== */

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.btn-mini-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-mini-primary:hover {
    background: #2980b9;
}

.btn-mini-accent {
    background: #9b59b6;
    color: white;
}

.btn-mini-accent:hover {
    background: #8e44ad;
}

.btn-mini-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-mini-secondary:hover {
    background: var(--bg-white);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-mini-general {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-mini-general:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-mini-text {
    display: none;
}

@media (min-width: 1200px) {
    .btn-mini-text {
        display: inline;
    }
}

/* ==================== SCROLLING FIX ==================== */

/* Default: allow scrolling on all pages */
.main-content {
    height: calc(100vh - 56px);
    overflow-y: auto;
}

body.has-tracking-bar .main-content {
    height: calc(100vh - 56px - 48px);
}

.content-wrapper {
    padding: 16px 20px;
}

/* Dashboard specific: no scroll on main, scroll in columns */
.dashboard-view .main-content {
    overflow: hidden;
}

.dashboard-view .content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-board {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    min-height: 0;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.task-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 6px 8px;
    min-height: 0;
}

.filters-bar {
    flex-shrink: 0;
}

/* ==================== INDIVIDUAL TASKS VIEW ==================== */

.individual-tasks-view {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.individual-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.individual-task-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #f39c12;
    transition: all 0.2s;
}

.individual-task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.individual-task-card.running {
    border-left-color: var(--accent-green);
    animation: pulse-border 2s infinite;
}

.individual-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.individual-task-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-primary);
    margin: 0;
}

.individual-task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.individual-task-card:hover .individual-task-actions {
    opacity: 1;
}

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

.individual-task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.individual-task-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.individual-task-time .time-icon {
    font-size: 14px;
}

.individual-task-time .time-value {
    font-weight: 600;
    color: var(--navy-primary);
}

.individual-tasks-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.individual-tasks-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

/* ==================== TASK NOTE ==================== */

.detail-note-section {
    margin-bottom: 20px;
}

.detail-note-header {
    margin-bottom: 8px;
}

.detail-note-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-note-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-white);
}

.detail-note-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.detail-note-textarea::placeholder {
    color: var(--text-muted);
}

/* Task card note preview */
.task-note-preview {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0;
    padding: 6px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    line-height: 1.4;
    border-left: 2px solid var(--border-color);
}

/* Client Edit Inputs */
.sidebar-edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    margin-top: 4px;
    box-sizing: border-box;
}

.sidebar-edit-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255,255,255,0.15);
}

.sidebar-edit-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.btn-sidebar.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.btn-sidebar.success:hover {
    background: rgba(46, 204, 113, 0.3);
}

#clientDetailModal.modal-detail-two-col {
    min-height: 70vh;
}

/* Fix dropdown visibility in modals */

/* Time Entry Edit Styles */
.time-entry-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.time-entry-row:hover {
    background: var(--bg-light);
}

.time-entry-row:last-child {
    border-bottom: none;
}

.time-entry-date {
    min-width: 90px;
    font-weight: 600;
    color: var(--navy-primary);
}

.time-entry-time {
    min-width: 130px;
    color: var(--text-muted);
    font-size: 13px;
}

.time-entry-duration {
    min-width: 70px;
    font-weight: 600;
    color: var(--accent-blue);
}

.time-entry-note {
    flex: 1;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.time-entry-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.time-entry-row:hover .time-entry-actions {
    opacity: 1;
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

.btn-icon-sm.danger:hover {
    background: var(--accent-red);
}

/* Time Entry Edit Modal */
.time-entry-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}

.time-entry-edit-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

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

.time-entry-edit-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy-primary);
}

.time-entry-edit-body {
    padding: 24px;
}

.time-entry-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Time Entries Modal improvements */
.time-entries-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    animation: fadeIn 0.2s ease;
}

.time-entries-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

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

.time-entries-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy-primary);
}

.time-entries-list {
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.time-entries-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Subtasks header with button */
.subtasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.subtasks-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-primary);
    margin: 0;
}

/* Form row for inline inputs */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}
