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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.calendar-section, .form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-section h2, .form-section h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.calendar-nav button:hover {
    background: #2980b9;
}

#currentMonth {
    font-size: 1.3em;
    color: #2c3e50;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
}

.calendar-day {
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.calendar-day:hover {
    background: #e8f4fd;
}

.calendar-day.selected {
    background: #3498db;
    color: white;
}

.calendar-day.other-month {
    color: #bdc3c7;
    background: #f8f9fa;
}

.calendar-day.available {
    background: #d5f4e6;
    border-color: #27ae60;
}

.calendar-day.partial {
    background: #fff3cd;
    border-color: #f39c12;
}

.calendar-day.full {
    background: #f8d7da;
    border-color: #e74c3c;
    cursor: not-allowed;
}

.calendar-header {
    background: #34495e;
    color: white;
    font-weight: bold;
    padding: 10px;
}

.legend {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: #d5f4e6;
    border-color: #27ae60;
}

.legend-color.partial {
    background: #fff3cd;
    border-color: #f39c12;
}

.legend-color.full {
    background: #f8d7da;
    border-color: #e74c3c;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#submitBtn {
    width: 100%;
    background: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submitBtn:hover {
    background: #229954;
}

#submitBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.reservations-list {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reservations-list h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.reservation-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.reservation-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.reservation-item p {
    margin: 3px 0;
    color: #7f8c8d;
}

.reservation-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legend {
        flex-direction: column;
        gap: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}