:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --fab-color: #e98411;
    --accent-color: #ff4b1f;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: #0f0c29;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--secondary-color);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-color);
    opacity: 0.4;
    animation: move 15s infinite alternate-reverse;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers auth, overridden for dashboard */
}

/* Dashboard should start from top, not be centered */
.container:has(#dashboard-section) {
    justify-content: flex-start;
    min-height: 0;
}

/* Glass Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 30px;
}

.glass-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input,
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 15px 12px 40px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input,
.glass-select {
    padding-left: 15px;
    /* Reset padding if no icon */
    background: rgba(255, 255, 255, 0.08);
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* Auth Screens */
.auth-box {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.switch-auth {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.switch-auth a {
    color: #fff;
    text-decoration: underline;
}

/* Flash Messages / Alerts */
.alert {
    padding: 16px 20px;
    padding-left: 50px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideInDown 0.4s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.alert::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 75, 31, 0.15), rgba(255, 23, 68, 0.15));
    border-color: rgba(255, 75, 31, 0.4);
    color: #ffcccb;
}

.alert-error::before {
    content: '\f06a';
    /* fa-circle-exclamation */
    color: #ff4b1f;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
    color: #d1fae5;
}

.alert-success::before {
    content: '\f058';
    /* fa-circle-check */
    color: #10b981;
}

.alert-info {
    background: linear-gradient(135deg, rgba(37, 117, 252, 0.15), rgba(59, 130, 246, 0.15));
    border-color: rgba(37, 117, 252, 0.4);
    color: #dbeafe;
}

.alert-info::before {
    content: '\f05a';
    /* fa-circle-info */
    color: #2575fc;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.4);
    color: #fef3c7;
}

.alert-warning::before {
    content: '\f071';
    /* fa-triangle-exclamation */
    color: #fbbf24;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
#dashboard-section {
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
    /* Space for FAB */
    height: 100%;
}

/* Greeting Section (Outside Card) */
.greeting-section {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.greeting-content {
    flex: 1;
}

.greeting-section .greeting-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.greeting-section .greeting-line #greeting-time {
    color: var(--text-muted);
    font-size: 1.3rem;
}

.greeting-section .greeting-line strong {
    color: var(--text-color);
    font-size: 1.5rem;
}

.greeting-section .date-context {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 0.2rem;
}

.greeting-section .date-context .separator {
    opacity: 0.5;
}

.greeting-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Glass Header */
.glass-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.greeting-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.1rem;
}

.greeting-line #greeting-time {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.greeting-line strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.date-context {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.date-context .separator {
    opacity: 0.5;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

/* Side Cards */
.side-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem;
}

.side-card-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.side-card i {
    font-size: 1.5rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.side-card:first-child i {
    color: #a78bfa;
}

.side-card:last-child i {
    color: #fbbf24;
}

.side-card-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.side-card-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}


/* Circular Progress */
.progress-circle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.progress-circle {
    transform: rotate(-90deg);
    width: 100px;
    height: 100px;
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
    cx: 50;
    cy: 50;
    r: 44;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progress-gradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 276.46;
    /* 2 * PI * 44 */
    stroke-dashoffset: 276.46;
    transition: stroke-dashoffset 1s ease-out;
    cx: 50;
    cy: 50;
    r: 44;
}

.progress-circle-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.progress-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

/* Bottom Row: Stats */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.2rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-card-header i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.stat-card:nth-child(1) .stat-card-header i {
    color: #3b82f6;
}

.stat-card:nth-child(2) .stat-card-header i {
    color: #ff4b1f;
}

.stat-card:nth-child(3) .stat-card-header i {
    color: #10b981;
}

.stat-card-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-card-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-card-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-card-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease-out;
    width: 0%;
}

