/*
 * Gantt Project Management - Unified Base Styles
 * Built on Pico CSS with custom theming
 * Mobile-first, iOS-inspired design language
 */

/* ============================================
   CSS VARIABLES - Design Tokens
   Nature Theme: Earthy, Forest, & Water Inspired
   ============================================ */
:root {


    /* Primary Colors - Forest Green */
    --primary: #2d5016;
    --primary-hover: #1f3b0d;
    --primary-light: rgba(45, 80, 22, 0.1);
    --primary-lighter: rgba(45, 80, 22, 0.05);
    
    /* Accent Colors - Nature Palette */
    --forest-dark: #1a3a0d;
    --forest-medium: #2d5016;
    --forest-light: #5a7d42;
    --earth-brown: #6b4423;
    --earth-tan: #a68368;
    --sky-blue: #4a90a4;
    --water-teal: #3a7a8a;
    --leaf-green: #7ab55c;
    --moss-green: #5a7d42;
    --clay-red: #8b5a3c;
    --sand-light: #e8dcc8;
    --rock-gray: #6b6b5f;
    
    /* Accent Gradient */
    --gradient-primary: linear-gradient(135deg, #2d5016 0%, #5a7d42 100%);
    --gradient-success: linear-gradient(135deg, #7ab55c 0%, #5a7d42 100%);
    --gradient-danger: linear-gradient(135deg, #8b5a3c 0%, #6b4423 100%);
    --gradient-info: linear-gradient(135deg, #4a90a4 0%, #3a7a8a 100%);
    --gradient-earth: linear-gradient(135deg, #a68368 0%, #8b5a3c 100%);
    
    /* Status Colors - Nature Inspired */
    --success: #7ab55c;
    --warning: #c87533;
    --danger: #8b5a3c;
    --info: #4a90a4;
    
    /* Neutrals - Warm, Natural Palette */
    --background: #f5f3f0;
    --surface: #fefdfb;
    --surface-elevated: #ffffff;
    --border: #e8dcc8;
    --border-light: #f5f3f0;
    
    /* Text Colors */
    --text-primary: #2b2520;
    --text-secondary: #6b6b5f;
    --text-muted: #a89f95;
    --text-inverse: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(90, 125, 66, 0.95) 100%);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-md) 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

small {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

/* Page Wrapper - Centers content vertically */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper .container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Auth Pages - Centered card layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: var(--space-lg);
}

.auth-container .card {
    max-width: 420px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    width: 100%;
}

.card-sm { padding: var(--space-lg); }
.card-lg { padding: var(--space-2xl); }

.card-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.card-header h1,
.card-header h2 {
    margin-bottom: var(--space-sm);
}

.card-header p {
    color: var(--text-muted);
    margin: 0;
}

.card-body {
    margin-bottom: var(--space-lg);
}

.card-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.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-light);
}

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

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

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

/* Form Help Text */
.form-help {
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Form Row (side by side) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

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

/* Primary Button - Forest Green */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Active state for toggle buttons - Leaf Green */
.btn.active {
    background: linear-gradient(135deg, #7ab55c 0%, #5a7d42 100%);
    box-shadow: 0 2px 8px rgba(122, 181, 92, 0.4);
}

.btn-primary.active {
    background: linear-gradient(135deg, #7ab55c 0%, #5a7d42 100%);
    box-shadow: 0 2px 8px rgba(122, 181, 92, 0.4);
}

/* Secondary Button */
.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-light);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid var(--text-inverse);
}

.btn-outline:hover:not(:disabled) {
    background: var(--text-inverse);
    color: var(--text);
}

/* Danger Button - Clay/Earth Red */
.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(139, 90, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 60, 0.4);
}

/* Success Button - Leaf Green */
.btn-success {
    background: var(--gradient-success);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(122, 181, 92, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 181, 92, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 14px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: var(--space-sm);
}

.btn-group-vertical {
    flex-direction: column;
}

/* ============================================
   GOOGLE SIGN-IN BUTTON
   ============================================ */
.btn-google {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    font-weight: 500;
}

.btn-google:hover {
    background: var(--background);
    border-color: var(--text-muted);
}

.btn-google svg,
.btn-google img {
    width: 18px;
    height: 18px;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    display: none;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #e8f5e1;
    color: #2d5016;
    border: 1px solid #c5e0b4;
}

.alert-error {
    background: #ffe8de;
    color: #6b4423;
    border: 1px solid #f4c4ad;
}

.alert-warning {
    background: #fef3e0;
    color: #c87533;
    border: 1px solid #f5d5c0;
}

.alert-info {
    background: #e0f2f7;
    color: #3a7a8a;
    border: 1px solid #b8dfe8;
}

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-success {
    background: rgba(122, 181, 92, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(200, 117, 51, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(139, 90, 60, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(74, 144, 164, 0.15);
    color: var(--info);
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--background);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(45, 80, 22, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    margin-bottom: var(--space-lg);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
}

.modal-body {
    margin-bottom: var(--space-lg);
}

.modal-footer {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* ============================================
   INFO CARDS (Stats/Profile)
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.info-card {
    background: var(--background);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.info-card-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.info-card-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--space-lg);
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--primary-light);
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 var(--space-md);
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    transition: gap var(--transition-fast);
}

.back-link:hover {
    gap: var(--space-md);
}

.back-link i {
    transition: transform var(--transition-fast);
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */
.password-strength {
    display: flex;
    gap: 4px;
    height: 4px;
    margin-top: var(--space-sm);
}

.strength-bar {
    flex: 1;
    background: var(--border-light);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.strength-bar.weak { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

.strength-text {
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-end { display: flex; justify-content: flex-end; gap: var(--space-sm); }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 24px;
        --space-2xl: 32px;
    }
    
    .card {
        padding: var(--space-lg);
        border-radius: var(--radius-md);
    }
    
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    
    .btn-group {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        flex-shrink: 0;
        padding: 10px 16px;
    }
    
    .modal-content {
        padding: var(--space-lg);
        margin: var(--space-sm);
    }
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--surface);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control:disabled {
    background-color: var(--background);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}

/* ============================================
   ASSIGNED PICKER - GRID INLINE EDITOR
   ============================================ */



.assigned-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: flex-start;
    justify-content: flex-start;
}

/* User Button Style - Nature Theme */
.assigned-picker-user-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    min-width: 70px;
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.assigned-picker-user-btn:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Active/Selected State */
.assigned-picker-user-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.assigned-picker-user-btn.active:hover {
    box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-md);
}

/* Avatar Circle */
.assigned-picker-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.assigned-picker-user-btn:hover .assigned-picker-avatar {
    transform: scale(1.1);
}

.assigned-picker-user-btn.active .assigned-picker-avatar {
    box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Label */
.assigned-picker-label {
    display: block;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

/* Clear Button */
.assigned-picker-clear-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--danger);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    margin-top: var(--space-sm);
}

.assigned-picker-clear-btn:hover {
    background: var(--danger);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.assigned-picker-clear-btn:active {
    transform: translateY(0);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .assigned-picker-editor {
        min-width: 100%;
        max-width: 100%;
    }
    
    .assigned-picker-container {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .assigned-picker-user-btn {
        min-width: 65px;
        padding: var(--space-xs);
    }
    
    .assigned-picker-avatar {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }
}

/* Dropdown variant for grid cells */
.assigned-picker-dropdown {
    animation: slideDown 0.2s ease;
        border-radius: 0 22px 22px 22px;
}

.assigned-avatar-grid {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 600;
    margin-right: -10px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
}

.assigned-column-cell {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    padding: 4px;
}

.assigned-picker-dropdown .assigned-picker-avatar-btn {

    height: 36px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    padding: 0 10px 0 10px;
}

.assigned-picker-dropdown .assigned-picker-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.5);
}

.assigned-picker-dropdown .assigned-picker-avatar-btn.active {
    border-color: white !important;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.15);
    background: inherit !important;
}

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

/* ============================================
   PWA - PROGRESSIVE WEB APP STYLES
   ============================================ */

/* Safe area for notch devices */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        background: inherit;
    }
}

/* Offline mode indicator */
body.offline-mode {
    opacity: 0.95;
    filter: grayscale(0.1);
}

body.offline-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3b30, #ff9500, #ff3b30);
    animation: pulse 2s ease-in-out infinite;
    z-index: 9999;
}

/* PWA Install Button */
#pwa-install-btn {
    display: none;
    gap: var(--space-sm);
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

#pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

#pwa-install-btn:active {
    transform: translateY(0);
}

