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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #ffc107;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
body.dark-mode {
    --background: #0d1117;
    --background-secondary: #161b22;
    --surface: #21262d;
    --text: #f0f6fc;
    --text-light: #e6edf3;
    --text-secondary: #8b949e;
    --border: #30363d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.6);
    --primary: #58a6ff;
    --primary-dark: #1f6feb;
    --secondary: #3fb950;
    --danger: #f85149;
    --warning: #d29922;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Auth Screen */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.auth-header p {
    color: var(--text-light);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

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

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.complete-task {
    background: #10b981 !important;
    color: #000000 !important;
    border: 1px solid #0ea573 !important;
}

.complete-task:hover {
    background: #059669 !important;
    border-color: #047857 !important;
}

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

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: var(--danger);
    border-radius: 8px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Navbar */
.navbar {
    background: white;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: #6366f1;
    margin: 0;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    color: #6366f1;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    color: #4f46e5;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-menu-item {
    position: relative;
}

.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu-link:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.nav-menu-link.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-menu-icon {
    font-size: 1.2rem;
}

.nav-menu-text {
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text);
}

.nav-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Right Side Navigation */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-notifications {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.user-profile-btn {
    padding: 8px 12px 8px 8px !important;
    gap: 10px !important;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.user-name-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

.user-stats {
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
}

.user-points {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.user-level {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 300px;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-info strong {
    font-size: 1rem;
    color: var(--text);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Main Container */
.main-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--surface);
    padding: 15px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 15px 10px 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-subtitle {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.menu-category {
    margin-bottom: 20px;
}

.menu-category:first-child {
    margin-top: 0;
}

.category-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 0 0 10px 10px;
    padding-top: 10px;
}

.menu-category:first-child .category-title {
    padding-top: 0;
}

.nav-item {
    width: 100%;
    padding: 12px 12px;
    margin-bottom: 6px;
    background: none;
    border: none;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item:hover {
    background: var(--background);
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-item.active::before {
    transform: scaleY(1);
    background: white;
}

.nav-item.active .nav-description {
    color: rgba(255, 255, 255, 0.85);
}

.nav-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-description {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.2;
}

/* Quick Actions */
.menu-quick-actions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(118, 75, 162, 0.05));
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.menu-quick-actions .category-title {
    color: var(--primary);
    margin-left: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-action-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 75px;
}

.quick-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

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

.quick-icon {
    font-size: 1.8rem;
}

.quick-label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
    padding: 0 30px 20px;
    overflow-y: auto;
}

.view {
    display: none;
    opacity: 0;
    animation: fadeOut 0.2s ease-out;
    margin: 0;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-in forwards;
}

.view > h2 {
    margin: 0 0 15px 0;
    padding-top: 0;
}

#dashboard-view > h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Page Transition Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 0;
}

.view-header h2 {
    font-size: 2rem;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 0;
}

.stat-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-light);
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.dashboard-section {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-section h3 {
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--primary);
}

/* Chart Section */
.chart-section {
    grid-column: 1 / -1;
}

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

.chart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-select {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-select:hover {
    border-color: var(--primary);
}

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

.chart-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: var(--surface);
    border-radius: 8px;
    padding: 15px;
}

body.dark-mode .chart-select {
    background: #1a1f2e;
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .chart-container {
    background: #1a1f2e;
}

@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .chart-container {
        height: 300px;
    }
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

body.dark-mode .task-item {
    background: #1a1f2e;
    border: 1px solid var(--border);
}

.task-item:hover {
    transform: translateX(5px);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: var(--secondary);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.task-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

body.dark-mode .task-title {
    color: #000000;
}

.task-category {
    font-size: 0.9rem;
    color: var(--text-light);
}

body.dark-mode .task-category {
    color: #2a2a2a;
}

.task-points {
    background: var(--warning);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.task-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

body.dark-mode .task-description {
    color: #000000;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

body.dark-mode .task-meta {
    color: #2a2a2a;
}

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

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Rewards Grid */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.reward-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reward-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.reward-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.reward-description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.reward-cost {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 15px;
}

/* Leaderboard */
.leaderboard {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.leaderboard-item {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.leaderboard-item:hover {
    background: var(--background);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
}

.leaderboard-rank.top-1 { color: #fbbf24; }
.leaderboard-rank.top-2 { color: #94a3b8; }
.leaderboard-rank.top-3 { color: #cd7f32; }

.leaderboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.leaderboard-stats {
    font-size: 0.9rem;
    color: var(--text-light);
}

.leaderboard-points {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--warning);
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.member-stat {
    text-align: center;
}

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

.member-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Info Box */
.info-box {
    background: #dbeafe;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.info-box h3 {
    margin-bottom: 10px;
}

.invite-code-box {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 15px 0;
}

.invite-code-box code {
    background: var(--surface);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
/* iPad and Tablet (portrait and landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-menu-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .nav-menu-icon {
        font-size: 1.1rem;
    }

    .nav-user {
        gap: 6px;
    }

    .nav-user .icon-btn {
        font-size: 1.1rem;
        padding: 6px;
        width: 34px;
        height: 34px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .user-info span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 8px 12px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        padding: 4px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: calc(100vh - 60px);
        opacity: 1;
        overflow-y: auto;
    }

    .nav-menu-item {
        width: 100%;
    }

    .nav-menu-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 8px;
        padding-left: 20px;
        background: var(--surface);
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .user-dropdown .nav-dropdown-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        opacity: 0;
        visibility: hidden;
        display: block;
        padding: 8px;
        background: white;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border);
    }

    .user-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .nav-user {
        gap: 4px;
    }

    .nav-user .icon-btn {
        font-size: 1.2rem;
        padding: 6px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-user .icon-btn .badge {
        top: -2px;
        right: -2px;
        padding: 1px 4px;
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .info-btn {
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }

    .info-btn .info-icon {
        font-size: 1rem;
    }

    .info-btn::after {
        font-size: 0.75rem;
        padding: 6px 10px;
        bottom: -35px;
    }

    .user-info {
        display: none;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .user-profile-btn {
        padding: 4px !important;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-header {
        padding: 10px;
        margin-bottom: 15px;
    }

    .sidebar-header h3 {
        font-size: 1.2rem;
    }

    .sidebar-subtitle {
        font-size: 0.8rem;
    }

    .menu-category {
        margin-bottom: 15px;
    }

    .category-title {
        font-size: 0.7rem;
        margin-left: 5px;
    }

    .nav-item {
        padding: 10px;
        gap: 10px;
        margin-bottom: 4px;
    }

    .nav-icon {
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }

    .nav-label {
        font-size: 0.9rem;
    }

    .nav-description {
        font-size: 0.7rem;
    }

    .menu-quick-actions {
        padding: 12px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .quick-action-btn {
        padding: 12px 8px;
        min-height: 65px;
    }

    .quick-icon {
        font-size: 1.5rem;
    }

    .quick-label {
        font-size: 0.7rem;
    }

    .dashboard-sections {
        grid-template-columns: 1fr;
    }

    .nav-user {
        font-size: 0.9rem;
    }

    .nav-user span {
        display: none;
    }

    .user-points,
    .user-level {
        display: inline-block;
    }

    /* Better Dashboard Mobile Responsiveness */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    .stat-icon {
        font-size: 1.8rem !important;
    }

    .stat-card h3 {
        font-size: 1.5rem !important;
    }

    .stat-card p {
        font-size: 0.8rem !important;
    }

    .view-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }

    .view-header > div {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
        padding: 10px 16px;
    }

    .btn-small {
        width: auto;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Mobile Forms */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .modal-content {
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 20px !important;
    }

    /* Mobile Tables/Lists */
    .task-list,
    .inventory-grid,
    .shopping-lists-grid {
        gap: 10px !important;
    }

    /* Auth Screen Mobile */
    .auth-container {
        margin: 40px 15px !important;
        padding: 25px !important;
    }

    .auth-header h1 {
        font-size: 2rem !important;
    }

    /* Content padding */
    .content {
        padding: 8px 15px !important;
    }

    .view > h2,
    .content h2 {
        font-size: 1.5rem !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .dashboard-section {
        margin-bottom: 20px !important;
    }

    .dashboard-section h3 {
        font-size: 1.1rem !important;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .navbar {
        padding: 6px 10px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 12px !important;
    }

    .stat-icon {
        font-size: 2rem !important;
    }

    .stat-info {
        text-align: left;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        flex: 1 1 45%;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* FontAwesome Icon Styling */
.fas, .far, .fab {
    display: inline-block;
    font-style: normal;
}

.stat-icon i, .nav-icon i, .dropdown-icon i, .quick-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon buttons */
.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    color: #1f2937;
}

.icon-btn:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge:empty {
    display: none;
}

/* Notifications Panel */
.panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.panel.active {
    right: 0;
}

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

.panel-actions {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    background: var(--background);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.notification-item:hover {
    transform: translateX(-5px);
}

.notification-item.unread {
    background: #dbeafe;
    border-left-color: var(--primary);
}

body.dark-mode .notification-item.unread {
    background: #1e3a8a;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Calendar View */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: var(--text-light);
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--background);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-task {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--primary);
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-task.completed {
    background: var(--secondary);
}

.calendar-task.overdue {
    background: var(--danger);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: var(--surface);
    border-radius: 8px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-dot.pending {
    background: var(--primary);
}

.legend-dot.completed {
    background: var(--secondary);
}

.legend-dot.overdue {
    background: var(--danger);
}

/* Statistics Dashboard */
.stats-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.period-btn {
    padding: 10px 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-container {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.chart {
    min-height: 200px;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.chart-label {
    width: 120px;
    font-weight: 600;
}

.chart-bar-container {
    flex: 1;
    height: 30px;
    background: var(--background);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 0.5s ease;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
}

.category-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

/* Onboarding */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

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

.onboarding-content {
    background: var(--surface);
    padding: 30px 20px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    margin: auto;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.onboarding-step h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    line-height: 1.3;
}

.onboarding-step p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 15px 0;
}

.onboarding-img {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    display: block;
}

.onboarding-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.onboarding-controls .btn {
    width: auto;
    padding: 10px 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.onboarding-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.onboarding-dot.active {
    background: var(--primary);
}

/* Responsive Onboarding */
@media (max-width: 768px) {
    .onboarding-content {
        padding: 25px 15px;
        max-height: 85vh;
    }

    .onboarding-step h3 {
        font-size: 1.3rem;
        margin: 10px 0;
    }

    .onboarding-step p {
        font-size: 0.95rem;
        margin: 12px 0;
    }

    .onboarding-img {
        width: 100px;
        height: 100px;
        margin: 15px auto;
    }

    .onboarding-controls {
        margin-top: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .onboarding-controls .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Extra kleine schermen - navbar optimalisatie */
    .navbar {
        padding: 6px 8px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .nav-brand {
        gap: 8px;
    }

    .nav-user {
        gap: 2px;
    }

    .nav-user .icon-btn {
        font-size: 1.1rem;
        padding: 5px;
        width: 32px;
        height: 32px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 2px;
    }

    .info-btn {
        padding: 5px 6px !important;
    }

    .info-btn .info-icon {
        font-size: 0.9rem;
    }

    .nav-user .icon-btn .badge {
        font-size: 0.55rem;
        min-width: 14px;
        height: 14px;
    }

    .onboarding-content {
        padding: 20px 12px;
    }

    .onboarding-step h3 {
        font-size: 1.2rem;
    }

    .onboarding-step p {
        font-size: 0.9rem;
    }

    .onboarding-img {
        width: 80px;
        height: 80px;
        margin: 12px auto;
    }

    .onboarding-controls .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .onboarding-dots {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
}

/* Task Detail Modal Extensions */
.task-detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.task-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.task-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.task-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.task-photo:hover img {
    transform: scale(1.1);
}

.photo-upload-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

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

.task-comments {
    margin-top: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--background);
    border-radius: 8px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
}

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

.comment-text {
    color: var(--text);
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.comment-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Avatar upload */
.avatar-upload-container {
    position: relative;
    display: inline-block;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid var(--primary);
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    color: white;
    font-size: 2rem;
}

.avatar-upload-container:hover .avatar-upload-overlay {
    opacity: 1;
}

/* Mobile/Tablet Responsive Updates */
@media (max-width: 1024px) {
    .stats-charts {
        grid-template-columns: 1fr;
    }

    .panel {
        width: 100%;
        right: -100%;
    }

    .calendar-day {
        min-height: 60px;
        padding: 5px;
    }

    .calendar-day-number {
        font-size: 0.9rem;
    }

    .calendar-task {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .onboarding-content {
        padding: 30px 20px;
    }

    .chart-label {
        width: 80px;
        font-size: 0.9rem;
    }

    .calendar {
        gap: 3px;
        padding: 5px;
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-day {
        min-height: 60px;
        padding: 5px;
        font-size: 0.85rem;
    }

    .calendar-day-header {
        font-size: 0.75rem;
        padding: 5px;
    }

    .calendar-day-number {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .calendar-task {
        font-size: 0.6rem;
        padding: 1px 3px;
        margin-bottom: 1px;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-controls button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8rem;
    }

    .stats-controls {
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Print styles */
@media print {
    .sidebar, .navbar, .btn, .modal {
        display: none !important;
    }

    .content {
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== PAYMENT STYLES ===== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.plan-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.plan-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.plan-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.plan-price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text);
    margin: 15px 0;
}

.plan-price small {
    font-size: 0.4em;
    color: var(--text-secondary);
    font-weight: normal;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.plan-features li::before {
    content: "✓ ";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 8px;
}

.registration-step {
    animation: fadeIn 0.3s ease;
}

.btn-secondary {
    background: var(--text-secondary);
    margin-right: 10px;
}

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

/* Payment Success */
.payment-success-container {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.payment-success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.payment-success-container h1 {
    color: var(--primary);
    margin-bottom: 15px;
}

.payment-details {
    background: var(--background);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-label {
    font-weight: 600;
    color: var(--text);
}

.payment-detail-value {
    color: var(--text-secondary);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Dark mode payment styles */
body.dark-mode .plan-card {
    background: var(--surface);
}

body.dark-mode .plan-card.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

body.dark-mode .payment-success-container {
    background: var(--surface);
}

body.dark-mode .payment-details {
    background: var(--background);
}

/* ===== INVENTORY STYLES ===== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inventory-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.inventory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.inventory-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text);
}

.inventory-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.inventory-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.inventory-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}

.inventory-notes {
    background: var(--background);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.inventory-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.inventory-actions .btn {
    flex: 1;
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Dark mode inventory */
body.dark-mode .inventory-card {
    background: var(--surface);
}

body.dark-mode .inventory-notes {
    background: var(--background);
}

body.dark-mode .detail-value {
    color: var(--text);
}

/* Inventory warnings on dashboard */
.inventory-warning-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
}

.warning-icon {
    font-size: 1.5em;
}

.warning-text {
    flex: 1;
    color: var(--text);
}

body.dark-mode .warning-item {
    background: var(--surface);
}

/* Responsive inventory grid */
@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .inventory-details {
        grid-template-columns: 1fr;
    }

    .warning-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Shopping Lists Styles */
.shopping-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.shopping-list-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.shopping-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.shopping-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.shopping-list-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shopping-list-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.shopping-list-progress {
    margin: 15px 0;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.3s ease;
}

.shopping-list-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.shopping-list-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.permission-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.permission-badge.view {
    background: #e0e7ff;
    color: #3730a3;
}

.permission-badge.edit {
    background: #dcfce7;
    color: #166534;
}

.permission-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

/* Shopping Items List */
.shopping-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shopping-item {
    background: var(--surface);
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.shopping-item:hover {
    box-shadow: var(--shadow);
}

.shopping-item.checked {
    opacity: 0.6;
    border-left-color: var(--secondary);
}

.shopping-item.priority-1 {
    border-left-color: #f59e0b;
}

.shopping-item.priority-2 {
    border-left-color: #ef4444;
}

.shopping-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.shopping-item-content {
    flex: 1;
}

.shopping-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.shopping-item-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.shopping-item.checked .shopping-item-name {
    text-decoration: line-through;
}

.shopping-item-quantity {
    color: var(--text-light);
    font-size: 0.9rem;
}

.shopping-item-details {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.shopping-item-actions {
    display: flex;
    gap: 8px;
}

/* Permissions List */
.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
}

.permission-member {
    display: flex;
    align-items: center;
    gap: 12px;
}

.permission-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.permission-member-info h4 {
    margin: 0;
    font-size: 0.95rem;
}

.permission-member-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.permission-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dark mode overrides */
body.dark-mode .shopping-list-card,
body.dark-mode .shopping-item {
    background: #1e293b;
}

body.dark-mode .permission-item {
    background: #0f172a;
}

/* Footer */
.app-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.app-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Info button styling */
.nav-user a.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.info-btn {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    overflow: visible;
}

.info-btn .info-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse-subtle 3s ease-in-out infinite;
}

.info-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.info-btn:hover .info-icon {
    animation: shake 0.5s ease-in-out;
}

/* Tooltip */
.info-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-btn::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-bottom-color: rgba(30, 41, 59, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.info-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.info-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Dark mode info button */
body.dark-mode .info-btn {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

body.dark-mode .info-btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

body.dark-mode .app-footer {
    background: #1e293b;
    border-top-color: #334155;
}

/* PDF Export Button */
#export-tasks-pdf-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

#export-tasks-pdf-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

#export-tasks-pdf-btn:active {
    transform: translateY(0);
}

/* Auth info link */
.auth-info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-info-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-info-link:hover::before {
    left: 100%;
}

.auth-info-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.auth-info-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* Auth messages */
.auth-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.auth-message.active {
    opacity: 1;
    transform: translateY(0);
}

.auth-message.success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

#auth-error,
.auth-message.error {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 118, 117, 0.3);
}

/* Wachtwoord vergeten link */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Password reset modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

#reset-message {
    min-height: 20px;
}

#reset-message.success,
#new-password-message.success {
    color: #00b894;
    font-weight: 500;
}

#reset-message.error,
#new-password-message.error {
    color: #ff7675;
    font-weight: 500;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-header {
    margin-bottom: 16px;
}

.cookie-consent-header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.cookie-consent-body {
    margin-bottom: 20px;
}

.cookie-consent-body p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-size: 15px;
}

.cookie-consent-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.cookie-consent-details p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-consent-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-consent-actions .btn-primary {
    background: white;
    color: #667eea;
}

.cookie-consent-actions .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 20px;
    }

    .cookie-consent-header h3 {
        font-size: 20px;
    }

    .cookie-consent-body p {
        font-size: 14px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* FamHub Custom Loading Screen */
.famhub-loader {
    text-align: center;
}

.famhub-logo {
    margin-bottom: 30px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.house-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.house-roof {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 30px solid #667eea;
    position: absolute;
    top: 0;
    left: 0;
    animation: roofGlow 2s ease-in-out infinite;
}

@keyframes roofGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.house-body {
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
    top: 30px;
    left: 10px;
    border-radius: 0 0 8px 8px;
}

.house-door {
    width: 18px;
    height: 25px;
    background: white;
    position: absolute;
    top: 50px;
    left: 31px;
    border-radius: 3px 3px 0 0;
    animation: doorPulse 2s ease-in-out infinite;
}

@keyframes doorPulse {
    0%, 100% { background: white; }
    50% { background: #f0f0f0; }
}

.loading-text {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-content {
    text-align: center;
    color: white;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 30px;
    position: relative;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 30px;
    height: 60px;
    border-bottom: 8px solid #667eea;
    border-right: 8px solid #667eea;
    animation: drawCheck 0.5s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes drawCheck {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 30px;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 30px;
        height: 60px;
        opacity: 1;
    }
}

.success-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    animation: slideUp 0.5s ease-out 0.5s both;
}

.success-message {
    font-size: 20px;
    opacity: 0.95;
    animation: slideUp 0.5s ease-out 0.7s both;
}

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

/* Eye-Candy Animations & Effects */

/* Floating animation for buttons and cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Add hover effects to buttons */
button, .btn, input[type="submit"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

button:active, .btn:active, input[type="submit"]:active {
    transform: translateY(0);
}

/* Ripple effect on button click */
button::before, .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before, .btn:active::before {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.card, .task-item, .member-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .task-item:hover, .member-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Animated gradient backgrounds */
.gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Smooth page transitions */
.screen {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen:not(.active) {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Icon spin on hover */
.icon-spin:hover {
    animation: spin 0.8s ease-in-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Notification badge pulse */
.notification-badge {
    animation: pulseGlow 2s infinite;
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1),
                0 0 20px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transition: all 0.3s ease;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* Parallax-like effect on scroll */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

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

/* ========================================
   MOBILE-FIRST IMPROVEMENTS
   ======================================== */

/* Better touch targets for mobile */
button, .btn, a, input, select, textarea {
    min-height: 44px; /* Apple's recommended touch target size */
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

/* Smooth momentum scrolling on iOS */
body, .scrollable {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better mobile spacing */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on input focus */
    }

    .auth-container {
        padding: 20px !important;
        margin: 10px !important;
        max-width: 100% !important;
    }

    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    /* Fix navbar overflow */
    .navbar {
        padding: 12px 15px !important;
        flex-wrap: wrap;
    }

    .nav-brand h1 {
        font-size: 1.2rem !important;
    }

    .nav-user {
        gap: 8px !important;
        font-size: 14px !important;
    }

    .user-points, .user-level {
        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    /* Hide sidebar, show mobile menu */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    /* Mobile tabs - better spacing */
    .auth-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .auth-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 1 0 auto;
        min-width: 100px;
        padding: 14px 8px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* Larger form inputs on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 14px !important;
    }

    /* Better button spacing */
    button, .btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }

    /* Stack buttons vertically on mobile */
    .action-buttons, .button-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .action-buttons button,
    .button-group button {
        width: 100% !important;
    }

    /* Main container adjustments */
    .main-container {
        flex-direction: column;
        padding-bottom: 80px; /* Space for bottom nav */
    }

    .content {
        padding: 8px 15px !important;
    }

    .view > h2 {
        margin-top: 0 !important;
    }

    /* Smooth animations on mobile */
    .stat-card,
    .dashboard-section {
        transition: none !important;
    }
}

/* ========================================
   ENHANCED EYE-CANDY
   ======================================== */

/* Floating particles background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(10px, 10px); }
}

/* Glassmorphism effect for cards */
.card, .auth-container, .task-item, .member-item {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Glowing text effect for headings */
h1, h2 {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

/* Icon animations */
.icon, .emoji-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icon:hover, .emoji-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Neon glow effect */
.neon-glow {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 10px #667eea, 0 0 20px #667eea, 0 0 30px #667eea;
    }
    to {
        text-shadow: 0 0 20px #764ba2, 0 0 30px #764ba2, 0 0 40px #764ba2;
    }
}

/* Floating label effect for inputs */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #667eea;
    background: white;
    padding: 0 5px;
}

/* Progress bar animation */
.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    to { width: 100%; }
}

/* Skeleton loading effect */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Confetti effect class */
@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle::after {
    content: '✨';
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

/* Tooltip enhancement */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Breathing animation for important elements */
.breathe {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Rainbow border effect */
.rainbow-border {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea) border-box;
    background-size: 300% 300%;
    animation: rainbowBorder 4s linear infinite;
}

@keyframes rainbowBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.1s ease;
}

/* Enhanced focus states */
*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded {
    animation: pageLoad 0.6s ease-out;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Larger tap targets */
    .nav-item, .menu-item {
        padding: 16px !important;
        margin: 8px 0 !important;
    }

    /* Better card spacing */
    .card {
        margin: 15px 0 !important;
        padding: 20px !important;
    }

    /* Optimize animations for mobile (reduce motion) */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Bottom navigation optimization */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 10px 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Safe area for iPhone notch */
    @supports (padding: max(0px)) {
        .bottom-nav {
            padding-bottom: max(10px, env(safe-area-inset-bottom));
        }
    }
}

/* Member Actions */
.member-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.member-actions .btn {
    flex: 1;
}

.pending-user-card {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* View header improvements */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

#admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge {
    background: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== IMPROVED DARK MODE READABILITY ===== */
body.dark-mode .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .task-item {
    background: #1a1f2e;
    border: 1px solid var(--border);
}

body.dark-mode .task-item:hover {
    background: #252d3f;
    border-color: var(--primary);
}

body.dark-mode .task-title {
    color: #000000;
}

body.dark-mode .task-description {
    color: #000000;
}

body.dark-mode .task-category,
body.dark-mode .task-meta {
    color: #2a2a2a;
}

body.dark-mode .nav-item {
    color: var(--text-light);
}

body.dark-mode .nav-item:hover {
    background: #252d3f;
    color: var(--text);
}

body.dark-mode .nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    color: white;
    border-left-color: var(--primary);
}

body.dark-mode .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #151923;
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--primary);
    background: #1a1f2e;
}

body.dark-mode .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
}

body.dark-mode .navbar {
    background: #2d3748;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .shopping-list-card,
body.dark-mode .reward-card,
body.dark-mode .member-card,
body.dark-mode .inventory-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .shopping-list-card:hover,
body.dark-mode .reward-card:hover,
body.dark-mode .member-card:hover,
body.dark-mode .inventory-card:hover {
    background: #252d3f;
    border-color: var(--primary);
}

body.dark-mode .leaderboard-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .leaderboard-item:hover {
    background: #252d3f;
}

body.dark-mode .category-title {
    color: var(--text-secondary);
    font-weight: 600;
}

body.dark-mode .nav-description,
body.dark-mode .sidebar-subtitle {
    color: var(--text-secondary);
}

body.dark-mode .filter-btn {
    background: var(--surface);
    color: var(--text-light);
    border: 1px solid var(--border);
}

body.dark-mode .filter-btn:hover {
    background: #252d3f;
    color: var(--text);
}

body.dark-mode .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.dark-mode .btn-secondary {
    background: #10b981;
    color: #000000;
    border: 1px solid #0ea573;
}

body.dark-mode .btn-secondary:hover {
    background: #059669;
    border-color: #047857;
}

body.dark-mode .complete-task {
    background: #10b981 !important;
    color: #000000 !important;
    border: 1px solid #0ea573 !important;
}

body.dark-mode .complete-task:hover {
    background: #059669 !important;
    border-color: #047857 !important;
}

body.dark-mode .notification-item {
    background: var(--surface);
    border-left: 3px solid var(--border);
}

body.dark-mode .notification-item.unread {
    background: #1e3a5f;
    border-left-color: var(--primary);
}

body.dark-mode small {
    color: var(--text-secondary);
}

body.dark-mode .warning-item {
    background: #1f1f1f;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4 {
    color: var(--text);
}

body.dark-mode .shopping-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .shopping-item:hover {
    background: #252d3f;
}

body.dark-mode .shopping-item.checked {
    background: #1a2332;
    opacity: 0.7;
}

body.dark-mode .progress-bar {
    background: #1a1f2e;
}

body.dark-mode .auth-screen {
    background: var(--background);
}

body.dark-mode .auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

body.dark-mode .logo-text {
    color: var(--text);
}

body.dark-mode .form-control {
    background: #151923;
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .plan-card {
    background: var(--surface);
    border: 2px solid var(--border);
}

body.dark-mode .plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

body.dark-mode code,
body.dark-mode .invite-code {
    background: #151923;
    border: 1px solid var(--border);
    color: var(--primary);
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
    }

    .content {
        margin-left: 0;
        padding: 15px;
        width: 100%;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .view-header h2 {
        font-size: 1.5rem;
    }

    .view-header button,
    .view-header .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .task-item {
        padding: 12px;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .task-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .task-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .task-actions button {
        width: 100%;
    }

    .shopping-list-card,
    .reward-card,
    .inventory-card {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .nav-item {
        padding: 12px 15px;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .notifications-panel {
        width: 100%;
        right: 0;
        left: 0;
        max-height: 70vh;
    }

    .leaderboard-item {
        padding: 12px;
    }

    #admin-actions {
        flex-direction: column;
        width: 100%;
    }

    #admin-actions button {
        width: 100%;
    }

    .member-card {
        padding: 15px;
    }

    .member-actions {
        flex-direction: column;
    }

    .member-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .content {
        padding: 10px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .notification-item {
        padding: 12px;
    }

    .notification-title {
        font-size: 0.9rem;
    }

    .sidebar {
        padding: 10px;
    }

    .nav-item {
        padding: 10px 12px;
    }

    .menu-category {
        margin-bottom: 15px;
    }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .sidebar .menu-category {
        margin-bottom: 12px;
    }

    .category-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .nav-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .nav-label {
        font-size: 0.95rem;
    }

    .nav-description {
        font-size: 0.75rem;
    }
}

/* Notification panel mobile improvements */
@media (max-width: 768px) {
    .notification-item {
        padding: 15px;
        margin-bottom: 8px;
    }

    .notification-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .notification-message {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .notification-time {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
    .btn,
    .filter-btn,
    .nav-item,
    .notification-item {
        min-height: 44px; /* Apple's recommended touch target size */
    }

    button,
    a {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
}

/* Admin Member Management Styles */
.member-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.member-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.member-email {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.member-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.btn-icon.btn-danger {
    background: #fee;
}

.btn-icon.btn-danger:hover {
    background: #fdd;
}

.add-member-card {
    cursor: pointer;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    border: 2px dashed #ddd;
    background: transparent;
    min-height: 120px;
}

.add-member-card:hover {
    border-color: var(--primary-color);
    background: rgba(103, 58, 183, 0.05);
}

.add-member-icon {
    font-size: 48px;
    opacity: 0.5;
}

.add-member-text {
    font-weight: 600;
    color: #666;
}

/* Dark mode support */
.dark-mode .member-card {
    background: #2a2a2a;
}

.dark-mode .btn-icon {
    background: #3a3a3a;
    color: #fff;
}

.dark-mode .btn-icon:hover {
    background: #4a4a4a;
}

.dark-mode .add-member-card {
    border-color: #444;
}

.dark-mode .add-member-card:hover {
    background: rgba(103, 58, 183, 0.1);
}


/* Green Complete Task Button */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-complete {
    padding: 10px 20px;
    font-size: 15px;
    min-width: 130px;
    transition: all 0.3s ease;
}

.btn-complete:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Task Actions Layout */
.task-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.task-actions .btn-complete {
    order: -1; /* Show complete button first */
}

/* Dark mode for success button */
.dark-mode .btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.dark-mode .btn-success:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

