:root {
    --primary: #0078D4;
    /* Medical/Microsoft Blue */
    --primary-light: #EFF6FC;
    --success: #107C10;
    --success-light: #DFF6DD;
    --error: #D13438;
    --neutral-light: #F3F2F1;
    --neutral-dark: #323130;
    --white: #ffffff;
    --radius: 4px;
    --shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    line-height: 1.5;
}

header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* Tabs / Location Toggle */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Booking Grid */
.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.day-card {
    border: 1px solid #e1e1e1;
    border-radius: var(--radius);
    padding: 1rem;
}

.timeslot {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
}

.timeslot.available {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-light);
}

.timeslot.full {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: transparent;
}

/* Form Elements */
input,
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #8a8886;
    border-radius: var(--radius);
}

button.primary-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--primary-light);
}

/* Helper classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.alert {
    padding: 1rem;
    background: #fff4ce;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Table Styles */
table {
    border-collapse: collapse;
}

th {
    background: var(--neutral-light);
    color: var(--neutral-dark);
}

tr:hover {
    background-color: var(--primary-light);
}

/* User Profile Picker */
#supporter-list .card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    transition: all 0.2s;
}

.view-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tabs {
        flex-wrap: wrap;
    }

    th:nth-child(2),
    td:nth-child(2) {
        display: none;
    }

    /* Hide location on mobile */
}