@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    /* Brand Colors based on Òptim Academia */
    --primary-gradient: linear-gradient(135deg, #e44d55 0%, #2a1b5e 100%);
    --primary-solid: #e44d55;
    /* The reddish tone for buttons */
    --secondary-solid: #2a1b5e;
    /* deep purple/navy */
    --text-dark: #0f172a;
    --text-light: #64748b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header with Brand Gradient */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    /* Force white text */
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Titles outside header */
h1,
h2,
h3 {
    color: var(--text-dark);
}

/* Slots Grid */
.dates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.date-column {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-solid);
}

.date-column h2 {
    color: var(--secondary-solid);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.slot-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.slot-item:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.slot-time {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary-solid);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-book {
    background-color: var(--primary-solid);
    color: white;
    box-shadow: 0 4px 6px rgba(228, 77, 85, 0.3);
}

.btn-book:hover {
    background-color: #d13d4b;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(228, 77, 85, 0.4);
}

.slot-unavailable {
    opacity: 0.7;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.text-unavailable {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Forms */
.form-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    border-top: 5px solid var(--secondary-solid);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-solid);
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 77, 85, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-back {
    background-color: #64748b;
    color: white;
    text-align: center;
}

.btn-back:hover {
    background-color: #475569;
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.warning-box {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.admin-table th {
    background-color: var(--secondary-solid);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.admin-table tr:hover {
    background-color: #f1f5f9;
}