/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Variables ===== */
:root {
    --bg-primary: #04060e;
    --bg-secondary: #0a0f24;
    --bg-tertiary: #111730;
    --bg-card: rgba(14, 20, 48, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.025);
    --border-glass: rgba(120, 140, 200, 0.1);
    --border-hover: rgba(120, 140, 200, 0.25);

    --accent-primary: #c8a23c;
    --accent-warm: #e8b94a;
    --accent-hot: #d4773b;
    --accent-glow: rgba(200, 162, 60, 0.35);
    --accent-glow-soft: rgba(200, 162, 60, 0.08);

    --blue-primary: #c8a23c;
    --blue-light: #e8b94a;
    --blue-dark: #8a6d1b;
    --blue-glow: rgba(200, 162, 60, 0.3);

    --text-primary: #eaecf4;
    --text-secondary: #8a8faa;
    --text-muted: #4e5374;

    --success: #22c997;
    --success-glow: rgba(34, 201, 151, 0.25);
    --warning: #e8a634;
    --warning-glow: rgba(232, 166, 52, 0.25);
    --danger: #e85454;
    --danger-glow: rgba(232, 84, 84, 0.25);

    --shadow-blue: 0 0 40px rgba(200, 162, 60, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(200, 162, 60, 0.12);

    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background orbs */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(200, 162, 60, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 119, 59, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Noise overlay */
.app-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* ===== App Container ===== */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 32px;
    position: relative;
    z-index: 2;
}

/* ===== Header ===== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hot) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200, 162, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: logoBreath 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: inherit;
}

@keyframes logoBreath {
    0%, 100% { box-shadow: 0 4px 20px rgba(200, 162, 60, 0.3); transform: scale(1); }
    50% { box-shadow: 0 4px 35px rgba(200, 162, 60, 0.5); transform: scale(1.02); }
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: #0a0e27;
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo h1 span {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--accent-hot) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    right: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.search-box input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 13px 46px 13px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    width: 280px;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    letter-spacing: 0.01em;
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-soft), 0 0 30px rgba(200, 162, 60, 0.06);
    width: 320px;
    background: rgba(255, 255, 255, 0.04);
}

.search-box input:focus + svg,
.search-box:has(input:focus) svg {
    color: var(--accent-primary);
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    padding: 13px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hot) 100%);
    color: #0a0e27;
    box-shadow: 0 4px 16px rgba(200, 162, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 162, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(200, 162, 60, 0.2);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(10, 15, 36, 0.5) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 22px 24px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 162, 60, 0.2);
    box-shadow: var(--shadow-glow);
}

.stat-item:hover::before {
    opacity: 0.6;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-value.todo {
    background: linear-gradient(135deg, var(--accent-warm), #f0c060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.progress {
    background: linear-gradient(135deg, var(--warning), #f0c060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.done {
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Board ===== */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.column {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(8, 12, 30, 0.4) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 520px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: var(--transition);
}

.column:nth-child(1)::before {
    background: linear-gradient(90deg, var(--accent-warm), var(--accent-hot));
    opacity: 0.5;
}

.column:nth-child(2)::before {
    background: linear-gradient(90deg, var(--warning), #f0c060);
    opacity: 0.5;
}

.column:nth-child(3)::before {
    background: linear-gradient(90deg, var(--success), #34d399);
    opacity: 0.5;
}

.column.drag-over {
    background: rgba(200, 162, 60, 0.04);
    border-color: rgba(200, 162, 60, 0.3);
    box-shadow: inset 0 0 40px rgba(200, 162, 60, 0.05), 0 0 40px rgba(200, 162, 60, 0.08);
}

.column.drag-over::before {
    opacity: 1;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-title h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: dotPulse 2.5s ease-in-out infinite;
}

.status-dot.todo {
    background: var(--accent-warm);
    box-shadow: 0 0 8px rgba(232, 185, 74, 0.4);
}

.status-dot.todo::before {
    background: rgba(232, 185, 74, 0.2);
}

.status-dot.progress {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning-glow);
}

.status-dot.progress::before {
    background: rgba(232, 166, 52, 0.2);
}

.status-dot.done {
    background: var(--success);
    box-shadow: 0 0 8px var(--success-glow);
}

.status-dot.done::before {
    background: rgba(34, 201, 151, 0.2);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.8); opacity: 0; }
}

.column-count {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    min-width: 32px;
    text-align: center;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

/* ===== Task Card ===== */
.task-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    cursor: grab;
    transition: var(--transition);
    position: relative;
    animation: cardReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    overflow: hidden;
}

.task-card:nth-child(1) { animation-delay: 0.05s; }
.task-card:nth-child(2) { animation-delay: 0.1s; }
.task-card:nth-child(3) { animation-delay: 0.15s; }
.task-card:nth-child(4) { animation-delay: 0.2s; }
.task-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.task-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-radius: inherit;
}

