:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    color: var(--text-main);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

h1,
h2,
h3 {
    color: var(--text-main);
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

/* Calendar Styles */
.calendar-wrapper {
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-name {
    font-weight: bold;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.calendar-day {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover:not(.empty) {
    background: #eef2ff;
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
}

.calendar-day.empty {
    cursor: default;
}

/* Time Picker Styles */
.time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-chip {
    background: #eef2ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.time-chip span.remove {
    cursor: pointer;
    font-weight: bold;
}



.time-input-group {
    display: flex;
    gap: 0.5rem;
}


/* Time Grid Styles */
.time-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-slot-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: var(--text-main);
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

.time-slot-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Segmented Control Styles */
.segmented-control {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.segmented-control input[type="radio"]:checked+label {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        padding: 0.25rem;
        font-size: 0.9rem;
    }

    button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}