/* ============================================
   Spiritual Unity of the Tribes - Kanban Board
   Color palette derived from gathering image:
   warm sunset golds, deep earth browns, forest greens
   ============================================ */

:root {
    --bg-dark: #1e1510;
    --bg-medium: #2a1f1a;
    --bg-column: rgba(62, 42, 30, 0.88);
    --bg-card: #e8ddd0;
    --bg-card-hover: #e0d3c4;
    --accent-gold: #d4943a;
    --accent-gold-hover: #e0a44d;
    --accent-red: #8b3a2a;
    --accent-red-light: #b04a36;
    --text-light: #f0e6d6;
    --text-muted: #a89880;
    --text-dark: #2c1e14;
    --text-card: #3d2b1e;
    --border-warm: rgba(212, 148, 58, 0.25);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.18);
    --shadow-modal: 0 12px 48px rgba(0,0,0,0.5);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-xs: 4px;
    --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: auto;
}

.board-page {
    background: var(--bg-dark) url('../img/bg.png') center/cover no-repeat fixed;
}

.board-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(30, 21, 16, 0.82);
    z-index: 0;
    pointer-events: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212,148,58,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,148,58,0.5); }

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
    background: var(--bg-dark) url('../img/bg.png') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 6, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: rgba(42, 31, 26, 0.92);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-modal);
    animation: fadeIn 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.eagle-icon {
    width: 56px;
    height: 56px;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 8px rgba(212,148,58,0.4));
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.auth-logo h1 span {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder {
    color: rgba(240,230,214,0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212,148,58,0.2);
}

.form-error {
    display: none;
    padding: 0.65rem 1rem;
    background: rgba(139, 58, 42, 0.25);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-xs);
    color: #f0a090;
    font-size: 0.9rem;
}

.btn-primary {
    padding: 0.85rem;
    background: var(--accent-gold);
    color: #1a0f08;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-1px);
}

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

.auth-welcome {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ============================================
   APP HEADER
   ============================================ */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(30, 21, 16, 0.92);
    border-bottom: 1px solid var(--border-warm);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-fire {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.header-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.board-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-greeting strong {
    color: var(--text-light);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-xs);
    transition: color var(--transition), background var(--transition);
}

.btn-icon:hover {
    color: var(--accent-gold);
    background: rgba(212,148,58,0.1);
}

/* ============================================
   BOARD LAYOUT
   ============================================ */

.board-container {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    min-height: calc(100vh - 56px);
    align-items: flex-start;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.column {
    flex: 0 0 300px;
    max-width: 300px;
    background: var(--bg-column);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 90px);
}

.column.add-column {
    background: transparent;
    border: 2px dashed rgba(212,148,58,0.2);
    justify-content: flex-start;
    padding: 0;
    min-height: auto;
    max-height: none;
}

.btn-add-column {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font);
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    text-align: left;
    transition: color var(--transition);
}

.btn-add-column:hover {
    color: var(--accent-gold);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    cursor: grab;
    user-select: none;
}

.column-header:active {
    cursor: grabbing;
}

.column-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    flex: 1;
}

.column-title-input {
    flex: 1;
    padding: 0.3rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.column-title-input:focus {
    outline: none;
}

.card-count {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.column-actions {
    display: flex;
    gap: 0.15rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.column-header:hover .column-actions {
    opacity: 1;
}

.btn-icon-sm {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}

.btn-icon-sm:hover {
    color: var(--accent-gold);
    background: rgba(255,255,255,0.08);
}

.btn-delete-col:hover {
    color: var(--accent-red-light);
}

/* ---- Card List ---- */

.card-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
    min-height: 8px;
}

.btn-add-card {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font);
    cursor: pointer;
    padding: 0.7rem 1rem;
    text-align: left;
    transition: color var(--transition);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-add-card:hover {
    color: var(--accent-gold);
}

/* ---- Add Card Inline Form ---- */

.add-card-form {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.add-card-input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    color: var(--text-card);
    font-family: var(--font);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.add-card-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,148,58,0.25);
}

.add-card-input::placeholder {
    color: #a09080;
}

.add-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    border-color: var(--accent-gold);
}

.card-ghost {
    opacity: 0.4;
    background: rgba(212,148,58,0.15);
    border: 2px dashed var(--accent-gold);
    box-shadow: none;
}

.card-chosen {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform: rotate(2deg);
}

.card-drag {
    opacity: 0.9;
}

.column-ghost {
    opacity: 0.4;
}

.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.card-label {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-card);
    line-height: 1.35;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.card-footer-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.card-due {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b5c4f;
    background: rgba(0,0,0,0.06);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
}

