/* JIRA Clone - Main Stylesheet */
/* React-like Performance & Animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /*
    ==============================================
    |   FlowPost UI/UX Redesign Design System    |
    ==============================================
    |   Version: 2.0                             |
    |   Date: 2025-11-23                         |
    ----------------------------------------------
    */

    /* 1. COLOR PALETTE */
    /* Primary & Accent Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6; /* Main Primary */
    --primary-600: #2563eb; /* Main Primary Hover */
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Neutral/Gray Scale */
    --neutral-0: #ffffff;
    --neutral-50: #f8fafc;   /* Lightest BG */
    --neutral-100: #f1f5f9;  /* Light BG */
    --neutral-200: #e2e8f0;  /* Borders */
    --neutral-300: #cbd5e1;  /* Light Borders / UI */
    --neutral-400: #94a3b8;  /* Medium Text / Icons */
    --neutral-500: #64748b;  /* Body Text */
    --neutral-600: #475569;  /* Body Text Hover */
    --neutral-700: #334155;  /* Heading Text */
    --neutral-800: #1e293b;  /* Dark Heading Text */
    --neutral-900: #0f172a;  /* Darkest Text */

    /* Status & Feedback Colors */
    --success-500: #10b981;  /* Green */
    --success-bg: #ecfdf5;
    --warning-500: #f59e0b;  /* Amber */
    --warning-bg: #fffbeb;
    --danger-500: #ef4444;   /* Red */
    --danger-bg: #fef2f2;
    --info-500: #0ea5e9;     /* Sky Blue */
    --info-bg: #f0f9ff;

    /* Brand Specific Colors */
    --brand-indigo: #4f46e5;
    --brand-purple: #8b5cf6;

    /* 2. TYPOGRAPHY */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* 3. SPACING & SIZING */
    --spacing-unit: 4px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 4. SHADOWS (Layered & Soft) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* 5. TRANSITIONS & ANIMATIONS */
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 400ms;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* 6. Z-INDEX */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-toast: 1070;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--neutral-50);
    color: var(--neutral-700);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; /* More readable Inter font features */
}

/* Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--neutral-50);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* Selection */
::selection {
    background: var(--primary-100);
    color: var(--primary-700);
}

/* Focus Styles */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Global Transition */
a, button, input, select, textarea {
    transition: all var(--transition-normal) var(--ease-in-out);
}


/* Login Screen */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Main Application Container */
.main-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--neutral-50);
    transition: filter var(--transition-normal);
}
.main-app.blur {
    filter: blur(4px);
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--neutral-200);
    height: 64px;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-600);
}

.brand-icon-small {
    font-size: 28px;
}

.brand-text {
    font-weight: 700;
    color: var(--neutral-800);
}

.org-badge {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--primary-200);
}

.navbar-datetime {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neutral-500);
    background-color: var(--neutral-100);
    padding: 4px 8px;
    border-radius: var(--radius-md);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--brand-indigo));
    color: var(--neutral-0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--neutral-0);
    box-shadow: var(--shadow-sm);
}

#userName {
    font-weight: 600;
    color: var(--neutral-700);
}

.btn-icon {
    position: relative;
    background: transparent;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--neutral-600);
}

.btn-icon:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    color: var(--neutral-800);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-500);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    border: 2px solid var(--neutral-0);
}

/* Navigation Tabs */
.nav-tabs {
    background: var(--neutral-0);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    gap: 4px;
    padding: 0 24px;
    position: sticky;
    top: 64px; /* Height of navbar */
    z-index: calc(var(--z-sticky) - 1);
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-500);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; /* Overlap the container's border */
    position: relative;
}

.nav-tab:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-tab.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    background: transparent;
}

/* Admin Tab Special Styling */
.nav-tab-admin {
    color: var(--brand-purple) !important;
    font-weight: 700 !important;
}

.nav-tab-admin:hover {
    color: var(--brand-indigo) !important;
    background: var(--indigo-50) !important;
}

.nav-tab-admin.active {
    border-bottom-color: var(--brand-purple) !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--neutral-0);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-200);
}

