/* Operativní plánovač - Modern UI/UX Styles */

:root {
    /* Modern color palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: #eef2ff;

    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --secondary-bg: #ecfdf5;

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    --danger-bg: #fef2f2;

    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    --warning-bg: #fffbeb;

    --info: #3b82f6;
    --info-light: #60a5fa;
    --info-bg: #eff6ff;

    /* Neutrals */
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --bg: #f8fafc;

    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Shadows - more subtle and modern */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Focus ring */
    --ring-color: rgba(99, 102, 241, 0.5);
    --ring: 0 0 0 3px var(--ring-color);

    /* Border radius - slightly more rounded */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    --header-height: 56px;
    --tab-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}
.screen.active { display: block; }

/* Login - Modern Design */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: loginPulse 15s ease-in-out infinite;
}

@keyframes loginPulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25%, 25%); }
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.logo-icon:hover {
    transform: scale(1.05);
}

.login-logo h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-logo p {
    opacity: 0.8;
    margin-top: var(--space-2);
    font-size: 14px;
}

.login-form {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.login-form h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-5);
    text-align: center;
    color: var(--text-primary);
}

.login-hint {
    text-align: center;
    margin-top: 16px;
    color: var(--gray);
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 0 8px;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.app-header h1 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    margin-left: 8px;
}

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

/* Tab Navigation */
.tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--white);
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.tab.active {
    color: var(--primary);
}

.tab svg { opacity: 0.6; }
.tab.active svg { opacity: 1; }

/* Badge */
.badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--tab-height) + var(--safe-area-bottom) + 16px);
    min-height: 100vh;
}

.view {
    display: none;
    padding: 16px;
}
.view.active { display: block; }

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: var(--ring);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3);
}

/* Secondary/Success Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
    background: var(--secondary-dark);
    transform: translateY(0);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--danger-light) 0%, var(--danger) 100%);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-danger:active:not(:disabled) {
    background: var(--danger-dark);
    transform: translateY(0);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--warning-light) 0%, var(--warning) 100%);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover:not(:disabled) {
    background: var(--light-gray);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-sm);
}

.btn-outline:active:not(:disabled) {
    background: var(--gray-200);
}

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

.btn-ghost:hover:not(:disabled) {
    background: var(--light-gray);
    color: var(--text-primary);
}

.btn-ghost:active:not(:disabled) {
    background: var(--gray-200);
}

/* Button Sizes */
.btn-xs { padding: 6px 10px; font-size: 12px; gap: 4px; }
.btn-sm { padding: 8px 14px; font-size: 13px; gap: 6px; }
.btn-lg { padding: 14px 24px; font-size: 16px; gap: 10px; }
.btn-block { width: 100%; }

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.btn-icon:active {
    background: var(--gray-200);
}

.btn-icon:focus {
    outline: none;
    box-shadow: var(--ring);
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

/* Chips / Tags - Modern Design */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.chip:hover {
    background: var(--light-gray);
    border-color: var(--gray-300);
}

.chip.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active:hover {
    background: var(--primary);
    color: var(--white);
}

.chip-group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Tags with colors */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.tag-primary { background: var(--primary-bg); color: var(--primary-dark); }
.tag-secondary { background: var(--secondary-bg); color: var(--secondary-dark); }
.tag-danger { background: var(--danger-bg); color: var(--danger-dark); }
.tag-warning { background: var(--warning-bg); color: var(--warning-dark); }
.tag-info { background: var(--info-bg); color: var(--info); }

/* Period Tabs */
.period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-size: 13px;
}

.stat-item .stat-value {
    font-weight: 600;
    font-size: 16px;
}

.stat-item.danger .stat-value { color: var(--danger); }
.stat-item.warning .stat-value { color: var(--warning); }
.stat-item.success .stat-value { color: var(--secondary); }

