/* ============================================
   家庭许愿机 - Desktop/Landscape Stylesheet
   ============================================ */

:root {
    --primary: #4CAF50;
    --primary-light: #66BB6A;
    --primary-dark: #388E3C;
    --primary-bg: rgba(76, 175, 80, 0.08);
    --accent: #FF9800;
    --accent-light: #FFB74D;
    --danger: #f44336;
    --danger-light: #ef5350;
    --warning: #FF9800;
    --info: #2196F3;

    --bg-body: #f5f3ef;
    --bg-surface: #ffffff;
    --bg-sidebar: #1a2332;
    --bg-sidebar-hover: rgba(255,255,255,0.08);
    --bg-sidebar-active: rgba(76,175,80,0.15);

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-sidebar: rgba(255,255,255,0.7);
    --text-sidebar-active: #ffffff;

    --border: #e2e0dc;
    --border-light: #f0eee9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);

    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --topbar-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

/* ---- App Layout ---- */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    transition: width var(--transition), min-width var(--transition);
    z-index: 100;
    position: relative;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.logo-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: opacity var(--transition), width var(--transition);
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--text-sidebar);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-sidebar);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-sidebar-active);
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: var(--primary-light);
}

.nav-item.active svg {
    stroke: var(--primary-light);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-label {
    transition: opacity var(--transition);
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.version-info {
    color: var(--text-sidebar);
    font-size: 12px;
    opacity: 0.5;
}

/* ---- Main Wrapper ---- */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ---- Top Bar ---- */
.topbar {
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-status {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-primary);
}

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

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

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

/* ---- Content Area ---- */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ---- Cards ---- */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ---- Dashboard ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.member-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
}

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

.member-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.member-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.member-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.member-balance {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.member-balance .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.member-balance .unit {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---- Stats Row ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-card .stat-value.green { color: var(--primary); }
.stat-card .stat-value.orange { color: var(--accent); }
.stat-card .stat-value.red { color: var(--danger); }
.stat-card .stat-value.blue { color: var(--info); }

/* ---- Tables ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    background: var(--bg-body);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(76,175,80,0.03);
}

.data-table .actions {
    display: flex;
    gap: 6px;
}

/* ---- Progress Bar ---- */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-green {
    background: rgba(76,175,80,0.1);
    color: var(--primary-dark);
}

.badge-orange {
    background: rgba(255,152,0,0.1);
    color: #e65100;
}

.badge-red {
    background: rgba(244,67,54,0.1);
    color: var(--danger);
}

.badge-blue {
    background: rgba(33,150,243,0.1);
    color: var(--info);
}

.badge-gray {
    background: rgba(100,116,139,0.1);
    color: var(--text-secondary);
}

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

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

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

/* ---- Modal ---- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

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

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

.modal-content .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

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

/* ---- Wish Card ---- */
.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.wish-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: all var(--transition);
}

.wish-card:hover {
    box-shadow: var(--shadow-md);
}

.wish-card .wish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wish-card .wish-name {
    font-size: 16px;
    font-weight: 600;
}

.wish-card .wish-cost {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.wish-card .wish-member {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.wish-card .wish-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ---- Transfer History ---- */
.transfer-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.transfer-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
}

.transfer-details {
    flex: 1;
    min-width: 0;
}

.transfer-details .transfer-desc {
    font-size: 14px;
    font-weight: 500;
}

.transfer-details .transfer-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.transfer-amount {
    font-weight: 600;
    font-size: 14px;
}

.transfer-amount.positive { color: var(--primary); }
.transfer-amount.negative { color: var(--danger); }

/* ---- Analytics ---- */
.chart-container {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-container h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 240px;
    padding-top: 20px;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    max-width: 60px;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s ease;
    position: relative;
    min-height: 4px;
}

.bar:hover {
    opacity: 0.85;
}

.bar-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.bar-value {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ---- Section Header ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* ---- Login Overlay ---- */
.login-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    padding: 40px;
}

.login-overlay .login-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-overlay h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-overlay p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Two Column Layout ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .sidebar {
        width: var(--sidebar-collapsed);
        min-width: var(--sidebar-collapsed);
    }

    .sidebar .logo-text,
    .sidebar .nav-label,
    .sidebar .version-info {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }

    .sidebar .nav-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        top: 0;
        bottom: 0;
        z-index: 200;
        transition: left var(--transition);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar.mobile-open .logo-text,
    .sidebar.mobile-open .nav-label,
    .sidebar.mobile-open .version-info {
        opacity: 1;
        width: auto;
    }

    .sidebar.mobile-open .nav-item {
        justify-content: flex-start;
        padding: 10px 12px;
    }

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

    .sidebar-toggle {
        display: flex;
    }

    .content-area {
        padding: 16px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

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

    .two-col {
        grid-template-columns: 1fr;
    }

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

/* ---- Scrollbar ---- */
.content-area::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* ---- Avatar Colors ---- */
.avatar-0 { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.avatar-1 { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.avatar-2 { background: linear-gradient(135deg, #FF9800, #FFB74D); }
.avatar-3 { background: linear-gradient(135deg, #9C27B0, #BA68C8); }
.avatar-4 { background: linear-gradient(135deg, #f44336, #ef5350); }
.avatar-5 { background: linear-gradient(135deg, #00BCD4, #26C6DA); }

/* ---- Image Cropper ---- */
.cropper-container-wrapper {
    width: 100%;
    max-height: 300px;
    margin: 16px 0;
}

.cropper-container-wrapper img {
    max-width: 100%;
    display: block;
}

/* ---- Member Detail Panel ---- */
.member-detail-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.member-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.member-detail-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* ---- Penalty Card ---- */
.penalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.penalty-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.penalty-card:hover {
    box-shadow: var(--shadow-md);
}

.penalty-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(244,67,54,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

.penalty-info .penalty-name {
    font-size: 14px;
    font-weight: 600;
}

.penalty-info .penalty-amount {
    font-size: 13px;
    color: var(--danger);
    font-weight: 500;
}

.penalty-actions {
    display: flex;
    gap: 6px;
}

/* ---- Task Card ---- */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.task-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.task-card:hover {
    box-shadow: var(--shadow-md);
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(76,175,80,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

.task-info .task-name {
    font-size: 14px;
    font-weight: 600;
}

.task-info .task-reward {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.task-actions {
    display: flex;
    gap: 6px;
}
