:root {
    /* Color Palette - Light Theme Only */
    --bg-color: #F8FAFC;
    /* Lightest Gray/White */
    --card-bg: #FFFFFF;
    /* Pure White */
    --text-primary: #1E293B;
    /* Slate 800 */
    --text-secondary: #64748B;
    /* Slate 500 */

    /* Branding Colors (Company Green Theme) */
    --accent: #16A34A;
    /* Green 600 */
    --accent-hover: #15803D;
    /* Green 700 */
    --accent-light: #DCFCE7;
    /* Green 100 */

    --border: #E2E8F0;
    /* Slate 200 */

    /* Status Colors (Vibrant & Clear) */
    --status-pending-bg: #FEF3C7;
    --status-pending-text: #B45309;
    /* Amber/Orange for Pending */

    --status-buying-bg: #E0F2FE;
    --status-buying-text: #0369A1;
    /* Sky Blue for Buying (distinct from Green) */

    --status-done-bg: #DCFCE7;
    --status-done-text: #15803D;
    /* Deep Green for Done */

    --danger: #EF4444;
    --danger-bg: #FEF2F2;

    /* Spacing & Sizes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    /* Slightly tighter for better readability on desktop */
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--accent);
    letter-spacing: -0.5px;
}

/* Typography Helpers */
.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

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

/* Buttons & Interactive Elements */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    /* Large touch target */
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Dashboard Grid/Cards */
.dashboard-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Transform Card Header into a Row */
    .header-main {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .header-top {
        margin-bottom: 0;
        width: auto;
        min-width: 300px;
        justify-content: flex-start;
        gap: 16px;
    }

    .header-sub {
        flex: 1;
        /* Badges take remaining space */
    }
}

.request-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-badge.buying {
    background: var(--status-buying-bg);
    color: var(--status-buying-text);
}

.status-badge.done {
    background: var(--status-done-bg);
    color: var(--status-done-text);
}

.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Forms (Mobile First) */
.form-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: #F9FAFB;
    /* Very light gray input bg */
    color: var(--text-primary);
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-light);
}

/* Mobile specific optim */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

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

    .btn-primary,
    .btn-secondary {
        /* Default buttons full width on mobile */
        width: 100%;
    }

    /* Exception for Header Button on Mobile */
    .header .btn-secondary {
        width: auto;
        /* Keep it small */
        padding: 8px 16px;
        /* Smaller padding */
        font-size: 0.9rem;
        /* Sligthly smaller text */
    }
}

/* Quantity Stepper */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-wrapper input {
    text-align: center;
    font-weight: 700;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    user-select: none;
}

.qty-btn:active {
    transform: scale(0.9);
    background: var(--bg-color);
}

.qty-btn.plus {
    background: var(--accent-light);
    border-color: var(--accent-light);
}