.stat-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--primary-500);
    background-color: var(--primary-100);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0 0 2px 0;
    line-height: 1;
}

.stat-content p {
    font-size: 14px;
    color: var(--neutral-500);
    margin: 0;
    font-weight: 500;
}

/* View Content Sections */
.view-content {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s var(--ease-in-out);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-content.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--neutral-200);
}

.view-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0;
}

.section-title {
    margin: 32px 0 16px 0;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-700);
    margin: 0;
}

/* Tasks Container */
.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.board-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.board-filters .form-input {
    max-width: 280px;
}

/* Error and Success Messages */
.error-message, .success-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    animation: slideDown 0.3s var(--ease-in-out);
    border: 1px solid;
}

.error-message {
    background-color: var(--danger-bg);
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.success-message {
    background-color: var(--success-bg);
    color: var(--success-500);
    border-color: var(--success-500);
}

.error-message:not(:empty), .success-message:not(:empty) {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-box {
    background: var(--neutral-0);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    animation: slideUpFade 0.5s var(--ease-in-out);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    color: var(--neutral-800);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--neutral-500);
    font-size: 15px;
}

.login-tabs {
    display: flex;
    background: var(--neutral-100);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--neutral-500);
    cursor: pointer;
}

.login-tab.active {
    background: var(--neutral-0);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--neutral-700);
    font-size: 14px;
    line-height: 1.3;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--neutral-0);
    color: var(--neutral-800);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--neutral-400);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--neutral-500);
}

.info-box {
    background: var(--primary-50);
    border-left: 3px solid var(--primary-400);
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-700);
    font-size: 15px;
}

.info-box p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.5;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-600);
    color: var(--neutral-0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    background: var(--primary-800);
}

.btn-secondary {
    background: var(--neutral-0);
    color: var(--neutral-700);
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
    color: var(--neutral-800);
}

.btn-success {
    background: var(--success-500);
    color: var(--neutral-0);
}

.btn-danger {
    background: var(--danger-500);
    color: var(--neutral-0);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    right: 24px;
    width: 380px;
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-popover);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 90px);
    border: 1px solid var(--neutral-200);
    animation: slideDownFade 0.2s var(--ease-in-out);
    transform-origin: top right;
}

.notification-panel.hidden {
    display: none;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--neutral-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--neutral-700);
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-small {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--neutral-500);
    padding: 4px;
    border-radius: var(--radius-md);
}
.btn-icon-small:hover {
    background-color: var(--neutral-200);
    color: var(--neutral-700);
}

.notification-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

/* Main Layout */
.main-content {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 90px; /* Space for fixed navbar */
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 8px;
}

.kanban-column {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.column-header {
    font-weight: 600;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neutral-700);
    border-bottom: 1px solid var(--neutral-200);
}

.task-count {
    font-size: 12px;
    font-weight: 600;
    background-color: var(--neutral-200);
    color: var(--neutral-600);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.column-content {
    flex: 1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px 8px;
}

.column-content.drag-over {
    background-color: var(--primary-50);
}

/* Task Item / Card */
.task-item {
    background: var(--neutral-0);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    position: relative;
    animation: fadeIn 0.2s;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.task-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.task-item.dragging {
    opacity: 0.8;
    transform: rotate(3deg);
    box-shadow: var(--shadow-lg);
    cursor: grabbing;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neutral-500);
    font-weight: 500;
}

.task-title {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 12px 0;
    color: var(--neutral-800);
    line-height: 1.4;
}

.task-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--neutral-100);
}

.badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-priority-low { background-color: var(--success-bg); color: var(--success-500); border-color: var(--success-500); }
.badge-priority-medium { background-color: var(--warning-bg); color: var(--warning-500); border-color: var(--warning-500); }
.badge-priority-high { background-color: var(--danger-bg); color: var(--danger-500); border-color: var(--danger-500); }
.badge-priority-critical { background: var(--danger-500); color: var(--neutral-0); border-color: var(--danger-500); }

