:root {
    --bg: #0a0a0b;
    --panel: #141416;
    --panel-hover: #1c1c21;
    --accent: #ff4d4d;
    /* Red */
    --accent-glow: rgba(255, 77, 77, 0.3);
    --text: #e1e1e6;
    --text-dim: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --todo: #323238;
    --doing: #e63946;
    --done: #4b4b56;
    --card-bg: rgba(255, 255, 255, 0.03);
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width 0.3s;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: -0.5px;
}

main {
    flex: 1;
    overflow-x: auto;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

/* Board UI */
.board-column {
    min-width: 320px;
    width: 320px;
    background: var(--panel);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    border: 1px solid var(--border);
}

.column-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-title {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.tasks-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.task-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.task-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.priority-high {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.priority-medium {
    background: rgba(255, 146, 0, 0.1);
    color: #ff9200;
}

.priority-low {
    background: rgba(81, 207, 102, 0.1);
    color: #51cf66;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .board-column {
        width: 100%;
        min-width: 100%;
    }
}

/* Auth Pages */
.auth-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(230, 57, 70, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(230, 57, 70, 0.05), transparent);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.auth-form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: #e63946;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
    text-align: center;
}