/* Block Cards */
/* Card System - Modern Design */
.block-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.block-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    position: relative;
    touch-action: pan-y;
    transition: all var(--transition);
}

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

.block-card.swiping {
    transition: none;
}

.block-card .block-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.block-card .block-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
}

.block-card .block-client {
    color: var(--text-secondary);
    font-weight: 500;
}

.block-card .block-priority {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Priority badges - modern colors */
.priority-urgent { background: var(--danger-bg); color: var(--danger-dark); }
.priority-high { background: var(--danger-bg); color: var(--danger-dark); }
.priority-medium { background: var(--warning-bg); color: var(--warning-dark); }
.priority-low { background: var(--secondary-bg); color: var(--secondary-dark); }

.block-card .block-status {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    background: var(--light-gray);
    color: var(--text-secondary);
}

.status-done {
    background: var(--secondary-bg);
    color: var(--secondary-dark);
}
.status-inprogress {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.status-blocked {
    background: var(--danger-bg);
    color: var(--danger-dark);
}

.block-card .block-assignees {
    display: flex;
    margin-top: 12px;
    gap: -8px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--white);
}

/* Swipe Actions */
.swipe-action {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
}

.swipe-action-left {
    right: 0;
    background: var(--warning);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.swipe-action-right {
    left: 0;
    background: var(--secondary);
    border-radius: var(--radius) 0 0 var(--radius);
}

/* Calendar */
.calendar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-controls h2 {
    flex: 1;
    text-align: center;
    font-size: 16px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.calendar-grid {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--dark);
    color: var(--white);
}

.calendar-weekday {
    padding: 10px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 60px;
    padding: 4px;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:active { background: var(--light-gray); }
.calendar-day.other-month { background: #fafafa; color: var(--gray); }
.calendar-day.today { background: #e8f4fd; }
.calendar-day.selected { background: var(--primary); color: var(--white); }

.calendar-day-number {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.calendar-day.today .calendar-day-number {
    background: var(--primary);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-dots {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.calendar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.calendar-count {
    font-size: 10px;
    color: var(--gray);
}

/* Day Detail */
.day-detail {
    margin-top: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
}

.day-detail h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

/* Day Timeline (Hourly View) */
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.day-header h3 {
    margin: 0;
}

.day-all-day-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 8px;
}

.day-all-day-label {
    font-size: 11px;
    color: var(--gray);
    width: 50px;
    flex-shrink: 0;
    padding-top: 4px;
}

.day-all-day-blocks {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.day-all-day-block {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    cursor: pointer;
}

.day-timeline {
    position: relative;
    max-height: 500px;
    overflow-y: auto;
}

.day-hours {
    position: relative;
}

.day-hour {
    display: flex;
    align-items: flex-start;
    height: 60px;
    border-top: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background 0.2s;
}

.day-hour:hover {
    background: rgba(52, 152, 219, 0.05);
}

.day-hour.drag-over {
    background: rgba(52, 152, 219, 0.2);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.day-hour-label {
    width: 50px;
    font-size: 11px;
    color: var(--gray);
    padding-top: 4px;
    flex-shrink: 0;
}

.day-hour-slot {
    flex: 1;
    height: 100%;
}

.day-blocks-container {
    position: absolute;
    top: 0;
    left: 50px;
    right: 0;
    pointer-events: none;
}

.day-block {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 6px;
    padding: 4px 8px;
    color: white;
    font-size: 12px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.day-block:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.day-block-time {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.day-block-title {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-block-meta {
    font-size: 10px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Backlog */
.search-bar {
    margin-bottom: 12px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 15px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.backlog-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.backlog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.backlog-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.backlog-item .item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.backlog-item .item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
}

/* Change Requests */
.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

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

.request-card .request-type {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--light-gray);
    border-radius: 4px;
}

.request-card .request-author {
    font-size: 12px;
    color: var(--gray);
}

.request-card .request-content {
    margin-bottom: 12px;
}

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

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.bottom-sheet.active { display: block; }

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.bottom-sheet.active .sheet-backdrop { opacity: 1; }

.sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active .sheet-content { transform: translateY(0); }

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    margin: 12px auto 8px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--light-gray);
}

.sheet-header h3 {
    font-size: 18px;
}

.sheet-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.sheet-body .loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.sheet-body .error {
    text-align: center;
    padding: 40px 20px;
    color: var(--danger);
}

/* Schedule task info header */
.schedule-task-info {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.schedule-task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.schedule-task-project {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Forms - Modern Design */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.form-group label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--light-gray);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Select styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox and Radio styling */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin-right: var(--space-2);
    cursor: pointer;
    accent-color: var(--primary);
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 40px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Form helper text */
.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: var(--space-1);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--danger);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.form-actions .btn { flex: 1; }

/* Inline form */
.form-inline {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
}

.form-inline .form-group {
    margin-bottom: 0;
}

/* Notifications Panel */
.notifications-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - var(--header-height) - 20px);
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    display: none;
    flex-direction: column;
}

.notifications-panel.active { display: flex; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.notification-list {
    overflow-y: auto;
    flex: 1;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
}

.notification-item:active { background: var(--light-gray); }
.notification-item.unread { background: #f0f7ff; }

.notification-item .notif-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.notification-item .notif-message {
    font-size: 13px;
    color: var(--gray);
}

.notification-item .notif-time {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
}

/* Toast Notifications - Modern Design */
.toast {
    position: fixed;
    bottom: calc(var(--tab-height) + var(--safe-area-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 14px 20px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 300;
    opacity: 0;
    transition: all var(--transition-slow);
    font-size: 14px;
    font-weight: 500;
    max-width: calc(100vw - 40px);
}

.toast::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}
.toast.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.toast.error {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
}
.toast.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

.toast.warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
}
.toast.warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E");
}

.toast.info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
}
.toast.info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

/* Sidebar (Desktop) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    color: var(--white);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar.open { transform: translateX(0); }

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-info .user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-info .user-role {
    font-size: 12px;
    opacity: 0.7;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

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

#close-sidebar {
    color: var(--white);
    font-size: 24px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}

/* Drag & Drop */
.draggable {
    cursor: grab;
}

.draggable.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-target.drag-over {
    background: #d4edda !important;
    border: 2px dashed var(--secondary) !important;
}

/* Projects */
.project-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.project-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.project-meta {
    font-size: 12px;
    color: var(--gray);
}

.project-meta span {
    margin-right: 8px;
}

.project-stats {
    padding: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    color: var(--gray);
}

/* Search bar with button */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-bar input {
    flex: 1;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .tab-nav { display: none; }

    .main-content {
        padding-bottom: 20px;
        margin-left: 280px;
    }

    .sidebar {
        transform: translateX(0);
    }

    #close-sidebar,
    #menu-btn { display: none; }

    .app-header {
        left: 280px;
    }

    .view { padding: 24px; }

    .block-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }

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

    .calendar-day { min-height: 100px; }

    .bottom-sheet .sheet-content {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }

    .bottom-sheet.active .sheet-content {
        transform: translateX(-50%) translateY(0);
    }

    .notifications-panel {
        right: 20px;
        border-radius: var(--radius);
    }
}

@media (min-width: 1200px) {
    .calendar-view {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }

    .calendar-view .calendar-controls,
    .calendar-view .view-toggle,
    .calendar-view .calendar-grid {
        grid-column: 1;
    }

    .calendar-view .day-detail {
        grid-column: 2;
        grid-row: 1 / 4;
        margin-top: 0;
        position: sticky;
        top: calc(var(--header-height) + 24px);
        max-height: calc(100vh - var(--header-height) - 48px);
        overflow-y: auto;
    }
}

/* ======================================
   KANBAN BOARD
====================================== */
.kanban-header {
    margin-bottom: 16px;
}

.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 200px);
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    flex: 0 0 280px;
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.kanban-column-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.kanban-count {
    background: var(--gray);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
}

.kanban-cards.drag-over {
    background: rgba(52, 152, 219, 0.1);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
}

.kanban-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 4px solid var(--primary);
}

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

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.kanban-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: var(--gray);
}

.kanban-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--light-gray);
    font-size: 10px;
}

.kanban-card-tag.category {
    background: var(--primary);
    color: white;
}

.kanban-card-tag.project {
    background: var(--secondary);
    color: white;
}

.kanban-card-tag.priority-high {
    background: var(--danger);
    color: white;
}

.kanban-card-tag.priority-low {
    background: var(--gray);
    color: white;
}

.kanban-card-assignees {
    display: flex;
    margin-left: auto;
}

.kanban-card-assignee {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-left: -6px;
    border: 2px solid white;
}

.kanban-card-assignee:first-child {
    margin-left: 0;
}

.kanban-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kanban-card-date.overdue {
    color: var(--danger);
    font-weight: 600;
}

.kanban-add-card {
    margin-top: 8px;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
    text-align: left;
}

.kanban-add-card:hover {
    background: rgba(0,0,0,0.05);
    color: var(--dark);
}

.kanban-empty {
    text-align: center;
    padding: 24px 12px;
    color: var(--gray);
    font-size: 13px;
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.kanban-empty small {
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

/* Kanban on larger screens */
@media (min-width: 768px) {
    .kanban-column {
        flex: 0 0 300px;
    }
}

@media (min-width: 1200px) {
    .kanban-board {
        overflow-x: visible;
    }

    .kanban-column {
        flex: 1;
        min-width: 280px;
    }
}

/* ======================================
   USERS MANAGEMENT - Modern Design
====================================== */
.users-list {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
}

.user-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.user-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-bg);
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.user-info-card {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.user-email {
    font-size: 13px;
    color: var(--text-muted);
}

.user-role {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.user-role.admin {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.user-role.technik {
    background: var(--secondary-bg);
    color: var(--secondary-dark);
}

.user-status {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--secondary);
    box-shadow: 0 0 0 2px var(--white);
}

.user-status.inactive {
    background: var(--gray-400);
}

.user-actions {
    display: flex;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .users-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* ======================================
   SETTINGS - CATEGORIES MANAGEMENT
====================================== */
.settings-container {
    padding: var(--space-4);
    max-width: 800px;
}

.settings-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
}

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
}

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

.categories-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.category-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-color {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-weight: 500;
    color: var(--text-primary);
}

.category-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.category-actions {
    display: flex;
    gap: var(--space-2);
}

/* Color palette picker */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.color-option {
    cursor: pointer;
}

.color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.color-option input:checked + .color-swatch {
    border-color: var(--gray-900);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

/* ============================================
   TRELLO-LIKE REFACTORED STYLES
   ============================================ */

/* My Work Dashboard */
.my-work-header {
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.my-work-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.my-work-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
}

.my-work-stat {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.my-work-stat .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.my-work-stat.overdue .value { color: var(--danger); }
.my-work-stat.today .value { color: var(--warning); }

.my-work-stat .label {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.my-work-sections {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-work-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.my-work-section-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-work-section.overdue .my-work-section-header {
    background: #fde8e8;
    color: var(--danger);
}

.my-work-section-header .count {
    background: var(--dark);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.my-work-task {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.my-work-task:hover {
    background: var(--light-gray);
}

.my-work-task:last-child {
    border-bottom: none;
}

.my-work-task-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.my-work-task-info {
    flex: 1;
    min-width: 0;
}

.my-work-task-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-work-task-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.my-work-task-project {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Project Board Header */
.board-header {
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.board-header select {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.board-project-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.board-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--gray);
    text-align: center;
}

.board-empty-state h3 {
    margin-bottom: 8px;
}

/* Side Drawer for Task Details */
.side-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.side-drawer.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 720px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.side-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.drawer-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.drawer-title-row h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    outline: none;
    word-break: break-word;
}

.drawer-title-row h2:focus {
    background: var(--light-gray);
    border-radius: 4px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.drawer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray);
}

.drawer-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.drawer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.drawer-main {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.drawer-sidebar {
    width: 200px;
    background: var(--light-gray);
    padding: 20px;
    border-left: 1px solid #ddd;
    overflow-y: auto;
    flex-shrink: 0;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section > label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.drawer-section-header label {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.drawer-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.drawer-field select,
.drawer-field input {
    width: 100%;
}

.drawer-section textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

/* Labels in drawer */
.drawer-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.drawer-label .remove {
    cursor: pointer;
    opacity: 0.7;
}

.drawer-label .remove:hover {
    opacity: 1;
}

/* Checklist in drawer */
.drawer-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .checklist-title {
    text-decoration: line-through;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checklist-title {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    outline: none;
}

.checklist-title:focus {
    background: white;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 4px;
}

.checklist-delete {
    opacity: 0;
    cursor: pointer;
    color: var(--danger);
    transition: opacity 0.2s;
}

.checklist-item:hover .checklist-delete {
    opacity: 1;
}

.checklist-progress {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.checklist-progress-bar {
    height: 100%;
    background: var(--secondary);
    transition: width 0.3s;
}

/* Comments in drawer */
.drawer-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

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

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: var(--gray);
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
    background: var(--light-gray);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.drawer-comment-form {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.drawer-comment-form textarea {
    flex: 1;
    min-height: 60px;
    resize: none;
}

/* Drawer sidebar actions */
.drawer-actions {
    margin-bottom: 24px;
}

.drawer-actions h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 12px;
}

.drawer-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.drawer-action-btn:hover {
    background: #dfe6e9;
}

.drawer-action-btn.danger {
    color: var(--danger);
}

.drawer-watchers h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 12px;
}

.watcher-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.watcher-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

/* Updated Kanban cards for tasks */
.task-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.task-card-title {
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: break-word;
}

.task-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.task-badge.due-soon {
    background: #fff3cd;
    color: #856404;
}

.task-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.task-badge.comments {
    background: var(--light-gray);
}

.task-badge.checklist {
    background: var(--light-gray);
}

.task-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.task-label-dot {
    width: 32px;
    height: 8px;
    border-radius: 4px;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-card-assignee {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 11px;
}

.task-card-priority {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.task-card-priority.urgent {
    background: var(--danger);
    color: white;
}

.task-card-priority.high {
    background: #fff3cd;
    color: #856404;
}

.task-card-priority.medium {
    background: var(--light-gray);
    color: var(--dark);
}

.task-card-priority.low {
    background: #d4edda;
    color: #155724;
}

/* Responsive adjustments for side drawer */
@media (max-width: 768px) {
    .drawer-content {
        max-width: 100%;
    }

    .drawer-sidebar {
        display: none;
    }

    .drawer-body {
        flex-direction: column;
    }

    .drawer-row {
        grid-template-columns: 1fr;
    }

    .my-work-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CALENDAR PLANNING STYLES
   ============================================ */

/* Calendar layout with side panel */
.calendar-layout {
    display: flex;
    height: calc(100vh - var(--header-height) - var(--tab-height) - 20px);
    gap: 0;
    position: relative;
}

.calendar-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-filters {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.calendar-user-select {
    min-width: 200px;
    padding: 8px 12px;
    padding-right: 36px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.calendar-user-select:hover {
    border-color: var(--primary);
}

.calendar-user-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Planning side panel */
.planning-panel {
    width: 280px;
    background: var(--white);
    border-left: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.planning-panel.open {
    transform: translateX(0);
}

.planning-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.planning-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.planning-panel-filters {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
}

.planning-panel-filters select {
    width: 100%;
}

.planning-panel-hint {
    padding: 12px 16px;
    background: #f8f9fa;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.5;
}

.planning-backlog {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Planning task cards (draggable) */
.planning-task {
    display: flex;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.2s;
}

.planning-task-color {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.planning-task-info {
    flex: 1;
    min-width: 0;
}

.planning-task:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.planning-task.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.planning-task-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

.planning-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.planning-task-project {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--light-gray);
}

.planning-task-priority {
    font-weight: 600;
    text-transform: uppercase;
}

.planning-task-priority.urgent { color: var(--danger); }
.planning-task-priority.high { color: var(--warning); }

.planning-task-edit {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    flex-shrink: 0;
    align-self: center;
}

.planning-task:hover .planning-task-edit {
    opacity: 1;
}

.planning-task-edit:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* Calendar grid improvements */
.calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.calendar-grid .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--light-gray);
    flex: 1;
}

.calendar-day {
    background: var(--white);
    min-height: 100px;
    padding: 8px;
    position: relative;
    transition: background 0.2s;
}

.calendar-day.drop-target {
    background: #e3f2fd;
}

.calendar-day.drop-target-multi {
    background: #fff3e0;
}

.calendar-day.drop-target-hours {
    background: #e8f5e9;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-day.today .calendar-day-number {
    background: var(--primary);
    color: white;
}

.calendar-day.other-month {
    background: #fafafa;
}

.calendar-day.other-month .calendar-day-number {
    color: var(--gray);
}

/* Tasks in calendar */
.calendar-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-task {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: white;
    transition: transform 0.1s;
}

.calendar-task:hover {
    transform: scale(1.02);
}

.calendar-task.multi-day-start {
    border-radius: 3px 0 0 3px;
    margin-right: -8px;
}

.calendar-task.multi-day-middle {
    border-radius: 0;
    margin-left: -8px;
    margin-right: -8px;
}

.calendar-task.multi-day-end {
    border-radius: 0 3px 3px 0;
    margin-left: -8px;
}

.calendar-more {
    font-size: 11px;
    color: var(--gray);
    padding: 2px 6px;
    cursor: pointer;
}

.calendar-more:hover {
    color: var(--primary);
}

/* Multi-day selection during drag */
.calendar-day.multi-select {
    background: #fff3e0 !important;
    box-shadow: inset 0 0 0 2px var(--warning);
}

.calendar-day.drag-over {
    background: #e3f2fd !important;
    box-shadow: inset 0 0 0 2px var(--primary);
}

/* ALT mode indicator */
body.alt-mode .calendar-day.drag-over {
    background: #fff3e0 !important;
    box-shadow: inset 0 0 0 2px var(--warning);
}

body.alt-mode::after {
    content: 'ALT: Vícedení mód';
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--warning);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* Day detail view (hourly) */
.day-detail {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
}

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

.day-detail-header h3 {
    font-size: 16px;
}

.day-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hour-slot {
    display: flex;
    min-height: 48px;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s;
}

.hour-slot.drop-target {
    background: #e8f5e9;
}

.hour-label {
    width: 50px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--gray);
    border-right: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.hour-content {
    flex: 1;
    padding: 4px 8px;
    min-height: 40px;
}

.hour-task {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    color: white;
    cursor: pointer;
}

/* Multi-day selection overlay */
.calendar-selection-overlay {
    position: fixed;
    background: rgba(52, 152, 219, 0.2);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 1000;
}

/* Schedule dialog */
.schedule-dialog {
    max-width: 400px;
}

.schedule-dialog .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Responsive */
@media (min-width: 1024px) {
    .planning-panel {
        position: relative;
        transform: translateX(0);
        box-shadow: none;
    }

    .planning-panel:not(.open) {
        display: none;
    }
}

@media (max-width: 768px) {
    .calendar-layout {
        height: auto;
        flex-direction: column;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .calendar-day-number {
        font-size: 12px;
        width: 24px;
        height: 24px;
    }

    .calendar-task {
        font-size: 10px;
        padding: 2px 4px;
    }

    .planning-panel {
        width: 100%;
        max-width: 320px;
    }

    .calendar-filters {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   IDEAS PAGE
   ============================================ */

.ideas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

@media (max-width: 900px) {
    .ideas-container {
        grid-template-columns: 1fr;
    }
}

.ideas-input-section,
.ideas-list-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.ideas-input-section h2,
.ideas-list-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.ideas-hint {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 12px;
}

.ideas-textarea {
    width: 100%;
    min-height: 250px;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.ideas-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.ideas-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.ideas-count {
    color: var(--gray);
    font-size: 13px;
}

.ideas-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ideas-total {
    color: var(--gray);
    font-size: 13px;
}

.ideas-list {
    min-height: 200px;
}

/* Individual idea item */
.idea-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: box-shadow 0.2s, background 0.2s;
    cursor: grab;
}

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

.idea-item.dragging {
    opacity: 0.5;
    background: #f0f8ff;
    cursor: grabbing;
}

.idea-drag-handle {
    color: var(--gray);
    font-size: 14px;
    cursor: grab;
    user-select: none;
    padding: 0 4px;
}

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

.idea-title {
    font-size: 14px;
    word-break: break-word;
}

.idea-edit-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.idea-project {
    font-size: 11px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 10px;
    white-space: nowrap;
}

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

.idea-item:hover .idea-actions {
    opacity: 1;
}

.idea-actions .btn-icon {
    padding: 4px;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.idea-actions .btn-icon:hover {
    background: var(--light-gray);
}

/* Subtask styling */
.idea-subtask {
    border-left: 2px solid var(--primary-bg);
    background: linear-gradient(to right, var(--primary-bg) 0%, transparent 4px);
}

.idea-subtask-indicator {
    color: var(--primary);
    font-size: 14px;
    margin-right: 4px;
    opacity: 0.7;
}

.idea-item[data-depth="1"] {
    border-color: var(--primary);
}

.idea-item[data-depth="2"] {
    border-color: var(--secondary);
}

.idea-item[data-depth="3"] {
    border-color: var(--warning);
}

/* Indent/unindent buttons */
.idea-actions .btn-icon[title*="Odsadit"] {
    font-size: 10px;
    padding: 2px 4px;
}

/* Empty state for ideas */
.ideas-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.ideas-list .loading {
    text-align: center;
    padding: 20px;
    color: var(--gray);
}

/* ============================================
   QUICK USER PICKER MODAL
   ============================================ */

.quick-picker-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: 10000;
    animation: fadeIn 0.15s ease-out;
}

.quick-picker-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 280px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.2s ease-out;
}

.quick-picker-content h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.quick-picker-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.15s ease;
    text-align: left;
}

.quick-picker-option:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-picker-option .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-picker-cancel {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--light);
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    transition: all 0.15s ease;
}

.quick-picker-cancel:hover {
    background: var(--light-gray);
    color: var(--dark);
}

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

/* ============================================
   USER MANAGEMENT
   ============================================ */

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.15s ease;
}

.user-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-card.inactive {
    opacity: 0.6;
    background: var(--light);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.user-card .user-info {
    flex: 1;
    min-width: 0;
}

.user-card .user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 2px;
}

.user-card .user-email {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
}

.user-card .user-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: var(--primary-bg);
    color: var(--primary);
}

.user-role.technik {
    background: var(--secondary-bg);
    color: var(--secondary);
}

.user-inactive {
    font-size: 11px;
    color: var(--danger);
    font-weight: 500;
}

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

/* Responsive adjustments for user cards */
@media (max-width: 600px) {
    .user-card {
        flex-wrap: wrap;
    }

    .user-card .user-actions {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-end;
    }
}
