:root {
    --text-dark: #1c1c1e;
    --text-secondary: #6c757d;
    --background-light: #f0f2f5;
    --card-background: #ffffff;
    --border-color: #e5e5ea;
    --primary-blue: #007aff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--background-light);
    color: var(--text-dark);
}
main {
    flex: 1;
    padding: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* Inherited from admin_header.html styles */
.title-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
}
.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    text-align: left;
    margin: 0;
    color: #1c1c1e;
}
.main-title span {
    display: block;
}
.back-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

/* Page specific styles */
.settings-card {
    background: var(--card-background);
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.date-selector-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.date-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-radius 0.2s;
    user-select: none;
}

.date-item:hover {
    background-color: #e9ecef;
}

.date-item.selected {
    background-color: var(--primary-blue);
    color: white;
}

.date-item.in-range {
    background-color: rgba(0, 122, 255, 0.15);
    color: var(--primary-blue);
    border-radius: 0; /* Make it square for the range */
}

.date-item.start-range {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.date-item.end-range {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* If start and end are the same */
.date-item.start-range.end-range {
    border-radius: 50%;
}


.time-selector {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.time-input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.time-input-group input[type="time"] {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--background-light);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn {
    padding: 1rem;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-save {
    background: var(--text-dark);
    color: white;
}
.btn-save:hover {
    background: #333;
}

@media (max-width: 600px) {
    .date-selector-grid {
        gap: 0.5rem;
    }
}