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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.back-button {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-select {
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.time-select:hover {
    border-color: #2980b9;
}

.terrain-select {
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #2c3e50;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terrain-select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.terrain-select:hover {
    border-color: #2980b9;
}

h1 {
    color: #2c3e50;
    font-size: 2rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-refresh {
    background-color: #3498db;
    color: white;
}

.btn-refresh:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-new-reservation {
    background-color: #27ae60;
    color: white;
}

.btn-new-reservation:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

.btn-new-reservation:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-detail {
    background-color: #27ae60;
    color: white;
    font-size: 12px;
    padding: 8px 16px;
}

.btn-detail:hover {
    background-color: #229954;
}

.btn-stop {
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    padding: 8px 16px;
}

.btn-stop:hover {
    background-color: #c0392b;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.error {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

.reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.reservation-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reservation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.reservation-id {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    word-break: break-all;
    overflow-wrap: break-word;
    line-height: 1.2;
    max-width: 200px;
}

.reservation-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.reservation-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-label {
    font-weight: 500;
    color: #7f8c8d;
}

.detail-value {
    color: #2c3e50;
}

.error-text {
    color: #e74c3c !important;
    font-weight: 500;
}

.reservation-actions {
    text-align: right;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .new-reservation-section {
        justify-content: center;
        flex-wrap: wrap;
    }

    .terrain-select {
        min-width: 120px;
        width: 100%;
        max-width: 200px;
    }

    .reservations-grid {
        grid-template-columns: 1fr;
    }

    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reservation-id {
        max-width: 100%;
        font-size: 14px;
    }
}