:root {
    --bg-color: #f0f2f5;
    --text-dark: #333;
    --text-muted: #6c757d;
    --primary-blue: #3273a3;
    --primary-dark: #1e3a8a;
    --success-green: #299976;
    --court-bg: #bae2a5;
    --court-text: #195209;
    --shift-bg: #a5d3f2;
    --shift-text: #1e4566;
    --category-bg: #3273a3;
    --category-text: #ffffff;
}

html,
body {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.topbar {
    border-bottom: 2px solid #e0e0e0;
    height: 60px;
}

#logo {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    color: var(--primary-dark);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Make tablet friendly. Mostly 2 columns, but scrollable elegantly */
.main-container {
    max-width: 1400px;
    height: calc(100vh - 60px);
}

/* Court & Shift blocks - Now styling the <select> element */
.select-assignment {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.select-assignment:focus {
    border-color: var(--primary-blue);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(50, 115, 163, 0.25);
}

/* Categories Accordion Styling */
.category-header {
    background-color: var(--category-bg);
    color: var(--category-text);
    padding: 0.5rem 1.25rem;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-body {
    background-color: transparent;
    padding: 1rem 0;
}

.category-wrapper {
    margin-bottom: 1.5rem;
}

/* Product Card */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    width: 100%;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Add/Remove Buttons */
.btn-qty {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: none;
    color: white;
}

.btn-minus {
    background-color: #4a7c9d;
}

.btn-minus:hover {
    background-color: #38627e;
}

.btn-plus {
    background-color: var(--success-green);
}

.btn-plus:hover {
    background-color: #217d60;
}

.qty-display {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 25px;
    text-align: center;
}

/* Cart Summary */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.95rem;
    flex-grow: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cobrar {
    background-color: var(--success-green) !important;
    border-color: var(--success-green) !important;
    transition: opacity 0.2s;
}

.btn-cobrar:hover {
    opacity: 0.9;
}