.badge-status-todo { background-color: var(--neutral-200); color: var(--neutral-600); border-color: var(--neutral-300); }
.badge-status-inprogress { background-color: var(--info-bg); color: var(--info-500); border-color: var(--info-500); }
.badge-status-done { background-color: var(--success-bg); color: var(--success-500); border-color: var(--success-500); }
.badge-status-blocked { background-color: var(--danger-bg); color: var(--danger-500); border-color: var(--danger-500); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 66, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s var(--ease-in-out);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--neutral-0);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideUpScale 0.3s var(--ease-in-out);
    transform-origin: center;
    margin: 20px;
}

@keyframes slideUpScale {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-large {
    max-width: 980px;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--neutral-50);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0;
    line-height: 1.3;
}

.modal-close {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-500);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    max-height: calc(85vh - 140px);
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-300) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--neutral-50);
    flex-shrink: 0;
    min-height: 60px;
}

.modal form {
    padding: 0; /* Padding is now on modal-body */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--neutral-0);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

/* Project/Sprint Key Badges */
.project-key-badge,
.sprint-id-badge {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 12px;
    border: 1px solid var(--primary-200);
}

.sprint-id-badge {
    background: var(--brand-indigo-50);
    color: var(--brand-indigo);
    border-color: var(--brand-indigo-200);
}

.project-meta,
.sprint-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--neutral-200);
}

.project-meta span,
.sprint-meta span {
    font-size: 13px;
    color: var(--neutral-500);
}

.project-meta strong,
.sprint-meta strong {
    color: var(--neutral-700);
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--neutral-800);
    color: var(--neutral-0);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    width: auto;
    height: auto;
    line-height: 1.4;
    word-wrap: break-word;
    transition: all 0.3s var(--ease-in-out);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success { background: var(--success-500); }
.toast.error { background: var(--danger-500); }
.toast.info { background: var(--info-500); }
.toast.warning { background: var(--warning-500); }

/* Search Bar */
.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 14px;
}
.search-bar input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 3px;
    }

    body {
        -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS */
    }

    .navbar {
        padding: 8px 16px;
        height: auto;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .nav-tabs {
        padding: 0 8px;
        top: 100%; /* Adjust if navbar wraps */
    }
    .nav-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .main-content, .view-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .stat-content h3 {
        font-size: 24px;
    }

    .kanban-board {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: calc(100% - 20px);
        max-height: 85vh;
        margin: 10px;
    }
    .modal-header, .modal-body, .modal-footer {
        padding: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
}

/* Final Polish */
.hidden {
    display: none !important;
}

/* Skeleton Loaders for React-like Loading States */
.skeleton-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s var(--ease-smooth);
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Search Results Styling */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-smooth);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

.search-result-icon {
    font-size: 24px;
    margin-right: 12px;
}

.search-result-content {
    flex: 1;
}

.search-result-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.search-result-content small {
    color: var(--text-medium);
    font-size: 12px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-medium);
}

/* Notification Item Base Style */
.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
    border-left: 4px solid transparent;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f7ff;
    border-left-color: var(--primary-color);
}

.notification-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fafbfc;
}

/* Auto-resize textarea */
.comment-form textarea {
    transition: height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: hidden;
}

