/* Add these to your existing calendar.css */

.ww-form-group {
    margin-bottom: 15px;
}

.ww-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ww-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ww-lake-selector {
    max-width: 250px;
}
.ww-lake-selector label {
    font-weight: 400;
}
.ww-lake-selector #ww-lake-select {
    border-color: #eee;
    border-width: 2px;
}
.ww-calendar-nav {

}
.ww-calendar-nav button,
.ww-calendar-nav span {
    display: inline-block;
    padding: 3px;
    margin: 0;
    border: none;
    background: transparent;
}
.ww-calendar-nav button svg {
    width: 30px;
    height: 30px;
    position: relative;
    top: 8px;
}
.ww-calendar-nav span {
    font-size: 17px;
    font-weight: bold;
}
.ww-calendar-header {
    display: flex;
    flex-direction: row;
}
.ww-calendar-header .ww-current-lake-name {
    flex: 1;
}
.ww-calendar-header .ww-current-lake-name h2 {
    margin: 30px 0 0;
}
.ww-calendar-header .ww-current-lake-name h2 span {
    font-size: 16px;
    font-weight: 400;
    padding-left: 8px;
}
.ww-calendar-header .ww-calendar-legend {
    min-width: 370px;
}
.ww-calendar-header .ww-calendar-legend p {
    font-size: 14px;
    margin: 0 0 0;
    padding: 45px 0 0;
}
.ww-calendar-header .ww-calendar-legend .dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #e5e5e5;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 0;
    position: relative;
    top: 5px;
}
.ww-calendar-header .ww-calendar-legend .dot:first-child {
    margin-left: 0;
}
.ww-calendar-header .ww-calendar-legend .dot.club_match {
    background: #6598CF;
}
.ww-calendar-header .ww-calendar-legend .dot.open_match {
    background: #FF9A1E;
}
.ww-calendar-header .ww-calendar-legend .dot.league_match {
    background: #9D72CB;
}


.ww-calendar-header .ww-calendar-nav {
    flex: 1;
    text-align: right;
    padding: 30px 0 10px;
}
@media only screen and (max-width: 900px) {
    .ww-calendar-header {
        flex-direction: column;
    }
    .ww-calendar-header .ww-calendar-nav {
        text-align: left;
        padding: 0 0 10px;
        margin-left: -6px;
    }
    .ww-calendar-header .ww-calendar-legend p {
        padding: 8px 0 13px;
    }
    .ww-calendar-header .ww-current-lake-name h2 {
        margin: 10px 0 0;
    }
}

/* Ensure calendar grid layout is correct */
.ww-booking-calendar {
    overflow-x: auto;
    max-width: 1200px;
}
.ww-calendar-day-header {
    background: #555;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.ww-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /*background: #ddd;*/
    /*border: 1px solid #ddd;*/
}

.ww-calendar-day {
    background: white;
    padding: 14px;
    min-height: 100px;
    position: relative;
    border: 2px solid #ddd;
}
.ww-day-header {
    margin-top: -14px;
    margin-left: -14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.ww-day-header .ww-day-number {
    width: 30px;
    height: 30px;
    background: #e5e5e5;
    text-align: center;
    line-height: 31px;
    font-weight: bold;
    color: black;
}
.ww-day-header .ww-day-booking-status {
    border-bottom: 3px solid #e5e5e5;
    height: 30px;
    width: calc(100% - 40px);
    text-align: right;
}
.ww-day-header .ww-day-booking-status .dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #e5e5e5;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-left: 5px;
}
.ww-day-header .ww-day-booking-status .dot.club_match {
    background: #6598CF;
}
.ww-day-header .ww-day-booking-status .dot.open_match {
    background: #FF9A1E;
}
.ww-day-header .ww-day-booking-status .dot.league_match {
    background: #9D72CB;
}

