/* ============================================
   ERSIN'S 50. — CLEAN MINIMAL UI
   Emerald Accent + Roboto + No Animations
   ============================================ */

/* === Design System Variables === */
:root {
    /* Emerald Palette */
    --emerald: #059669;
    --emerald-light: #34D399;
    --emerald-dark: #047857;
    --emerald-bg: #ECFDF5;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic */
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --success: #059669;
    --success-bg: #ECFDF5;

    /* Layout */
    --bottom-nav-height: 64px;
    --top-nav-height: 60px;
}

/* === Only animation: flash slideDown === */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--emerald-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--emerald); }
img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea {
    font-family: inherit; font-size: inherit; border: none; outline: none;
}

/* === Forms === */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-800);
    transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

textarea { resize: vertical; }

label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
    border: none;
}

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

.btn-outline {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald-dark);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--emerald-dark); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #B91C1C; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }
.btn-xs { padding: 0.25rem 0.75rem; font-size: 0.8rem; min-height: 30px; }

.btn-icon {
    background: none; border: none; cursor: pointer; font-size: 1.25rem;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--gray-400);
    transition: background 0.15s, color 0.15s;
}
.btn-icon:hover { background: var(--danger-bg); color: var(--danger); }

.btn-logout {
    display: flex; align-items: center; color: var(--gray-400);
    transition: color 0.15s;
}
.btn-logout:hover { color: var(--white); }

/* === Top Nav === */
.top-nav {
    background: var(--gray-900);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--top-nav-height);
}

.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.125rem; }

.desktop-nav {
    display: none;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    color: var(--gray-400);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
    color: var(--emerald-light);
    background: rgba(5, 150, 105, 0.15);
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    color: var(--gray-300);
    font-size: 0.875rem;
}

/* === Bottom Nav === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--gray-900);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-400);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.5rem;
    min-width: 64px;
    transition: color 0.15s;
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--emerald-light);
}

.bottom-nav-item svg { stroke: currentColor; }

/* === Main Content === */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

/* === Page Header === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
    font-weight: 700;
}

.back-link {
    font-weight: 500;
    font-size: 0.9rem;
}

/* === Flash Messages === */
.flash {
    max-width: 1200px;
    margin: 0.75rem auto;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    animation: slideDown 0.3s ease;
}
.flash-success { background: var(--success-bg); color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECACA; }

/* === Countdown === */
.countdown-card {
    background: var(--gray-900);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.countdown-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    color: var(--gray-300);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
}

.countdown-unit { text-align: center; }

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--emerald-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    min-width: 3.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-top: 0.4rem;
    font-weight: 500;
}

.countdown-sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-light);
    opacity: 0.4;
    margin-top: 0.75rem;
}

.countdown-date {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.125rem;
    text-align: center;
}

.stat-icon { font-size: 1.5rem; margin-bottom: 0.375rem; }

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
    font-weight: 400;
}

/* === Sections === */
.section { margin-bottom: 2rem; }

.section-title {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* === Task List Compact (Dashboard) === */
.task-list-compact { display: flex; flex-direction: column; gap: 0.5rem; }

.task-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-800);
    transition: border-color 0.15s;
}

.task-item-compact:hover {
    border-color: var(--emerald);
    color: var(--gray-800);
}

.task-item-title { flex: 1; font-weight: 500; }

.priority-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.priority-dot.priority-high { background: var(--danger); }
.priority-dot.priority-medium { background: var(--warning); }
.priority-dot.priority-low { background: var(--success); }

/* === Activity Feed === */
.activity-feed { display: flex; flex-direction: column; gap: 0; }

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: var(--emerald-bg);
    margin-top: 0.1rem;
}

.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.activity-content { flex: 1; }
.activity-detail { color: var(--gray-500); }