/* Mobile optimizations for chat */
@media (max-width: 768px) {
    .comments-container {
        max-height: 250px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .comment-bubble {
        padding: 8px 12px;
        border-radius: 12px;
        max-width: calc(100% - 40px);
        font-size: 13px;
    }
    
    .comment-form {
        padding: 8px;
    }
    
    .comment-input-wrapper {
        border-radius: 16px;
    }
    
    .comment-form textarea {
        min-height: 36px;
        padding: 10px 44px 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 16px;
    }
    
    .btn-send {
        width: 28px;
        height: 28px;
        font-size: 14px;
        right: 4px;
    }
    
    .btn-attachment {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .comment-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin: 0 6px;
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .comment-bubble {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    }
    
    .btn-send:active,
    .btn-attachment:active {
        transform: scale(0.95);
    }
    
    .comment-item {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Smooth message fade-in for new messages */
.comment-item.new-message {
    animation: newMessageSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes newMessageSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* End of styles */

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {

    /* Safe area for iPhone X+ */
    .navbar {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .main-content {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    /* Prevent bounce scroll */
    body {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }

    .main-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100vh - 140px);
    }
}

/* Android specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {

    /* Smooth scrolling for Android */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .main-content {
        scroll-behavior: smooth;
    }
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-board {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
}

.empty-state .btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .empty-state {
        min-height: 300px;
        padding: 40px 15px;
    }

    .empty-icon {
        font-size: 60px;
    }

    .empty-state h3 {
        font-size: 20px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* Drag and Drop Styles */
.task-item {
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.task-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    cursor: grabbing;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.column-content {
    min-height: 100px;
    padding: 8px;
    transition: all 0.2s ease;
}

.column-content.drag-over {
    background-color: rgba(0, 123, 255, 0.1) !important;
    border: 2px dashed var(--primary) !important;
    border-radius: 8px;
}

.task-cards.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 8px;
}

/* WhatsApp-Style Chat Section */
.chat-search-container {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f2f5;
    border-radius: 10px;
}

.chat-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: none;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.chat-search-input:focus {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chat-search-wrapper {
    position: relative;
}

.chat-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
}

.comments-container {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 12px;
    background: #e5ddd5;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.02) 25%, transparent 25%);
    background-size: 20px 20px, 20px 20px, 20px 20px;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
    scroll-behavior: smooth;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: scroll-position;
    position: relative;
}

.comments-container::-webkit-scrollbar {
    width: 4px;
}

.comments-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.comments-container::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.5);
}

.comment-item {
    display: flex;
    margin-bottom: 8px;
    animation: slideInMessage 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: flex-end;
    transform: translateZ(0);
    will-change: transform, opacity;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.comment-item.own-message {
    flex-direction: row-reverse;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    margin: 0 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-content {
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.comment-item.own-message .comment-content {
    align-items: flex-end;
}

.comment-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.12);
    position: relative;
    margin-bottom: 4px;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    backface-visibility: hidden;
    max-width: calc(100% - 60px);
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.comment-bubble:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.comment-item.own-message .comment-bubble {
    background: #dcf8c6;
}

.comment-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.comment-bubble::before {
    left: -6px;
    border-right-color: white;
    border-bottom-color: white;
}

.comment-item.own-message .comment-bubble::before {
    left: auto;
    right: -6px;
    border-left-color: #dcf8c6;
    border-bottom-color: #dcf8c6;
    border-right-color: transparent;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-header strong {
    color: #075e54;
    font-size: 13px;
    font-weight: 600;
}

.comment-time {
    color: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-body {
    color: #303030;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* WhatsApp-Style Attachments */
.comment-attachments-display {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attachment-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    max-width: 100%;
}

.attachment-link:hover {
    background: #e4e7ea;
    transform: translateX(2px);
}

.attachment-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.attachment-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #075e54;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.attachment-rbac-locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.attachment-rbac-locked::after {
    content: '🔒';
    margin-left: 8px;
}

/* WhatsApp-Style Comment Form */
.comment-form {
    margin-top: 0;
    padding: 12px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e6ea 100%);
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-input-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.comment-input-wrapper:focus-within {
    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.15),
        0 2px 6px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* @Mention Dropdown */
.mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 4px;
}

.mention-dropdown.hidden {
    display: none;
}

.mention-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover {
    background-color: #f4f5f7;
}

.mention-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

.mention-item small {
    display: block;
    color: var(--text-medium);
    font-size: 12px;
}

.comment-form textarea {
    width: 100%;
    margin: 0;
    resize: none;
    min-height: 40px;
    max-height: 100px;
    padding: 12px 50px 12px 16px;
    border: none;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
    outline: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.4;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: height;
}

.comment-form textarea::-webkit-scrollbar {
    display: none;
}

.comment-form textarea::placeholder {
    color: #8e8e93;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.comment-form textarea:focus::placeholder {
    opacity: 0.6;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #54656f;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-attachment:hover {
    background: #f0f2f5;
    color: #075e54;
    transform: scale(1.05);
}

.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-send:hover:not(:disabled) {
    background: #20bd5a;
    transform: scale(1.05);
}

.btn-send:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-send:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-send:disabled:hover {
    background: #cccccc;
    transform: none;
}

.comment-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 0;
}

.attachment-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f4f5f7;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.attachment-icon {
    font-size: 18px;
}

.attachment-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dark);
}

.attachment-size {
    color: var(--text-medium);
    font-size: 11px;
}

.btn-remove-attachment {
    background: none;
    border: none;
    color: #de350b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.btn-remove-attachment:hover {
    background: rgba(222, 53, 11, 0.1);
}

.comment-attachments-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

/* Task Detail Modal Content */
.task-detail-content {
    padding: 0;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.task-detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    min-height: 0;
    overflow: visible;
    padding: 20px 24px;
}

.task-detail-main {
    min-width: 0;
    overflow: visible;
}

.task-detail-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: fit-content;
    max-height: 500px;
    overflow-y: auto;
}

.task-detail-section {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--neutral-200);
}

.task-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.task-detail-section h4 {
    color: var(--neutral-800);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-500);
    display: inline-block;
}

.detail-field {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--neutral-0);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-500);
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-200);
}

