:root {
    --bg: #F7F3EA;
    --bg-light: #FBF9F3;
    --bg-card: #EFE9DA;
    --bg-accent: #EAF0EA;

    --border: #E0DDD7;

    --text-primary: #1A1A1A;
    --text-secondary: #666;
    --text-muted: #888;
    --text-light: #999;


    --primary: #4A80E8;
    --primary-hovers: #3B6FD4;
    --primary-dark: #1A4FAF;
    --primary-light: #AABFE8;

    --accent: #1b1e24;
    --accent2: #4A80E8;

    --white: #fff;
    --black: #000;

    --green: #34D399;
    --amber: #FBBF24;
    --red: ##F87171;
}

[data-theme="dark"] {
    --bg: #0F1115;
    --bg-card: #171A20;
    --bg-accent: #1E2430;
    --bg-light: #242A34;

    --border: #2D3440;

    --text-primary: #F5F5F5;
    --text-secondary: #C1C6CF;
    --text-muted: #8D95A3;
    --text-light: #6F7785;

    --primary: #4A80E8;
    --primary-hovers: #5B8EF0;
    --primary-dark: #2F65D4;
    --primary-light: #7FA5F2;

    --accent: #0A0C10;
    --accent2: #4A80E8;

    --white: #171A20;
    --black: #FFFFFF;

    --green: #34D399;
    --amber: #FBBF24;
    --red: ##F87171;
}

.status-pending { 
    background: #FEF3C7; 
    color: #92400E; 
}

.status-confirmed {
    background: #DEEAFC; 
    color: #0A3A9E; 
}

.status-completed { 
    background: #e7ffe0; 
    color: #30a35c; 
}

.status-overdue {
    background: #FEE2E2; 
    color: #991B1B; 
}

.status-paid { 
    background: #D1FAE5;
    color: #065F46; 
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

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

.btn-sm {
    padding: 5px 11px;
    font-size: 12px;
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}


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

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
 
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
}