.card-due.due-soon {
    background: #f0d48a;
    color: #7a5c10;
}

.card-due.overdue {
    background: var(--accent-red);
    color: #fff;
}

.card-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #7a6b5e;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.card-badge.badge-done {
    background: rgba(74,124,89,0.15);
    color: #4a7c59;
}

.card-avatars {
    display: flex;
    margin-left: auto;
}

.card-avatars .avatar-sm {
    margin-left: -6px;
}

.card-avatars .avatar-sm:first-child {
    margin-left: 0;
}

/* ---- Avatars ---- */

.avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    border: 2px solid var(--bg-card);
    flex-shrink: 0;
}

.avatar-xs {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* ============================================
   MODAL
   ============================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 3, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
    overflow-y: auto;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: var(--bg-medium);
    border-radius: var(--radius);
    border: 1px solid var(--border-warm);
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-modal);
    position: relative;
    animation: modalIn 0.25s ease;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition), background var(--transition);
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-title-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font);
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: border-color var(--transition), background var(--transition);
}

.modal-title-input:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.modal-title-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.05);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.modal-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.modal-assigned {
    display: flex;
    gap: 0.25rem;
}

.label-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.modal-body {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.modal-main {
    flex: 1;
    min-width: 0;
}

.modal-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

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

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

.modal-description {
    width: 100%;
    min-height: 80px;
    padding: 0.65rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color var(--transition);
}

.modal-description:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.modal-description::placeholder {
    color: rgba(240,230,214,0.3);
}

/* ---- Sidebar ---- */

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

.sidebar-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.input-field {
    width: 100%;
    padding: 0.45rem 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.input-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
}

/* ---- Label Picker ---- */

.label-pick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
    margin-bottom: 0.2rem;
}

.label-pick:hover {
    background: rgba(255,255,255,0.06);
}

.label-pick.active {
    background: rgba(var(--label-color), 0.15);
    border-color: rgba(255,255,255,0.1);
}

.label-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.label-check {
    margin-left: auto;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ---- Assign Picker ---- */

.assign-pick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
    margin-bottom: 0.2rem;
}

.assign-pick:hover {
    background: rgba(255,255,255,0.06);
}

.assign-pick.active {
    background: rgba(212,148,58,0.1);
    border-color: rgba(255,255,255,0.1);
}

.assign-check {
    margin-left: auto;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ---- Checklists ---- */

.checklist {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

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

.checklist-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.checklist-items {
    margin-top: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition);
}

.checklist-item:hover {
    background: rgba(255,255,255,0.04);
}

.checklist-item input[type="checkbox"] {
    accent-color: var(--accent-gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.item-text {
    font-size: 0.85rem;
    color: var(--text-light);
    flex: 1;
}

.checklist-item.done .item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.btn-icon-xs {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition), color var(--transition);
}

.checklist-item:hover .btn-icon-xs,
.comment:hover .btn-icon-xs,
.attachment:hover .btn-icon-xs {
    opacity: 1;
}

.btn-icon-xs:hover {
    color: var(--accent-red-light);
}

.checklist-add {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.checklist-add-input {
    flex: 1;
}

/* ---- Comments ---- */

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.comment-form textarea {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.85rem;
    resize: none;
    transition: border-color var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.comment-form textarea::placeholder {
    color: rgba(240,230,214,0.3);
}

.comment {
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.comment-header strong {
    font-size: 0.82rem;
    color: var(--text-light);
}

.comment-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-header .btn-icon-xs {
    margin-left: 0.25rem;
}

.comment-body {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    white-space: pre-wrap;
    padding-left: 26px;
}

/* ---- Attachments ---- */

.file-upload-area {
    margin-bottom: 0.75rem;
}

.file-input {
    display: none;
}

.attachment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}

.attachment:hover {
    background: rgba(255,255,255,0.04);
}

.attachment-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-name:hover {
    text-decoration: underline;
}

.attachment-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---- Buttons ---- */

.btn-small {
    padding: 0.35rem 0.7rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

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

.btn-accent {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1a0f08;
}

.btn-accent:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
}

.btn-danger {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-sm);
    color: var(--accent-red-light);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: #fff;
}

.sidebar-danger {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Utility ---- */

.text-muted {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .board-container {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .column {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-sidebar {
        width: 100%;
    }

    .app-header {
        padding: 0.5rem 1rem;
    }

    .user-greeting {
        display: none;
    }

    .auth-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .column {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-backdrop {
        padding: 0;
    }
}