.detail-field:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
    border-left-color: var(--primary-600);
}

.detail-field label {
    display: block;
    font-size: 11px;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Task Detail Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    flex-shrink: 0;
    margin-top: auto;
}

.modal-actions .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    flex: 1;
    max-width: 150px;
    transition: all 0.2s ease;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    color: var(--neutral-0);
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-actions .btn-danger {
    background: var(--danger-500);
    color: var(--neutral-0);
    border: none;
}

/* Mobile Responsive for Task Detail Modal */
@media (max-width: 768px) {
    .task-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        overflow-y: auto;
        max-height: calc(85vh - 140px);
    }

    .task-detail-main {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .task-detail-sidebar {
        padding: 16px;
        max-height: none;
        order: -1;
        overflow-y: visible;
    }

    .comments-container {
        max-height: 250px;
    }

    .detail-field {
        padding: 10px;
        margin-bottom: 12px;
    }

    .task-detail-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .task-detail-section h4 {
        font-size: 14px;
    }

    .modal-actions {
        padding: 16px;
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
        width: 100%;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
        min-width: auto;
    }
}

/* Task Detail Header */
.modal-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

#taskDetailContent {
    padding: 20px 0;
    max-height: none;
    overflow: visible;
}

#taskDetailContent h3 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

#taskDetailContent p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

