/* ==========================================================================
   ZENFLOW STYLESHEET
   Aesthetics: Premium Dark Mode, Glassmorphism, Vibrant Gradients, Transitions
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-dark: #070913;
    --bg-surface: rgba(17, 22, 43, 0.7);
    --bg-surface-hover: rgba(26, 33, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(0, 242, 254, 0.4);
    
    /* Brand Colors (Teal & Blue Gradients) */
    --color-primary: #00f2fe;
    --color-primary-dark: #4facfe;
    --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --grad-accent: linear-gradient(135deg, #b176ff 0%, #e879f9 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Text Colors */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    
    /* Status Specific */
    --color-todo: #6b7280;
    --color-progress: #f59e0b;
    --color-review: #a855f7;
    --color-done: #10b981;
    --color-danger: #ef4444;

    /* Shadow effects */
    --glow-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Ambient Background Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00f2fe, rgba(0,242,254,0));
}

.orb-2 {
    bottom: 5%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #b176ff, rgba(177,118,255,0));
}

.orb-3 {
    top: 40%;
    left: 45%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4facfe, rgba(79,172,254,0));
    opacity: 0.15;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Containers */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Layout Main Container */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 24px;
}

/* App Header & Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: rgba(12, 17, 36, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

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

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.08);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.brand h1 {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.live-clock {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Custom Select Dropdown Styling */
.role-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.custom-select-wrapper {
    position: relative;
}

.role-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 10px 40px 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.role-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.custom-select-wrapper::after {
    content: '▼';
    font-size: 8px;
    color: var(--text-muted);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, #00e0ed 0%, #3ca0e6 100%);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--grad-danger);
    color: var(--text-main);
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-icon-only {
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* Active and Section views */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-section.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.section-header h2 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 22px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-purple {
    background: rgba(177, 118, 255, 0.12);
    color: #c5a3ff;
    border: 1px solid rgba(177, 118, 255, 0.2);
}

.badge-blue {
    background: rgba(79, 172, 254, 0.12);
    color: #8cc2ff;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.badge-status {
    text-transform: uppercase;
}

.badge-status.todo {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.badge-status.in-progress {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.badge-status.in-review {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

.badge-status.done {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.badge-status.overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* 1. SUPERVISOR VIEW: Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 18px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.icon-blue { background: rgba(79, 172, 254, 0.1); color: #4facfe; border: 1px solid rgba(79, 172, 254, 0.2); }
.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.icon-purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

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

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

.stat-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-header);
    color: var(--text-main);
}

/* Supervisor Grid Split */
.supervisor-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .supervisor-grid {
        grid-template-columns: 1fr;
    }
}

/* Progress Panel (Members) */
.progress-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-panel h3, .tasks-panel-header h3 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.member-progress-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.member-progress-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.2s ease;
}

.member-progress-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.member-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-dark);
}

.pic-somchai { background: #00f2fe; }
.pic-somsri { background: #e879f9; }
.pic-somsak { background: #fbbf24; }
.pic-somporn { background: #34d399; }

.member-name {
    font-weight: 600;
    font-size: 14px;
}

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

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Master Tasks Table Panel */
.tasks-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 400px;
}

.tasks-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.input-search {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 14px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    width: 180px;
    transition: all 0.2s ease;
}

.input-search:focus {
    border-color: var(--color-primary);
    width: 220px;
}

.filter-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--color-primary);
}

.table-responsive {
    overflow-x: auto;
}

.master-tasks-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.master-tasks-table th {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.master-tasks-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.master-tasks-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

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

.task-cell-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.task-cell-desc {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignee-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.assignee-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

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

.no-tasks-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* 2. MEMBER VIEW: Kanban Board Styles */
.section-header-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 17, 36, 0.5);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.member-profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.member-avatar.pic-somchai { background: #00f2fe; box-shadow: 0 0 15px rgba(0, 242, 254, 0.4); }
.member-avatar.pic-somsri { background: #e879f9; box-shadow: 0 0 15px rgba(232, 121, 249, 0.4); }
.member-avatar.pic-somsak { background: #fbbf24; box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.member-avatar.pic-somporn { background: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, 0.4); }

.member-profile-info h2 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
}

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

.member-stats-preview {
    display: flex;
    gap: 16px;
}

.min-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.min-stat .val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

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

/* Kanban Board Columns Grid */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: rgba(13, 17, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 500px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanban-column.drag-over {
    background: rgba(0, 242, 254, 0.03);
    border-color: var(--border-color-active);
}

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

.column-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.dot-todo { background: var(--color-todo); box-shadow: 0 0 8px var(--color-todo); }
.dot-progress { background: var(--color-progress); box-shadow: 0 0 8px var(--color-progress); }
.dot-review { background: var(--color-review); box-shadow: 0 0 8px var(--color-review); }
.dot-done { background: var(--color-done); box-shadow: 0 0 8px var(--color-done); }

.column-count {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 420px;
}

/* Kanban Cards Styling */
.task-card {
    background: rgba(26, 32, 58, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    user-select: none;
}

.task-card:active {
    cursor: grabbing;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.task-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    border-style: dashed;
    border-color: var(--color-primary);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.task-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.task-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: 4px;
}

.task-card-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.task-card-deadline.near-due {
    color: #f59e0b;
}

.task-card-deadline.overdue {
    color: #ef4444;
    font-weight: 600;
}

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

.card-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.1s ease;
}

.card-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.card-action-btn.edit:hover {
    color: var(--color-primary);
}

.card-action-btn.delete:hover {
    color: var(--color-danger);
}

/* Modals & Dialog System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 15, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 580px;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #0f132a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.modal-header h3 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.text-req {
    color: #ef4444;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

.text-area {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-body);
}

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

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: var(--text-main);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 380px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.toast.success { border-left-color: var(--color-done); }
.toast.warning { border-left-color: var(--color-progress); }
.toast.danger { border-left-color: var(--color-danger); }

.toast.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

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