#pwa-install-btn i {
    font-size: 16px;
}

/* PWA Status Notifications */
.pwa-status-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    animation: slideUp 0.3s ease-out;
}

.pwa-update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
}

.alert-content {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
}

.alert-content p {
    margin: 0;
    flex: 1;
}

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

/* Installed PWA Specific Styles */
@media (display-mode: standalone) {
    /* Hide address bar on mobile */




    /* Remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth;
    }
}

/* iOS PWA Styles */
@supports (padding: env(safe-area-inset-bottom)) {
    .container {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }

    body {
        overflow-x: hidden;
    }
}

/* Prevent iOS Safari from scaling on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent layout shift from scrollbar */
html {
    scrollbar-gutter: stable;
}

/* PWA Print Styles */
@media print {
    body.offline-mode::before {
        display: none;
    }

    .pwa-status-notification,
    .pwa-update-notification,
    #pwa-install-btn {
        display: none !important;
    }
}

/* PWA Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.pwa-installed {
        background: #1c1c1e;
        color: #f5f5f7;
    }

    .offline-container {
        background: #2c2c2e;
        color: #f5f5f7;
    }

    .offline-features,
    .offline-tips {
        background: #3a3a3c;
        border-color: #5e5e60;
    }

    .offline-subtitle {
        color: #a1a1a6;
    }
}

/* Connection Indicator Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body.offline-mode::before {
        animation: none;
    }

    .pwa-status-notification,
    .pwa-update-notification {
        animation: none;
    }
}