/* Task Detail Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    flex-shrink: 0;
}

.modal-actions .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    flex: 1;
    max-width: 150px;
    transition: all 0.2s ease;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    color: var(--neutral-0);
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-actions .btn-danger {
    background: var(--danger-500);
    color: var(--neutral-0);
    border: none;
}

/* Mobile Responsive for Task Detail Modal */
@media (max-width: 768px) {
    .task-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        overflow-y: auto;
        max-height: calc(85vh - 140px);
    }

    .task-detail-main {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .task-detail-sidebar {
        padding: 16px;
        max-height: none;
        order: -1;
        overflow-y: visible;
    }

    .comments-container {
        max-height: 250px;
    }

    .detail-field {
        padding: 10px;
        margin-bottom: 12px;
    }

    .task-detail-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .task-detail-section h4 {
        font-size: 14px;
    }

    .modal-actions {
        padding: 16px;
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
        width: 100%;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* Empty Comments State */
.comments-container:empty::before {
    content: "No comments yet. Be the first to comment!";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--neutral-400);
    font-style: italic;
    font-size: 14px;
}

/* Mobile Responsive for Task Detail Modal */
@media (max-width: 768px) {
    .task-detail-content {
        padding: 0;
    }
    
    .task-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .task-detail-sidebar {
        padding: 16px;
        max-height: none;
        order: -1;
    }

    .comments-container {
        max-height: 250px;
    }

    .detail-field {
        padding: 10px;
        margin-bottom: 12px;
    }

    .task-detail-section {
        margin-bottom: 16px;
        padding: 12px 0;
    }

    .task-detail-section h4 {
        font-size: 14px;
    }

    .modal-actions {
        padding: 16px;
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
        width: 100%;
    }


    /* Notification Prompt - Mobile Responsive */
    .notification-prompt {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .notification-prompt-content {
        min-width: unset;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .notification-prompt-icon {
        font-size: 28px;
    }

    .notification-prompt-text h3 {
        font-size: 15px;
    }

    .notification-prompt-text p {
        font-size: 13px;
    }

    .notification-prompt-actions {
        width: 100%;
        flex-direction: column;
    }

    .notification-prompt-actions button {
        width: 100%;
        padding: 10px 16px;
    }
}

/* ===== TABLET RESPONSIVE (768px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Kanban Board - 2 columns for tablets */
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 8px;
    }

    .kanban-column {
        min-height: 450px;
    }

    .task-item {
        padding: 14px 16px;
    }

    /* Stats Grid - 3 columns */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Tasks Grid - 2 columns */
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Projects Grid - 2 columns */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Modal sizing */
    .modal-content {
        width: 85%;
        max-width: 700px;
    }

    /* Navigation */
    .nav-tab {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ===== PROJECT FILTER HEADER ===== */
.project-filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    animation: slideDown 0.3s ease-out;
}

.project-filter-info {
    flex: 1;
}

.project-filter-info h2 {
    color: white;
    margin: 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.project-filter-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 4px 0 0 0;
    font-size: 14px;
}

.project-filter-header .project-key-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 4px;
}

.project-filter-header .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.project-filter-header .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== TOAST NOTIFICATION - COMPACT ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 280px;
    min-width: 180px;
    width: auto;
    word-wrap: break-word;
    font-size: 12px;
    line-height: 1.3;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: #00875A;
}

.toast.error {
    background: #DE350B;
}

.toast.info {
    background: #0065FF;
}

.toast.warning {
    background: #FF8B00;
}

#toastMessage {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    display: block;
}

/* ===== NOTIFICATION PREFERENCES MODAL ===== */
.notification-preferences-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 66, 0.54);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.notification-preferences-modal.active {
    display: flex;
}

.notification-preferences-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    animation: slideUpScale 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.notification-preferences-header {
    padding: 28px 32px;
    border-bottom: 2px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
    border-radius: 16px 16px 0 0;
}

.notification-preferences-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-preferences-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B778C;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.notification-preferences-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    transform: rotate(90deg);
}

.notification-preferences-body {
    padding: 32px;
}

.notification-section {
    margin-bottom: 32px;
}

.notification-section:last-child {
    margin-bottom: 0;
}

.notification-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.notification-section-description {
    font-size: 14px;
    color: #6B778C;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.notification-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fafbfc;
    border: 2px solid #E5E7EB;
}

.notification-option:hover {
    background: #f4f5f7;
    border-color: #DFE1E6;
}

.notification-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563EB;
    flex-shrink: 0;
}

.notification-option-icon {
    font-size: 22px;
    margin: 0 12px 0 12px;
    flex-shrink: 0;
}

.notification-option-content {
    flex: 1;
}

.notification-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    display: block;
}

.notification-option-description {
    font-size: 13px;
    color: #6B778C;
    margin: 0;
    line-height: 1.4;
}