.stat-bar-today {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-bar-overdue {
    background: linear-gradient(90deg, #ff4b1f, #ff6b45);
}

.stat-bar-completed {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Controls */
.controls-area {
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    margin-bottom: 15px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    padding-left: 40px;
}

.filter-sort-row {
    display: flex;
    gap: 10px;
}

/* Mobile Filter Tabs */
.mobile-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-tab {
    flex: 1;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.status-tab .tab-label-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-tab i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.status-tab .tab-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-tab .tab-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.status-tab.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-color: var(--primary-color);
    color: var(--text-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.status-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.status-tab:not(.active):active {
    transform: scale(0.95);
}

/* Mobile tab icon colors to match desktop columns */
.status-tab[data-status="todo"] i {
    color: var(--text-muted);
}

.status-tab[data-status="in_progress"] i {
    color: #fbbf24;
}

.status-tab[data-status="done"] i {
    color: #10b981;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-admin {
    background: linear-gradient(135deg, rgba(255, 75, 31, 0.2), rgba(255, 23, 68, 0.2));
    border: 1px solid rgba(255, 75, 31, 0.4);
    color: #ffcccb;
}

.badge-user {
    background: rgba(37, 117, 252, 0.15);
    border: 1px solid rgba(37, 117, 252, 0.3);
    color: #dbeafe;
}

/* Delete Button */
.btn-delete {
    background: transparent;
    border: 1px solid rgba(255, 75, 31, 0.4);
    color: #ff4b1f;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: rgba(255, 75, 31, 0.2);
    border-color: #ff4b1f;
    transform: scale(1.05);
}

.btn-delete:active {
    transform: scale(0.95);
}

/* Smooth Transitions */
.table-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#flash-messages {
    position: relative;
}

#flash-messages .alert {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-header .icon-btn {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.modal-header .icon-btn:hover {
    color: #ff4b1f;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.btn-delete-modal {
    padding: 14px 20px;
    background: transparent;
    border: 2px solid rgba(255, 75, 31, 0.5);
    border-radius: 12px;
    color: #ff4b1f;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
}

.btn-delete-modal:hover {
    background: rgba(255, 75, 31, 0.1);
    border-color: #ff4b1f;
    transform: scale(1.02);
}

.btn-delete-modal:active {
    transform: scale(0.98);
}

/* Dashboard Container */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.controls-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tasks Container - Mobile First */
.tasks-container {
    width: 100%;
}

/* Tasks Grid - Mobile: Single Column */
.tasks-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Task Column - Mobile: No special styling */
.task-column {
    display: contents;
}

/* Column Header - Mobile: Hidden (replaced by filter tabs) */
.column-header {
    display: none;
}

.column-header i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.column-header.in-progress i {
    color: #fbbf24;
}

.column-header.done i {
    color: #10b981;
}

.column-header .task-count {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0.8;
}

/* Remove margin for the first header on mobile */
.task-column:first-child .column-header {
    margin-top: 0;
}


/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Task Card Styles - Horizontal Layout */
.task-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    /* Mobile: clickable to edit */
}

.task-card:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.task-card.overdue:hover {
    border-left-color: #ff4d4d;
}

.task-card.completed {
    opacity: 0.6;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Round Checkbox */
.task-checkbox-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.task-checkbox-wrapper input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    background: rgba(106, 17, 203, 0.1);
}

.task-checkbox-wrapper input[type="checkbox"].in-progress {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
}

.task-checkbox-wrapper input[type="checkbox"].in-progress::after {
    content: '\f110';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    line-height: 1;
}

.task-checkbox-wrapper input[type="checkbox"]:checked {

    border-color: var(--primary-color);
}

.task-checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #10b981;
    font-size: 24px;
}

/* Task Content Area */
.task-content {
    flex: 1;
    min-width: 0;
}

.task-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.task-priority {
    /* Mobile: Small colored dot */
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.task-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.task-meta i {
    margin-right: 0.3rem;
}

.task-card.overdue {
    border-left: 4px solid #ff4d4d;
}

.task-overdue-badge {
    margin-left: 0px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.task-card.overdue {
    border-left: 4px solid #ff4d4d;
}

.task-overdue-badge {
    margin-left: 0px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* Task Actions - Mobile: Hidden (click card to edit) */
.task-actions {
    display: none;
}

.task-actions .icon-btn {
    transition: all 0.2s ease;
}

.task-actions .icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 0rem;
}

.task-column:has(.empty-state)+.task-column .column-header {
    margin-top: 0;
}


.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    display: none;
}

/* Alert Container */
#alert-container {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
}


/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--fab-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 30px rgba(106, 17, 203, 0.6);
}

.fab:active {
    transform: scale(0.95) rotate(90deg);
}

.fab i {
    transition: transform 0.3s ease;
}