/* ===== OurProjectGrid - Monday.com-Inspired Design System ===== */

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #8B5CF6;

    /* Status colours */
    --status-draft: #94A3B8;
    --status-proposed: #3B82F6;
    --status-in-review: #F59E0B;
    --status-approved: #10B981;
    --status-in-progress: #6366F1;
    --status-on-hold: #F97316;
    --status-completed: #059669;
    --status-cancelled: #EF4444;

    /* Priority colours */
    --priority-low: #94A3B8;
    --priority-medium: #3B82F6;
    --priority-high: #F59E0B;
    --priority-urgent: #EF4444;

    /* Category colours */
    --cat-renovation: #F97316;
    --cat-equipment: #6366F1;
    --cat-menu: #10B981;
    --cat-marketing: #EC4899;
    --cat-staffing: #8B5CF6;
    --cat-compliance: #EF4444;
    --cat-general: #64748B;
    --cat-event: #3B82F6;

    /* UI */
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1E1B4B;
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo h2,
.auth-logo h1,
.public-logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-logo h2 span,
.auth-logo h1 span,
.public-logo span {
    color: var(--primary-light);
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.15s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 4px;
}

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

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

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

.user-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.logout-link {
    color: rgba(255,255,255,0.5) !important;
}

.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.page-content {
    padding: 24px;
}

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