.ww-peg-status {
    font-size: 12px;
    margin: 5px 0;
}
.ww-availability-status {
    width: 100%;
    border: 3px solid transparent;
    border-radius: 20px 4px 4px 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.ww-status-available {
    border-color: #649B64;
    color: #649B64;
    margin-bottom: 6px;
}
.ww-availability-status span {
    padding: 6px 10px;
    height: 100%;
    min-width: 36px;
    text-align: center;
}
.ww-status-partially-booked {
    /*background: #f4bb29;
    color: black;*/
}
.ww-status-booked {
    border-color: #9B322F;
    color: #9B322F;
}
.ww-status-available .full-bg {
    height: 100%;
    background: #649B64;
    color: white;
}
.ww-status-booked .full-bg {
    height: 100%;
    background: #9B322F;
    color: white;
}
.ww-status-available.disabled,
.ww-status-booked.disabled {
    border-color: #e5e5e5;
    color: #e5e5e5;
    pointer-events: none;
}
.ww-status-available.disabled .full-bg,
.ww-status-booked.disabled .full-bg {
    border-color: #e5e5e5;
    background: #e5e5e5;
    color: white;
}
.fully-booked {
    pointer-events: none;
}
.ww-booking-details {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.ww-peg-item.booked .ww-booking-details {
    color: #dc3545;
}

/* Add to calendar.css */
.ww-peg-selection-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ww-peg-selection-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}
.ww-peg-selection-table th.ww-match-type,
.ww-peg-selection-table th.ww-club {
    min-width: 280px;
}

.ww-peg-selection-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.ww-peg-selection-table tr:hover {
    background: #f8f9fa;
}

.ww-peg-checkbox {
    text-align: center;
}

.ww-peg-checkbox input[type="checkbox"] {
    transform: scale(1.2);
}

.ww-peg-name {
    font-weight: bold;
}

.ww-peg-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
}

.ww-peg-status.available {
    background: #28a745;
    color: white;
}

.ww-peg-status.booked {
    background: #dc3545;
    color: white;
}

.ww-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ww-form-control:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.ww-peg-row.disabled {
    background: #f8f9fa;
    opacity: 0.6;
}

.ww-required-field {
    border-color: #dc3545 !important;
}

.ww-field-required {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Add to calendar.css */
.ww-booking-help {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.ww-booking-help p {
    margin: 5px 0;
    color: #666;
}

/* Add to calendar.css */
.ww-loading-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ww-loading-data .ww-spinner {
    margin: 20px auto;
}
.ww-modal-content .ww-close-modal {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    margin: 20px 0 0;
    display: inline-block;
    width: 100%;
    text-align: right;
}
.ww-btn-primary,
.ww-btn-secondary {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.ww-btn-primary {
    color: white;
    background: teal;
}
.ww-btn-secondary {
    color: white;
    background: orange;
}

.ww-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Weekend styling */
.ww-calendar-day.weekend {
    background-color: #f8f9fa !important;
    border-left: 2px solid #e9ecef;
    border-right: 2px solid #e9ecef;
}

.ww-calendar-day.saturday {
    background-color: #f0f8ff !important; /* Light blue for Saturday */
}

.ww-calendar-day.sunday {
    background-color: #fff0f0 !important; /* Light red for Sunday */
}

/* Holiday styling */
.ww-calendar-day.holiday {
    background-color: #f5f5f5 !important; /* Light yellow for holidays */
    /*border: 2px solid #e5e5e5 !important;*/
    position: relative;
}
.ww-calendar-day.holiday .ww-status-available {
    border-color: #d5d5d5;
    color: #d5d5d5;
}
.ww-calendar-day.holiday .ww-status-available .full-bg {
    background: #d5d5d5;
}
.ww-calendar-day.holiday .ww-status-available.disabled,
.ww-calendar-day.holiday .ww-status-booked.disabled {
    border-color: #d5d5d5;
    color: #d5d5d5;
}
.ww-calendar-day.holiday .ww-status-available.disabled .full-bg,
.ww-calendar-day.holiday .ww-status-booked.disabled .full-bg {
    background: #d5d5d5;
}

.ww-calendar-day.holiday::after {
    /*content: '🎄';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px;*/
}

.ww-calendar-day.holiday.unavailable {
    background-color: #f8d7da !important; /* Red for unavailable holidays */
    border-color: #dc3545 !important;
    color: #721c24;
}

.ww-calendar-day.holiday.unavailable::after {
    content: '❌';
}

/* Status indicators for holidays */
.ww-status-holiday {
    background: linear-gradient(45deg, #ffc107 25%, transparent 25%,
                                transparent 50%, #ffc107 50%,
                                #ffc107 75%, transparent 75%) !important;
    background-size: 10px 10px !important;
}

.ww-status-holiday-unavailable {
    background: linear-gradient(45deg, #dc3545 25%, transparent 25%,
                                transparent 50%, #dc3545 50%,
                                #dc3545 75%, transparent 75%) !important;
    background-size: 10px 10px !important;
}

/* Legend additions */
.ww-calendar-legend .dot.holiday {
    background: #ffc107;
}

.ww-calendar-legend .dot.holiday-unavailable {
    background: #e5e5e5;
}

/* Holiday indicator */
.ww-holiday-indicator {
    display: none;
    font-size: 10px;
    margin-left: 2px;
    vertical-align: super;
}

/* Holiday override styles */
.ww-calendar-day.holiday-override {
    cursor: not-allowed !important;
    opacity: 0.7;
}

.ww-calendar-day.holiday-override .ww-availability-status {
    text-decoration: line-through;
}