/* The Carriage Works Table Booking System Styles */
:root {
    --primary: #2C3E2D;
    --secondary: #5C7C5E;
    --accent: #C4A24E;
    --light: #F7F3EB;
    --dark: #1A1A1A;
    --danger: #8B3A3A;
    --success: #4A6B4A;
    --warning: #C4A24E;
    --info: #5A7B8F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #F7F3EB;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.brand {
    display: flex;
    align-items: center;
}

.brand h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--light);
}

/* Forms */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.form-title {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(116, 140, 171, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #617895;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c93238;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #5a9157;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(108, 166, 101, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(214, 64, 69, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(249, 199, 79, 0.2);
    border: 1px solid var(--warning);
    color: #b78e2e;
}

.alert-info {
    background-color: rgba(144, 184, 248, 0.2);
    border: 1px solid var(--info);
    color: #4275c7;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light);
    color: var(--dark);
    font-weight: 500;
}

.table tr:hover {
    background-color: rgba(116, 140, 171, 0.1);
}

/* Calendar */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 2rem;
}

.calendar-header {
    grid-column: span 7;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day {
    height: 40px;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background-color: #e9e9e9;
}

.calendar-day.today {
    background-color: rgba(144, 184, 248, 0.3);
    font-weight: bold;
}

.calendar-day.selected {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.calendar-day.has-bookings {
    background-color: rgba(108, 166, 101, 0.2);
}

.calendar-day-number {
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.calendar-day-bookings {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--light);
    color: var(--primary);
}

.sidebar-menu a i {
    margin-right: 0.5rem;
}

.main-content {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-card p {
    color: var(--dark);
    font-size: 1rem;
}

/* Booking Status Colors */
.status-pending {
    color: var(--warning);
}

.status-confirmed {
    color: var(--info);
}

.status-completed {
    color: var(--success);
}

.status-cancelled {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 1rem 0;
}

.time-slot {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background-color: var(--light);
}

.time-slot.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot.unavailable {
    background-color: #f8f8f8;
    color: #aaa;
    cursor: not-allowed;
}

/* Table selector */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin: 1.5rem 0;
}

.table-item {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    border: 2px solid #ddd;
}

.table-item:hover {
    background-color: #f9f9f9;
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-item.selected {
    background-color: var(--primary);
    color: white;
    border: 3px solid var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.table-item.unavailable {
    background-color: #f8f8f8;
    color: #aaa;
    cursor: not-allowed;
}

.table-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.table-capacity {
    font-size: 0.9rem;
    color: #666;
} 