/* style.css - การตกแต่งสไตล์ Dark Mode Premium & Glassmorphism */

:root {
    --bg-app: #090d16;
    --bg-sidebar: rgba(13, 20, 35, 0.85);
    --bg-card: rgba(22, 32, 53, 0.5);
    --bg-card-hover: rgba(30, 45, 75, 0.7);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-focus: rgba(59, 130, 246, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand & Accent Colors */
    --primary: #3b82f6;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-glow: rgba(239, 68, 68, 0.2);

    /* Priority Colors */
    --priority-high: #f43f5e;
    --priority-high-bg: rgba(244, 63, 94, 0.15);
    --priority-medium: #f59e0b;
    --priority-medium-bg: rgba(245, 158, 11, 0.15);
    --priority-low: #10b981;
    --priority-low-bg: rgba(16, 185, 129, 0.15);

    /* Status Colors */
    --status-todo: #38bdf8;
    --status-todo-bg: rgba(56, 189, 248, 0.1);
    --status-progress: #fbbf24;
    --status-progress-bg: rgba(251, 191, 36, 0.1);
    --status-review: #c084fc;
    --status-review-bg: rgba(192, 132, 252, 0.1);
    --status-done: #34d399;
    --status-done-bg: rgba(52, 211, 153, 0.1);

    --font-sans: 'Outfit', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    background-image: 
        radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(192, 132, 252, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(20, 184, 166, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    position: fixed;
    height: 100vh;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary));
}

.sidebar-section {
    margin-bottom: 2.25rem;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    font-weight: 600;
}

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

.section-header .section-title {
    margin-bottom: 0;
}

/* Role Selector List */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.role-item.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.role-item.active .role-avatar {
    box-shadow: 0 0 8px var(--primary);
}

.role-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.role-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.role-type {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Team Management Mini section */
.member-quick-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.member-quick-list::-webkit-scrollbar {
    width: 4px;
}

.member-quick-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.member-quick-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.member-quick-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.btn-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-danger-outline:hover {
    background: var(--danger-glow);
    border-color: var(--danger);
    color: white;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2.25rem;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon-small {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-small:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.bg-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
.bg-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.bg-purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}
.bg-green {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Panels (Views) */
.view-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-panel.active-panel {
    display: block;
}

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

/* Kanban Board View */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    min-height: 550px;
    max-height: calc(100vh - 350px);
    transition: var(--transition);
}

.kanban-column.drag-over {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.column-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-todo-badge { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.2); }
.bg-progress-badge { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }
.bg-review-badge { background: rgba(192, 132, 252, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.2); }
.bg-done-badge { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.2); }

.column-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.kanban-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.25rem;
    min-height: 100px;
}

.kanban-tasks-list::-webkit-scrollbar {
    width: 5px;
}

.kanban-tasks-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.kanban-tasks-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Task Cards */
.task-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.15rem;
    cursor: grab;
    transition: var(--transition);
    position: relative;
    user-select: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

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

.task-card.dragging {
    opacity: 0.4;
    transform: scale(0.96);
    border: 1px dashed var(--primary);
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--card-shadow);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.task-priority-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.priority-high { background: var(--priority-high-bg); color: var(--priority-high); }
.priority-medium { background: var(--priority-medium-bg); color: var(--priority-medium); }
.priority-low { background: var(--priority-low-bg); color: var(--priority-low); }

.task-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.75rem;
}

.task-date-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.date-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.date-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.date-value.overdue {
    color: var(--priority-high);
    font-weight: 500;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.task-assignee-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #475569;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.unassigned-avatar {
    background: transparent;
    border: 1px dashed var(--text-muted);
    color: var(--text-muted);
}

/* Card Actions Overlay */
.card-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: var(--transition);
}

.task-card:hover .card-actions {
    opacity: 1;
}

.btn-card-action {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-action:hover {
    color: var(--text-primary);
    background: var(--bg-app);
}

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

/* Member Workspace Header */
.member-workspace-header {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.profile-details h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.member-tasks-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.member-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.member-tasks-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.3rem;
    border-radius: 10px;
}

.btn-filter {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: var(--transition);
}

.btn-filter:hover {
    color: var(--text-primary);
}

.btn-filter.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Member Tasks Grid */
.member-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Task card special modifiers for member page */
.member-task-card {
    cursor: default;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-todo { background: var(--status-todo-bg); color: var(--status-todo); border: 1px solid rgba(56, 189, 248, 0.15); }
.status-progress { background: var(--status-progress-bg); color: var(--status-progress); border: 1px solid rgba(251, 191, 36, 0.15); }
.status-review { background: var(--status-review-bg); color: var(--status-review); border: 1px solid rgba(192, 132, 252, 0.15); }
.status-done { background: var(--status-done-bg); color: var(--status-done); border: 1px solid rgba(52, 211, 153, 0.15); }

/* Quick status change button inside member view */
.btn-status-cycle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.btn-status-cycle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

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

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

.modal-content {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.required {
    color: var(--priority-high);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(13, 20, 35, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* Inline form for adding member */
.inline-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.inline-form input {
    flex-grow: 1;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 1.5rem 0;
}

.error-text {
    font-size: 0.75rem;
    color: var(--priority-high);
    margin-top: 0.25rem;
    display: block;
}

/* Manage members view in modal */
.members-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 0.75rem;
}

.members-list-container::-webkit-scrollbar {
    width: 4px;
}

.members-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.manage-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}

.member-profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.manage-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.member-profile-details {
    display: flex;
    flex-direction: column;
}

.member-profile-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.member-profile-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-delete-member {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-delete-member:hover {
    color: var(--danger);
    background: var(--danger-glow);
}

/* Background gradient avatar helpers */
.avatar-bg-0 { background: linear-gradient(135deg, #f43f5e, #be123c); }
.avatar-bg-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar-bg-2 { background: linear-gradient(135deg, #10b981, #047857); }
.avatar-bg-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.avatar-bg-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.avatar-bg-5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.avatar-bg-6 { background: linear-gradient(135deg, #14b8a6, #0f766e); }


/* === Login Overlay Screen styling === */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.login-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.login-overlay.active .login-card {
    transform: translateY(0);
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.login-logo svg {
    color: var(--primary);
    filter: drop-shadow(0 0 4px var(--primary));
}

.login-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, #fff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.25rem;
    border-radius: 10px;
}

.btn-login-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.65rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
    .kanban-column {
        min-height: 400px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 1.25rem;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.25rem;
    }
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