.activity-time {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.badge-open { background: #DBEAFE; color: #1D4ED8; }
.badge-in_progress { background: var(--warning-bg); color: #B45309; }
.badge-done { background: var(--success-bg); color: #065F46; }
.badge-priority-high { background: var(--danger-bg); color: var(--danger); }
.badge-priority-medium { background: var(--warning-bg); color: #B45309; }
.badge-priority-low { background: var(--success-bg); color: #065F46; }
.badge-category { background: #F3E8FF; color: #7C3AED; }
.badge-role { background: #EEF2FF; color: #4338CA; }
.badge-status-active { background: var(--success-bg); color: #065F46; }
.badge-status-invited { background: var(--warning-bg); color: #B45309; }
.badge-status-disabled { background: var(--gray-100); color: var(--gray-500); }

/* === Filter Bar === */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.filter-select {
    width: auto;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    flex-shrink: 0;
    border-radius: 8px;
}
.filter-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--gray-700);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip.active, .filter-chip:hover {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

/* === Task Grid === */
.task-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.task-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.125rem;
    border-top: 3px solid var(--gray-300);
    text-decoration: none;
    color: var(--gray-800);
    display: block;
    transition: border-color 0.15s;
}

.task-card:hover {
    border-color: var(--emerald);
    color: var(--gray-800);
}

.task-card-open { border-top-color: #2563EB; }
.task-card-in_progress { border-top-color: var(--warning); }
.task-card-done { border-top-color: var(--success); opacity: 0.7; }

.task-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.task-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.task-card-category {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.task-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.task-meta-item.overdue { color: var(--danger); font-weight: 600; }

/* === Task Detail === */
.task-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.task-detail-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.task-detail-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.task-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.task-description {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    line-height: 1.7;
    white-space: pre-wrap;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.overdue { color: var(--danger) !important; font-weight: 600; }

/* === Comments === */
.comments-section { margin-top: 1rem; }
.comment-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

.comment {
    padding: 0.875rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-100);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
}
.comment-header time { color: var(--gray-400); }
.comment-body { font-size: 0.9rem; line-height: 1.5; }

.comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}
.comment-form textarea {
    flex: 1;
    min-height: 44px;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    position: relative;
}

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

.gallery-file {
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-800);
}
.file-icon { font-size: 2.5rem; }
.file-ext { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; }

.gallery-info { padding: 0.625rem 0.75rem; }

.gallery-name {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.125rem;
}

.gallery-delete {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.gallery-item:hover .gallery-delete { opacity: 1; }

.gallery-delete .btn-icon {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    width: 28px;
    height: 28px;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255, 255, 255, 0.1); border: none; color: white;
    font-size: 2rem; cursor: pointer; z-index: 10;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); border: none; color: white;
    font-size: 2rem; cursor: pointer; z-index: 10;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 4px;
}
.lightbox-caption {
    color: white;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

/* === Upload Dropzone === */
.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--gray-50);
}

.upload-dropzone:hover, .upload-dropzone.drag-over {
    border-color: var(--emerald);
    background: var(--emerald-bg);
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-progress { margin-top: 1rem; }

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.progress-fill {
    height: 100%;
    background: var(--emerald);
    border-radius: 3px;
    width: 0;
    transition: width 0.3s;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}
.modal.open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.125rem;
    color: var(--gray-900);
    font-weight: 600;
}

.modal-close {
    background: none; border: none; font-size: 1.5rem;
    color: var(--gray-400); cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: color 0.15s;
}
.modal-close:hover { color: var(--gray-700); }

.modal-body { padding: 1.25rem; }

/* === Form Groups === */
.form-group { margin-bottom: 1rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.inline-form { display: inline; }
.input-disabled { background: var(--gray-100); color: var(--gray-500); }

/* === Auth Pages === */
.auth-body {
    background: var(--gray-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-form .form-group { margin-bottom: 1.25rem; }

/* === Table === */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.data-table tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

.role-select {
    width: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-width: 1px;
}
.action-buttons { display: flex; gap: 0.375rem; flex-wrap: wrap; }

/* === User Cards (Mobile) === */
.user-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    background: var(--emerald);
}

/* === Invite URL Card === */
.invite-url-card {
    background: var(--emerald-bg);
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.invite-url-row {
    display: flex;
    gap: 0.5rem;
}

.invite-url-input {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem;
    background: var(--white);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}
.empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* === Utilities === */
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.8rem; }

/* === Mobile Table === */
@media (max-width: 768px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--gray-100);
    }
    .data-table td:last-child { border-bottom: none; }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--gray-700);
        margin-right: 1rem;
    }
}

/* === Desktop === */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }

    .bottom-nav { display: none; }

    .desktop-nav {
        display: flex;
    }

    .user-info {
        display: flex;
    }

    .main-content {
        padding: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .countdown-number {
        font-size: 3rem;
        min-width: 5rem;
        min-height: 5rem;
        padding: 0.75rem 0.5rem;
    }
    .countdown-sep {
        font-size: 2rem;
        margin-top: 1.2rem;
    }

    .modal.open {
        align-items: center;
    }
    .modal-content {
        max-width: 560px;
        border-radius: 12px;
    }
}

@media (min-width: 1024px) {
    .task-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
