* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', -apple-system, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #f5f3ff 50%, #dcfce7 100%);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* ─── Top Bar ───────────────────────────────────── */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.top-bar h1 {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.greeting {
    font-size: 14px;
    color: #374151;
    padding-right: 8px;
    border-right: 1px solid #e5e7eb;
    margin-right: 4px;
}

.top-link {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: #4b5563;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.top-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.top-link.logout {
    color: #ef4444;
}

.top-link.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.top-link.feedback {
    color: #f59e0b;
}

.top-link.feedback:hover {
    background: #fffbeb;
}

.top-link.dashboard {
    color: #2563eb;
    font-weight: 600;
}

.top-link.dashboard:hover {
    background: #eff6ff;
}

.greeting {
    color: #555;
}

.top-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.top-link:hover {
    background: #ebf5fb;
}

.top-link.logout {
    color: #e74c3c;
}

.top-link.logout:hover {
    background: #fdedec;
}

/* ─── Add Task Button ───────────────────────────── */
.add-task-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.add-task-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.3);
}

.add-task-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.add-task-btn:active {
    transform: translateY(0);
}

.add-task-icon {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
}

/* ─── Add Task Modal ────────────────────────────── */
.add-task-modal h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
}

.add-task-modal label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    margin-top: 14px;
}

.add-task-modal label:first-of-type {
    margin-top: 0;
}

.add-task-modal input,
.add-task-modal select,
.add-task-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
    background: #fafafa;
}

.add-task-modal input:focus,
.add-task-modal select:focus,
.add-task-modal textarea:focus {
    border-color: #3498db;
    background: #fff;
}

.add-task-modal textarea {
    resize: vertical;
    min-height: 90px;
}

