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

/* Dropdown Styles */
.dropdown-container {
    display: flex;
    gap: 2rem;
    padding: 0.5rem;
    margin: 2rem auto;
    max-width: 900px;
    height: 80px;
    background-color: #77dd77;
    border-radius: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rounded-select {
    flex: 1;
    height: 100%;
    padding: 0 20px;
    font-size: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 300px;
    background-color: #ff9a8b;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

.rounded-select:hover {
    border-color: #4CAF50;
}

.rounded-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Style for the dropdown options */
.rounded-select option {
    padding: 12px;
    font-size: 16px;
}

/* Date Selector and Calendar Styles */
.date-selector-container {
    position: relative;
    flex: 1;
}

.date-selector-wrapper {
    display: flex;
    align-items: center;
    background-color: #ff9a8b;
    border-radius: 300px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.date-selector-wrapper:hover {
    border-color: #4CAF50;
}

.date-selector-wrapper:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.date-arrow-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 0 15px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.date-arrow-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.date-arrow-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
}

.date-arrow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-arrow-btn:disabled:hover {
    background-color: transparent;
}

.date-selector-container .rounded-select {
    border: none;
    background-color: transparent;
    color: #000;
    flex: 1;
}

.date-selector-container .rounded-select::placeholder {
    color: rgba(51, 51, 51, 0.7);
}

.calendar-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ff9a8b;
    border-radius: 15px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    border: 2px solid #4CAF50;
}

.calendar-popup.show {
    display: block;
}

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

.calendar-nav-btn {
    background-color: rgba(76, 175, 80, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background-color: rgba(76, 175, 80, 0.5);
    transform: scale(1.1);
}

#calendar-title {
    color: #fff;
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.4);
    padding-bottom: 0.5rem;
}

.calendar-weekdays div {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    background-color: rgba(76, 175, 80, 0.1);
}

.calendar-day {
    background-color: rgba(76, 175, 80, 0.2);
    color: #fff;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background-color: rgba(76, 175, 80, 0.4);
    transform: scale(1.05);
}

.calendar-day.selected {
    background-color: #4CAF50;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.calendar-day.other-month {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid #4CAF50;
    background-color: rgba(76, 175, 80, 0.3);
    font-weight: bold;
}

.calendar-day.past {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Field Info Section Styles */
.field-info-container {
    display: flex;
    max-width: 1400px;
    max-height: 4000px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #77dd77;
    border-radius: 20px;
    gap: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.field-left-section {
    display: flex;
    gap: 1.5rem;
    min-width: 350px;
    cursor: pointer;
}

.field-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.field-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.field-details h2 {
    font-size: 20px;
    color: #333;
}

.field-details p {
    font-size: 16px;
    color: #666;
}

.field-icons {
    display: flex;
    gap: 0.5rem;
}

.field-icons img {
    width: 25px;
    height: 25px;
}

.vertical-separator {
    width: 0;
    min-height: 160px;
    background-color: #ffffff;
    margin: 0;
    transition: all 0.3s ease;
}

.time-slots-section, .teams-section {
    flex: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.field-info-container.show-time {
    gap: 2rem;
}

.field-info-container.show-time .vertical-separator {
    width: 2px;
    margin: 0 1rem;
}

.field-info-container.show-time .time-slots-section {
    flex: 1;
    width: 300px;
    opacity: 1;
    visibility: visible;
    background-color: #ff9a8b;
    border-radius: 15px;
    padding: 0.75rem;
}

.field-info-container.show-teams .teams-section {
    flex: 1;
    width: 200px;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.time-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for time content */
.time-content::-webkit-scrollbar {
    width: 6px;
}

.time-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.time-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.time-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.time-slot-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.time-slot-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.time-slot-btn.selected {
    background-color: #fff;
    color: #ff9a8b;
    font-weight: bold;
}

/* Reserved time slot state */
.time-slot-btn.reserved {
    background-color: rgba(0, 0, 0, 0.15);
    color: #eeeeee;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
}

.time-slot-btn.reserved:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.time-header h3 {
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.teams-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.teams-content {
    background-color: #ff9a8b;
    border-radius: 15px;
    padding: 0.75rem;
    flex-grow: 1;
}

.teams-content h3 {
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.reservation-button {
    background-color: #6ec6ff;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 0.75rem;
    font-size: 16px;
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.reservation-button.active {
    cursor: pointer;
    opacity: 1;
}

.reservation-button.active:hover {
    background-color: #5ba9e6;
}

/* Field Selection Section Styles */
.field-selection-section {
    flex: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    background-color: #ff9a8b;
    border-radius: 15px;
    padding: 0.5rem;
}

.field-info-container.show-field .field-selection-section {
    flex: 0 0 140px;
    opacity: 1;
    visibility: visible;
}

.field-selection-header h3 {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.field-selection-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for field selection content */
.field-selection-content::-webkit-scrollbar {
    width: 6px;
}

.field-selection-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.field-selection-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.field-selection-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.field-option-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.field-option-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.field-option-btn.selected {
    background-color: #fff;
    color: #ff9a8b;
    font-weight: bold;
}

/* Team Selection Styles */
.team-selection-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for team selection content */
.team-selection-content::-webkit-scrollbar {
    width: 6px;
}

.team-selection-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.team-selection-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.team-selection-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.team-option-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.team-option-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.team-option-btn.selected {
    background-color: #fff;
    color: #ff9a8b;
    font-weight: bold;
} 