.auth-body {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h1 {
    font-size: 1.5rem;
    color: var(--text);
}

.auth-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ===== FORMS ===== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: border-color 0.15s;
    background: white;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

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

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--border-light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-success {
    background: var(--status-approved);
    color: white;
}

.btn-danger {
    background: var(--status-cancelled);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--border-light);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* ===== ALERTS ===== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ===== STATUS & PRIORITY PILLS ===== */

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-draft { background: #F1F5F9; color: #475569; }
.status-proposed { background: #DBEAFE; color: #1D4ED8; }
.status-in_review, .status-in-review { background: #FEF3C7; color: #B45309; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-in_progress, .status-in-progress { background: #E0E7FF; color: #4338CA; }
.status-on_hold, .status-on-hold { background: #FFEDD5; color: #C2410C; }
.status-completed { background: #D1FAE5; color: #047857; }
.status-cancelled { background: #FEE2E2; color: #B91C1C; }

.priority-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low { background: #F1F5F9; color: #64748B; }
.priority-medium { background: #DBEAFE; color: #2563EB; }
.priority-high { background: #FEF3C7; color: #D97706; }
.priority-urgent { background: #FEE2E2; color: #DC2626; }

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.cat-renovation { background: #FFEDD5; color: #C2410C; }
.cat-equipment { background: #E0E7FF; color: #4338CA; }
.cat-menu { background: #D1FAE5; color: #047857; }
.cat-marketing { background: #FCE7F3; color: #BE185D; }
.cat-staffing { background: #EDE9FE; color: #6D28D9; }
.cat-compliance { background: #FEE2E2; color: #DC2626; }
.cat-general { background: #F1F5F9; color: #475569; }
.cat-event { background: #DBEAFE; color: #2563EB; }

/* ===== DASHBOARD BOARD VIEW ===== */

.board-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.board-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.board-filters {
    display: flex;
    gap: 8px;
}

.board-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.board-column {
    background: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-height: 200px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 4px 8px;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.column-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.column-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 10px;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 12px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.card-budget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.card-budget .amount {
    font-weight: 600;
    color: var(--text);
}

.card-progress {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-footer .viewers {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* ===== PROJECTS LIST VIEW ===== */

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.view-toggle {
    display: flex;
    background: var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-toggle button {
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-light);
}

.view-toggle button.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ===== PROJECT DETAIL ===== */

.project-hero {
    position: relative;
    margin: -24px -24px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 24px;
    color: white;
}

.project-hero.has-cover {
    background-size: cover;
    background-position: center;
}

.project-hero.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.project-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.project-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-hero-meta .status-pill {
    font-size: 0.8rem;
}

.project-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.project-tab {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.15s;
}

.project-tab:hover {
    color: var(--text);
}

.project-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== SECTIONS ===== */

.section-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.section-body {
    padding: 20px;
}

.section-content {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* ===== COST TABLE ===== */

.cost-table {
    width: 100%;
    border-collapse: collapse;
}

.cost-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.cost-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.cost-table tr:hover td {
    background: var(--border-light);
}

.cost-table .cost-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cost-total-row {
    background: var(--border-light);
    font-weight: 600;
}

.cost-total-row td {
    border-bottom: none;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ===== MILESTONES ===== */

.milestone-timeline {
    position: relative;
    padding-left: 30px;
}

.milestone-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.milestone-item {
    position: relative;
    padding-bottom: 24px;
}

.milestone-dot {
    position: absolute;
    left: -30px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-dot.completed {
    background: var(--status-completed);
    border-color: var(--status-completed);
    color: white;
}

.milestone-dot.in_progress, .milestone-dot.in-progress {
    background: var(--status-in-progress);
    border-color: var(--status-in-progress);
    color: white;
}

.milestone-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.milestone-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

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

/* ===== IMAGE GALLERY ===== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.8rem;
}

/* ===== UPDATES / ACTIVITY FEED ===== */

.update-feed {
    position: relative;
    padding-left: 24px;
}

.update-item {
    position: relative;
    padding-bottom: 20px;
    border-left: 2px solid var(--border);
    padding-left: 20px;
    margin-left: -1px;
}

.update-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
}

.update-item.status-change::before { background: var(--status-in-progress); }
.update-item.milestone::before { background: var(--status-completed); }
.update-item.cost-update::before { background: var(--status-in-review); }

.update-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.update-content {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.update-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== PUBLIC VIEW ===== */

.public-body {
    background: var(--bg);
    min-height: 100vh;
}

.public-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.public-header {
    padding: 20px 0;
    text-align: center;
}

.public-logo {
    font-size: 1.1rem;
    color: var(--text);
}

.public-main {
    padding-bottom: 40px;
}

.public-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.public-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
}

.public-hero.has-cover {
    background-size: cover;
    background-position: center;
}

.public-hero.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.public-hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 32px;
}

.public-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.public-hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0.9;
    font-size: 0.9rem;
}

.public-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.public-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

/* Budget summary bar */
.budget-bar-container {
    margin: 16px 0;
}

.budget-bar {
    height: 24px;
    background: var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--status-approved), var(--status-in-progress));
    transition: width 0.5s;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
}

.budget-labels .spent { color: var(--primary); font-weight: 600; }
.budget-labels .total { color: var(--text-light); }

/* Acknowledge form */
.acknowledge-section {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.acknowledge-section h2 {
    border: none;
    margin-bottom: 8px;
}

.acknowledge-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.acknowledge-form {
    max-width: 400px;
    margin: 0 auto;
}

.acknowledge-form .form-group {
    text-align: left;
}

.acknowledged-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D1FAE5;
    color: #065F46;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
}

/* Viewers list */
.viewers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.viewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--border-light);
}

.viewer-badge.acknowledged {
    background: #D1FAE5;
    color: #065F46;
}

.viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.viewer-badge.acknowledged .viewer-dot {
    background: var(--status-completed);
}

/* ===== COMMENTS ===== */

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--border-light);
}

.comment-item.admin-reply {
    background: #EEF2FF;
    margin-left: 24px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== TABLES ===== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--border-light);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
    background: #FAFBFF;
}

/* ===== MODALS ===== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ===== EMPTY STATES ===== */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== UPLOAD AREA ===== */

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.upload-area:hover {
    border-color: var(--primary);
}

.upload-area p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== SETTINGS ===== */

.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .board-columns {
        grid-template-columns: 1fr;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-hero h1, .public-hero h1 {
        font-size: 1.5rem;
    }

    .board-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cost-table {
        font-size: 0.8rem;
    }

    .cost-table th, .cost-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .board-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== WISHLIST ===== */

.wl-page-header { margin-bottom: 24px; }
.wl-page-header h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.wl-subtitle { color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }

.wl-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.wl-stat {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.wl-stat-highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.wl-stat-highlight .wl-stat-value { color: white !important; }
.wl-stat-highlight .wl-stat-label { color: rgba(255,255,255,0.85); }

.wl-stat-value { font-size: 1.5rem; font-weight: 700; }
.wl-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

.wl-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.wl-tab {
    padding: 7px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.wl-tab:hover { border-color: var(--primary); color: var(--primary); }
.wl-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.wl-group { margin-bottom: 28px; }

.wl-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wl-group-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }

.wl-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.wl-group-count {
    background: var(--border-light);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wl-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

.wl-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: all 0.2s;
}

.wl-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.wl-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.wl-item-name { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 6px; }

.wl-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
    white-space: nowrap;
    background: #ecfdf5;
    padding: 4px 12px;
    border-radius: 8px;
}

.wl-item-badges { display: flex; gap: 5px; flex-wrap: wrap; }

.wl-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wl-status-pending { background: #fef3c7; color: #92400e; }
.wl-status-approved { background: #d1fae5; color: #065f46; }
.wl-status-rejected { background: #fce7f3; color: #9d174d; }
.wl-status-discussing { background: #dbeafe; color: #1e40af; }
.wl-status-delivered { background: #e0e7ff; color: #3730a3; }
.wl-status-installed { background: #d1fae5; color: #065f46; }

.wl-priority-low { background: #f1f5f9; color: #64748b; }
.wl-priority-medium { background: #dbeafe; color: #1e40af; }
.wl-priority-high { background: #fef3c7; color: #92400e; }
.wl-priority-eho_required { background: #ede9fe; color: #5b21b6; }
.wl-major { background: #fce7f3; color: #9d174d; }

.wl-item-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.wl-item-note {
    font-size: 0.78rem;
    color: var(--text-light);
    background: var(--border-light);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.wl-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.wl-item-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.wl-item-actions { display: flex; gap: 6px; align-items: center; }

.wl-import-wrap { position: relative; }

.wl-import-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    margin-bottom: 4px;
}

.wl-import-dropdown.show { display: block; }

.wl-import-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text);
    transition: background 0.15s;
}

.wl-import-dropdown button:hover { background: var(--border-light); }

/* Dashboard wishlist summary */
.wl-dashboard-summary { margin-top: 8px; }

.wl-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.wl-summary-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--border-light);
}

.wl-summary-card.wl-summary-eho {
    border-left: 3px solid #7c3aed;
}

.wl-summary-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.wl-summary-card-header i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.wl-summary-eho .wl-summary-card-header i { color: #7c3aed; }

.wl-summary-count {
    margin-left: auto;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.wl-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.wl-summary-item:last-child { margin-bottom: 0; }

.wl-summary-item-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-summary-item-price {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.85rem;
    white-space: nowrap;
}

.wl-summary-more {
    text-align: center;
    padding: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wl-summary-more a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.wl-summary-more a:hover { text-decoration: underline; }

.wl-summary-stats { display: flex; flex-direction: column; gap: 2px; }

.wl-summary-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.wl-summary-stat-row:last-child { border-bottom: none; }

.wl-summary-stat-row strong {
    color: var(--text-heading);
}

/* Clickable items */
.wl-item-clickable { cursor: pointer; transition: transform 0.1s, box-shadow 0.15s; }
.wl-item-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Modal */
.wl-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wl-modal-overlay.show { display: flex; }

.wl-modal {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.wl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}

.wl-modal-header h2 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
}

.wl-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.wl-modal-close:hover { background: var(--bg, #f1f5f9); }

.wl-modal-body { padding: 24px; }

.wl-modal-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
}

/* Detail progress bar */
.wl-detail-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 0;
}

.wl-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wl-progress-step span {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    font-weight: 500;
    text-transform: capitalize;
}

.wl-progress-step.done span { color: var(--text-heading, #1e293b); font-weight: 600; }

.wl-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-light, #e2e8f0);
    background: var(--bg-card, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
}

.wl-progress-step.done .wl-progress-dot { color: #fff; }

.wl-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-light, #e2e8f0);
    margin: 0 4px;
    margin-bottom: 22px;
}

.wl-progress-line.done { background: #10b981; }

/* Detail grid */
.wl-detail-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
}

.wl-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading, #1e293b);
    margin-bottom: 12px;
}

.wl-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.wl-detail-section {
    margin-bottom: 16px;
}

.wl-detail-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    margin: 0 0 6px;
    font-weight: 600;
}

.wl-detail-section p {
    font-size: 0.9rem;
    color: var(--text, #334155);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.wl-detail-link {
    font-size: 0.85rem;
    color: var(--primary, #6366f1);
    text-decoration: none;
    word-break: break-all;
}
.wl-detail-link:hover { text-decoration: underline; }

.wl-detail-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wl-timeline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text, #334155);
}

.wl-timeline-row i { width: 16px; text-align: center; font-size: 0.75rem; }

/* Status action buttons */
.wl-detail-actions h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    margin: 0 0 10px;
    font-weight: 600;
}

.wl-status-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text, #334155);
    margin-bottom: 6px;
    transition: all 0.15s;
}

.wl-status-btn:hover:not(:disabled) {
    border-color: var(--sc);
    background: color-mix(in srgb, var(--sc) 8%, white);
    color: var(--sc);
}

.wl-status-btn.current {
    border-color: var(--sc);
    background: color-mix(in srgb, var(--sc) 10%, white);
    color: var(--sc);
    font-weight: 600;
    cursor: default;
}

.wl-status-btn i { width: 16px; text-align: center; }

.wl-notes-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}

.wl-notes-input textarea {
    width: 100%;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    background: var(--bg, #f8fafc);
    color: var(--text, #334155);
    box-sizing: border-box;
}

.wl-notes-input textarea:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Didn't Buy button on cards */
.wl-btn-didnt-buy {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: none;
    border: 1px solid #fecaca;
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.wl-btn-didnt-buy:hover { background: #fef2f2; border-color: #ef4444; }

/* Didn't Buy in modal */
.wl-didnt-buy-btn:hover:not(:disabled) {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.wl-didnt-buy-notice {
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
}

.wl-didnt-buy-reason {
    padding: 8px 12px;
    background: var(--bg, #f8fafc);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text, #334155);
    margin-top: 8px;
    line-height: 1.5;
}

/* Rejected badge */
.wl-status-rejected {
    background: #fef2f2;
    color: #ef4444;
}

@media (max-width: 768px) {
    .wl-items-grid { grid-template-columns: 1fr; }
    .wl-stats-row { grid-template-columns: repeat(2, 1fr); }
    .wl-summary-grid { grid-template-columns: 1fr; }
    .wl-detail-grid { grid-template-columns: 1fr; }
    .wl-modal { max-height: 95vh; border-radius: 12px; }
    .wl-detail-progress { overflow-x: auto; }
}