.task-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 162, 60, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 162, 60, 0.04);
    background: rgba(255, 255, 255, 0.035);
}

.task-card:hover::after {
    opacity: 1;
}

.task-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Priority indicator - refined top gradient bar */
.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    border-radius: 12px 12px 0 0;
    opacity: 0.6;
    transition: var(--transition);
}

.task-card:hover::before {
    opacity: 1;
    height: 3px;
}

.task-card.priority-high::before {
    background: linear-gradient(90deg, transparent 30%, var(--danger));
    box-shadow: 0 0 12px var(--danger-glow);
}

.task-card.priority-medium::before {
    background: linear-gradient(90deg, transparent 30%, var(--warning));
    box-shadow: 0 0 12px var(--warning-glow);
}

.task-card.priority-low::before {
    background: linear-gradient(90deg, transparent 30%, var(--accent-warm));
    box-shadow: 0 0 12px var(--accent-glow);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
}

.task-card:hover .task-actions {
    opacity: 1;
    transform: translateY(0);
}

.task-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}

.task-action-btn:hover {
    background: var(--accent-primary);
    color: #0a0e27;
    box-shadow: 0 2px 12px rgba(200, 162, 60, 0.3);
    transform: scale(1.1);
}

.task-action-btn.delete:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 12px var(--danger-glow);
}

.task-action-btn svg {
    width: 14px;
    height: 14px;
}

.task-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.priority-badge.high {
    background: rgba(232, 84, 84, 0.12);
    color: #f87171;
    border: 1px solid rgba(232, 84, 84, 0.15);
}

.priority-badge.medium {
    background: rgba(232, 166, 52, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(232, 166, 52, 0.15);
}

.priority-badge.low {
    background: rgba(232, 185, 74, 0.1);
    color: #e8b94a;
    border: 1px solid rgba(232, 185, 74, 0.12);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: overlayIn 0.25s ease-out;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(180deg, #0e1430 0%, #0a0f24 100%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(200, 162, 60, 0.06);
    animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-hot));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(232, 84, 84, 0.15);
    border-color: rgba(232, 84, 84, 0.3);
    color: var(--danger);
    transform: rotate(90deg);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-soft), 0 0 20px rgba(200, 162, 60, 0.04);
    background: rgba(255, 255, 255, 0.04);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e5374' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: linear-gradient(135deg, #0e1430 0%, #0a0f24 100%);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px 28px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(200, 162, 60, 0.05);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    z-index: 2000;
    backdrop-filter: blur(16px);
    opacity: 0;
    letter-spacing: 0.01em;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(34, 201, 151, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(34, 201, 151, 0.08);
}

.toast.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--success), transparent);
}

.toast.error {
    border-color: rgba(232, 84, 84, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 84, 84, 0.08);
}

.toast.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--danger), transparent);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 300;
}

.empty-state svg {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    opacity: 0.15;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .board {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        flex-direction: column;
    }

    .search-box input,
    .search-box input:focus {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 16px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 16px 18px;
    }

    .stat-value {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 24px;
        border-radius: 16px;
    }

    .column {
        padding: 16px;
        min-height: 400px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 162, 60, 0.15);
    border-radius: 10px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 162, 60, 0.3);
}

/* ===== Selection ===== */
::selection {
    background: rgba(200, 162, 60, 0.25);
    color: var(--text-primary);
}

/* ===== Focus Visible ===== */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}