.modal-form-row {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.modal-form-col {
    flex: 1;
}

.modal-form-col label {
    margin-top: 0;
}

.btn-create {
    background: #3498db;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-create:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* ─── Board ─────────────────────────────────────── */
.board {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

/* ─── Columns ───────────────────────────────────── */
.column {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    min-height: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.column h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
}

#todo h2       { border-color: #e74c3c; color: #e74c3c; }
#inprogress h2 { border-color: #f39c12; color: #f39c12; }
#done h2       { border-color: #2ecc71; color: #2ecc71; }

/* ─── Cards ─────────────────────────────────────── */
.card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: grab;
    position: relative;
    border-left: 4px solid #3498db;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.card strong {
    font-size: 0.95rem;
    color: #2c3e50;
    flex: 1;
}

.card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    margin-bottom: 8px;
}

.deadline {
    font-size: 0.78rem;
    color: #999;
    margin-top: 6px;
}

/* ─── Priority Card Border Colors ───────────────── */
.card.priority-low      { border-left-color: #95a5a6; }
.card.priority-medium   { border-left-color: #3498db; }
.card.priority-high     { border-left-color: #f39c12; }
.card.priority-urgent   { border-left-color: #e74c3c; }
.card.priority-fire     { border-left-color: #c0392b; }

/* ─── Priority Badges ───────────────────────────── */
.priority-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-badge.low     { background: #ecf0f1; color: #7f8c8d; }
.priority-badge.medium  { background: #d6eaf8; color: #2980b9; }
.priority-badge.high    { background: #fef9e7; color: #f39c12; }
.priority-badge.urgent  { background: #fadbd8; color: #e74c3c; }
.priority-badge.fire    { background: #f9ebea; color: #c0392b; }

/* ─── Modal Overlay ─────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Modal Box ─────────────────────────────────── */
.modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 460px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    flex: 1;
}

.modal-description {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
    min-height: 20px;
}

.modal-deadline {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

/* ─── Modal Actions ─────────────────────────────── */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-actions button {
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.modal-actions button:hover {
    transform: translateY(-1px);
}

.btn-edit   { background: #3498db; color: #fff; }
.btn-edit:hover   { background: #2980b9; }

.btn-delete { background: #e74c3c; color: #fff; }
.btn-delete:hover { background: #c0392b; }

.btn-close  { background: #ecf0f1; color: #555; margin-left: auto; }
.btn-close:hover  { background: #dde1e4; }

/* ─── Edit Mode Form ────────────────────────────── */
#edit-mode h2 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 18px;
}

#edit-mode label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    margin-top: 14px;
}

#edit-mode input,
#edit-mode select,
#edit-mode textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
    background: #fafafa;
}

#edit-mode input:focus,
#edit-mode select:focus,
#edit-mode textarea:focus {
    border-color: #3498db;
    background: #fff;
}

#edit-mode textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── Utility ───────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ─── Created Date ──────────────────────────────── */
.created-date {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 6px;
}

/* ─── Counter ───────────────────────────────────── */
.counter {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
    padding: 3px 0;
}

.counter.remaining  { color: #27ae60; }
.counter.open       { color: #7f8c8d; }
.counter.due-today  { color: #f39c12; }
.counter.overdue    { color: #e74c3c; font-weight: 700; }

/* ─── Modal Counter & Created ───────────────────── */
.modal-counter {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-created {
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 4px;
}

/* ─── Sort Bar ──────────────────────────────────── */
.sort-bar {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 14px;
}

.sort-btn {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f0f2f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    white-space: nowrap;
}

.sort-btn:hover {
    background: #e8eaf0;
    color: #555;
    border-color: #ccc;
}

.sort-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* ─── Filter Bar ────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.filter-btn {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f2f5;
    color: #888;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.filter-btn.low.active    { background: #95a5a6; border-color: #95a5a6; color: #fff; }
.filter-btn.medium.active { background: #3498db; border-color: #3498db; color: #fff; }
.filter-btn.high.active   { background: #f39c12; border-color: #f39c12; color: #fff; }
.filter-btn.urgent.active { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.filter-btn.fire.active   { background: #c0392b; border-color: #c0392b; color: #fff; }

.filter-btn.low:hover    { background: #ecf0f1; color: #7f8c8d; border-color: #95a5a6; }
.filter-btn.medium:hover { background: #d6eaf8; color: #2980b9; border-color: #3498db; }
.filter-btn.high:hover   { background: #fef9e7; color: #f39c12; border-color: #f39c12; }
.filter-btn.urgent:hover { background: #fadbd8; color: #e74c3c; border-color: #e74c3c; }
.filter-btn.fire:hover   { background: #f9ebea; color: #c0392b; border-color: #c0392b; }

/* ─── URL / Long word fix ───────────────────────── */
.card p,
.modal-description {
    overflow-wrap: break-word;
    word-break: break-word;
}

.card p a,
.modal-description a {
    color: #3498db;
    text-decoration: underline;
}

.card p a:hover,
.modal-description a:hover {
    color: #2980b9;
}


/* ═══════════════════════════════════════════════════
   AUTH PAGES — Login / Register
   ═══════════════════════════════════════════════════ */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.auth-logo {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ─── CSS Logo Mark (S) ─────────────────────────── */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-mark-sm {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: 7px;
}

.auth-card h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.auth-subtitle {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* ─── Form Groups ───────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    color: #aaa;
    font-size: 0.78rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.form-group input:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 4px;
}

/* ─── Primary Button ────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 6px;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ─── Auth Footer ───────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: #999;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ─── Alerts ────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert a {
    font-weight: 600;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success a {
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ═══════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════ */

.profile-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Profile Nav ───────────────────────────────── */
.profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-link,
.logout-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.logout-link {
    color: #ffcccc;
}

.logout-link:hover {
    background: rgba(255, 100, 100, 0.15);
}

/* ─── Profile Header ────────────────────────────── */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-header h1 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.member-since {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.profile-age {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ─── Stats Grid ────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ─── Profile Sections ──────────────────────────── */
.profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    text-align: left;
}

/* ═══════════════════════════════════════════════════
   REGISTRATION FORM — Wide Layout
   ═══════════════════════════════════════════════════ */

.auth-container-wide {
    max-width: 520px;
}

/* ─── Two-Column Row ────────────────────────────── */
.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 540px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ─── Required / Optional Indicators ────────────── */
.required {
    color: #e74c3c;
    font-weight: 400;
}

/* ─── Terms Checkbox ────────────────────────────── */
.terms-group {
    margin-top: 4px;
    margin-bottom: 22px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════
   FEEDBACK PAGE
   ═══════════════════════════════════════════════════ */

.feedback-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.feedback-header {
    text-align: center;
    margin-bottom: 28px;
}

.feedback-header h1 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.feedback-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.feedback-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feedback-section h2 {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

/* ─── Feedback Link in Top Bar ──────────────────── */
.top-link.feedback {
    color: #f39c12;
}

.top-link.feedback:hover {
    background: #fef9e7;
}

/* ─── Feedback List ─────────────────────────────── */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid #ddd;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.feedback-message {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.feedback-date {
    font-size: 0.78rem;
    color: #bbb;
}

/* ─── Feedback Type Badges ──────────────────────── */
.feedback-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-feedback        { background: #d6eaf8; color: #2980b9; }
.type-suggestion      { background: #d5f5e3; color: #27ae60; }
.type-feature_request { background: #fef9e7; color: #f39c12; }
.type-bug             { background: #fadbd8; color: #e74c3c; }

/* ─── Feedback Status Badges ────────────────────── */
.feedback-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new         { background: #ebf5fb; color: #3498db; }
.status-read        { background: #f0f2f5; color: #7f8c8d; }
.status-in_progress { background: #fef9e7; color: #f39c12; }
.status-resolved    { background: #d5f5e3; color: #27ae60; }
.status-dismissed   { background: #f0f2f5; color: #bbb; }

/* ─── Feedback Item Border Colors by Type ───────── */
.feedback-item.fb-type-feedback        { border-left-color: #3498db; }
.feedback-item.fb-type-suggestion      { border-left-color: #27ae60; }
.feedback-item.fb-type-feature_request { border-left-color: #f39c12; }
.feedback-item.fb-type-bug             { border-left-color: #e74c3c; }


/* ═══════════════════════════════════════════════════
   LEGAL / PRIVACY PAGE
   ═══════════════════════════════════════════════════ */

.legal-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.legal-nav {
    margin-bottom: 24px;
}

.legal-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.legal-card h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.legal-updated {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 30px;
}

.legal-card h2 {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-top: 28px;
    margin-bottom: 10px;
    text-align: left;
}

.legal-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}


/* ═══════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a2e;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    flex: 1;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-text a:hover {
    color: #93c5fd;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-accept {
    background: #3498db;
    color: #fff;
}

.cookie-accept:hover {
    background: #2980b9;
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 640px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #9ca3af;
}

.app-footer a {
    color: #9ca3af;
    text-decoration: none;
}

.app-footer a:hover {
    color: #4f46e5;
}

/* ═══════════════════════════════════════════════════
   MOBILE BOARD — Swipeable columns
   ═══════════════════════════════════════════════════ */

   @media (max-width: 768px) {

    /* ─── Top bar ── */
    .top-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-bar h1 {
        font-size: 1rem;
    }

    .top-bar-right {
        padding: 4px 8px 4px 10px;
        gap: 2px;
    }

    .top-link {
        font-size: 0.75rem;
        padding: 4px 7px;
    }

    .greeting {
        font-size: 0.78rem;
        padding-right: 6px;
    }

    /* ─── New task button ── */
    .add-task-bar {
        padding: 10px 14px;
    }

    .add-task-btn {
        width: 100%;
        justify-content: center;
    }

    /* ─── Column indicator dots ── */
    .column-indicator {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 8px 0 4px;
    }

    .column-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #cbd5e1;
        transition: all 0.2s;
        cursor: pointer;
    }

    .column-dot.active {
        background: #2563eb;
        width: 22px;
        border-radius: 4px;
    }

    /* ─── Column label shown above cards ── */
    .mobile-column-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px 8px;
        font-size: 0.78rem;
        color: #94a3b8;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-col-nav {
        display: flex;
        gap: 6px;
    }

    .mobile-col-btn {
        background: #f1f5f9;
        border: none;
        border-radius: 6px;
        padding: 4px 10px;
        font-size: 0.78rem;
        color: #64748b;
        cursor: pointer;
        font-weight: 600;
    }

    .mobile-col-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

    /* ─── Board becomes a swipeable container ── */
    .board {
        display: block;
        overflow: hidden;
        padding: 0;
        position: relative;
    }

    .board-swipe-wrapper {
        display: flex;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    /* ─── Each column takes full width ── */
    .column {
        min-width: 100%;
        width: 100%;
        flex-shrink: 0;
        padding: 0 12px 80px;
        box-sizing: border-box;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* Hide the h2 column title on mobile (shown in indicator) */
    .column h2 {
        display: none;
    }

    /* ─── Sort + filter bars ── */
    .sort-bar {
        gap: 6px;
        margin-bottom: 8px;
    }

    .sort-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .filter-bar {
        gap: 5px;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .filter-btn {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    /* ─── Cards ── */
    .card {
        margin-bottom: 10px;
        padding: 14px;
    }

    /* ─── Move To button — mobile only ── */
    .move-to-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: 10px;
        padding: 6px 12px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #475569;
        cursor: pointer;
        width: 100%;
        justify-content: center;
    }

    .move-to-btn:active {
        background: #e2e8f0;
    }

    /* ─── Move to dropdown ── */
    .move-to-dropdown {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 50;
        overflow: hidden;
    }

    .move-to-dropdown.open {
        display: block;
    }

    .move-to-option {
        display: block;
        width: 100%;
        padding: 13px 16px;
        border: none;
        background: none;
        text-align: left;
        font-size: 0.88rem;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
    }

    .move-to-option:last-child {
        border-bottom: none;
    }

    .move-to-option:active {
        background: #f8fafc;
    }

    .move-to-option.current {
        color: #94a3b8;
        pointer-events: none;
    }

    .card-move-wrap {
        position: relative;
    }

    /* ─── Footer ── */
    .app-footer {
        padding: 12px 16px;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    /* ─── Modals ── */
    .modal {
        width: 95vw;
        max-width: 95vw;
        margin: 10px auto;
        padding: 20px 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Hide move-to button on desktop */
@media (min-width: 769px) {
    .move-to-btn         { display: none !important; }
    .move-to-dropdown    { display: none !important; }
    .card-move-wrap      { display: none !important; }
    .column-indicator    { display: none !important; }
    .mobile-column-label { display: none !important; }
    .board-swipe-wrapper { display: contents; }
}

/* ═══════════════════════════════════════════════════
   CUSTOM FORM CONTROLS — Select & Date
   ═══════════════════════════════════════════════════ */

/* ─── Base style for both select and date inputs ── */
.modal select,
.modal input[type="date"] {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a2e;
    background-color: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.modal select:focus,
.modal input[type="date"]:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal select:hover,
.modal input[type="date"]:hover {
    border-color: #94a3b8;
    background: #fff;
}

/* ─── Custom arrow for select ── */
.modal-form-col {
    position: relative;
}

.modal-form-col select {
    padding-right: 40px; /* space for arrow */
}

.modal-form-col::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
    pointer-events: none;
    margin-top: 10px; /* offset for the label above */
}

/* ─── Calendar icon for date input ── */
.modal input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.modal input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: #e0e7ff;
}

/* ─── Labels above controls ── */
.modal label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
    margin-top: 14px;
}

.modal label:first-child {
    margin-top: 0;
}

/* ─── Text inputs in modal ── */
.modal input[type="text"],
.modal textarea {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    resize: vertical;
}

.modal input[type="text"]:focus,
.modal textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal input[type="text"]:hover,
.modal textarea:hover {
    border-color: #94a3b8;
    background: #fff;
}

/* ─── Priority select — color coded options ── */
.modal select option[value="low"]    { color: #64748b; }
.modal select option[value="medium"] { color: #2563eb; }
.modal select option[value="high"]   { color: #f59e0b; }
.modal select option[value="urgent"] { color: #ef4444; }
.modal select option[value="fire"]   { color: #991b1b; }

/* ─── Priority select — color the select itself based on value ── */
.modal select.priority-low    { border-color: #e5e7eb; color: #64748b; }
.modal select.priority-medium { border-color: #bfdbfe; color: #2563eb; background: #eff6ff; }
.modal select.priority-high   { border-color: #fde68a; color: #d97706; background: #fffbeb; }
.modal select.priority-urgent { border-color: #fecaca; color: #ef4444; background: #fef2f2; }
.modal select.priority-fire   { border-color: #fca5a5; color: #991b1b; background: #fff1f1; }

/* ─── Required star ── */
.required {
    color: #ef4444;
    margin-left: 2px;
}

/* ─── Modal form row (priority + date side by side) ── */
.modal-form-row {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.modal-form-col {
    flex: 1;
    min-width: 0;
}