.notification-preferences-footer {
    padding: 20px 32px;
    border-top: 2px solid #E5E7EB;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

.notification-preferences-footer .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-preferences-footer .btn-secondary {
    background: white;
    color: #6B778C;
    border: 2px solid #DFE1E6;
}

.notification-preferences-footer .btn-secondary:hover {
    background: #f4f5f7;
    border-color: #C1C7D0;
    color: #42526E;
}

.notification-preferences-footer .btn-primary {
    background: #2563EB;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.notification-preferences-footer .btn-primary:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Mobile Responsive for Notification Preferences */
@media (max-width: 768px) {
    .notification-preferences-content {
        width: 95%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 12px;
    }

    .notification-preferences-header {
        padding: 20px 24px;
        border-radius: 12px 12px 0 0;
    }

    .notification-preferences-header h2 {
        font-size: 18px;
    }

    .notification-preferences-body {
        padding: 24px;
    }

    .notification-section {
        margin-bottom: 24px;
    }

    .notification-section-title {
        font-size: 15px;
    }

    .notification-option {
        padding: 12px 14px;
    }

    .notification-option-icon {
        font-size: 20px;
        margin: 0 10px 0 10px;
    }

    .notification-option-title {
        font-size: 14px;
    }

    .notification-option-description {
        font-size: 12px;
    }

    .notification-preferences-footer {
        padding: 16px 24px;
        flex-direction: column-reverse;
    }

    .notification-preferences-footer .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    margin: 4px 0;
    font-size: 12px;
    color: #8e8e93;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease-out forwards;
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8e8e93;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message Status */
.message-status {
    font-size: 10px;
    color: #8e8e93;
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.message-status.delivered {
    color: #34c759;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--neutral-800);
    color: var(--neutral-0);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    max-width: 320px;
    min-width: 180px;
    width: auto;
    height: auto;
    max-height: 80px;
    line-height: 1.4;
    word-wrap: break-word;
    transition: all 0.3s var(--ease-in-out);
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success { background: var(--success-500); }
.toast.error { background: var(--danger-500); }
.toast.info { background: var(--info-500); }
.toast.warning { background: var(--warning-500); }

#toastMessage {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    display: inline-block;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

/* Task Detail Modal Content */
.task-detail-content {
    padding: 0;
    overflow: hidden;
    height: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.task-detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    padding: 20px 24px;
    height: calc(85vh - 140px);
    min-height: 500px;
    overflow: hidden;
}

.task-detail-main {
    min-width: 0;
    overflow-y: auto;
    max-height: calc(85vh - 200px);
    min-height: 400px;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-400) var(--neutral-100);
}

.task-detail-main::-webkit-scrollbar {
    width: 6px;
    background: var(--neutral-100);
}

.task-detail-main::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-sm);
}

.task-detail-main::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
    border: 1px solid var(--neutral-100);
}

.task-detail-main::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.task-detail-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    max-height: calc(85vh - 200px);
    min-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-400) var(--neutral-100);
}

.task-detail-sidebar::-webkit-scrollbar {
    width: 6px;
    background: var(--neutral-100);
}

.task-detail-sidebar::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-sm);
}

.task-detail-sidebar::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
    border: 1px solid var(--neutral-100);
}

.task-detail-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.task-detail-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--neutral-200);
}

.task-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.task-detail-section h4 {
    color: var(--neutral-800);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-500);
    display: inline-block;
}

.detail-field {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--neutral-0);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-500);
    transition: all 0.2s ease;
    border: 1px solid var(--neutral-200);
}

.detail-field:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
    border-left-color: var(--primary-600);
}

.detail-field label {
    display: block;
    font-size: 11px;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-field span {
    color: var(--neutral-800);
    font-size: 14px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

/* Task Detail Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    flex-shrink: 0;
    margin-top: auto;
}

.modal-actions .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    flex: 1;
    max-width: 150px;
    transition: all 0.2s ease;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    color: var(--neutral-0);
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-actions .btn-danger {
    background: var(--danger-500);
    color: var(--neutral-0);
    border: none;
}

.modal-actions .btn-danger:hover {
    background: var(--danger-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive for Task Detail Modal */
@media (max-width: 768px) {
    .task-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        overflow-y: auto;
        max-height: calc(85vh - 140px);
    }

    .task-detail-main {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .task-detail-sidebar {
        padding: 16px;
        max-height: none;
        order: -1;
        overflow-y: visible;
    }

    .comments-container {
        max-height: 250px;
    }

    .detail-field {
        padding: 10px;
        margin-bottom: 12px;
    }

    .task-detail-section {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .task-detail-section h4 {
        font-size: 14px;
    }

    .modal-actions {
        padding: 16px;
        flex-direction: column;
    }

    .modal-actions .btn {
        max-width: none;
        width: 100%;
    }

    .toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
        min-width: auto;
    }
}