/* Dana Calendar Booking - Public Styles */

/* Calendar Wrapper */
.dcb-booking-calendar-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Calendar Header */
.dcb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.dcb-calendar-title {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.dcb-prev-month,
.dcb-next-month {
    padding: 8px 16px;
    background: #3498db;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.dcb-prev-month:hover,
.dcb-next-month:hover {
    background: #2980b9;
    color: white !important;
}

/* Calendar Legend */
.dcb-calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.dcb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dcb-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.dcb-legend-color.dcb-available {
    background: #d5f4e6;
}

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

.dcb-legend-color.dcb-unavailable {
    background: #f8d7da;
}

/* Calendar Grid */
.dcb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dcb-calendar-day-header {
    background: #34495e;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
}

.dcb-calendar-day {
    border: 2px solid #ddd;
    padding: 12px 8px;
    text-align: center;
    min-height: 70px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.dcb-calendar-day.dcb-unavailable,
.dcb-calendar-day.dcb-past-date {
    background: #f8d7da;
    border-color: #e74c3c;
    opacity: 0.6;
    cursor: not-allowed;
}

.dcb-calendar-day.dcb-calendar-day-empty {
    background: transparent;
    border: none;
    cursor: default;
}

.dcb-calendar-day:not(.dcb-past-date):not(.dcb-unavailable):not(.dcb-calendar-day-empty):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dcb-day-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.dcb-day-status {
    font-size: 11px;
    color: #555;
}

/* Slot Indicators */
.dcb-day-slots {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-top: 4px;
}

.dcb-slot-indicator {
    font-size: 14px;
    opacity: 0.8;
}

.dcb-slot-indicator.dcb-slot-available {
    opacity: 1;
}

.dcb-slot-indicator.dcb-slot-booked {
    opacity: 0.3;
    filter: grayscale(100%);
}

/* Selected Date */
.dcb-calendar-day.dcb-selected-date {
    border-color: #2980b9 !important;
    border-width: 3px !important;
    box-shadow: 0 0 10px rgba(41, 128, 185, 0.5);
}

/* Booking Form */
.dcb-booking-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dcb-booking-form h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.dcb-form-section {
    margin: 25px 0;
}

.dcb-form-section h4 {
    color: #34495e;
    margin-bottom: 15px;
}

.dcb-help-text {
    font-size: 14px;
    color: #7f8c8d;
    margin: 5px 0 15px;
}

.dcb-selected-info {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-size: 16px;
}

/* Time Slots */
.dcb-time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dcb-time-slot {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
}

.dcb-time-slot:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.dcb-time-slot input[type="checkbox"] {
    display: none;
}

.dcb-time-slot input[type="checkbox"]:checked + .dcb-time-slot-content {
    background: #3498db;
    color: white;
}

.dcb-time-slot-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

/* Slot Unavailable */
.dcb-time-slot.dcb-slot-unavailable {
    opacity: 0.5;
    pointer-events: none;
    background: #f8f9fa;
}

.dcb-time-slot.dcb-slot-unavailable .dcb-time-slot-content {
    background: #ecf0f1;
}

/* Slot Status Badges */
.dcb-slot-status {
    margin-left: auto;
    font-size: 13px;
    font-weight: bold;
}

.dcb-available-badge {
    color: #27ae60;
}

.dcb-booked-badge {
    color: #e74c3c;
}

.dcb-slot-icon {
    font-size: 32px;
}

.dcb-slot-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.dcb-slot-time {
    font-size: 14px;
    opacity: 0.8;
}

/* Form Groups */
.dcb-form-group {
    margin-bottom: 20px;
}

.dcb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #2c3e50;
}

.dcb-form-group input[type="text"],
.dcb-form-group input[type="email"],
.dcb-form-group input[type="tel"],
.dcb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

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

/* Form Actions */
.dcb-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.dcb-button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.dcb-button-primary {
    background: #27ae60;
    color: white;
}

.dcb-button-primary:hover {
    background: #229954;
}

.dcb-button-secondary {
    background: #95a5a6;
    color: white;
}

.dcb-button-secondary:hover {
    background: #7f8c8d;
}

/* My Bookings */
.dcb-my-bookings {
    max-width: 800px;
    margin: 20px auto;
}

.dcb-bookings-list {
    display: grid;
    gap: 15px;
}

.dcb-booking-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    border-left: 4px solid #3498db;
}

.dcb-booking-card.dcb-status-pending {
    border-left-color: #f39c12;
}

.dcb-booking-card.dcb-status-approved {
    border-left-color: #27ae60;
}

.dcb-booking-card.dcb-status-rejected {
    border-left-color: #e74c3c;
}

.dcb-booking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.dcb-booking-id {
    font-weight: bold;
    color: #7f8c8d;
}

.dcb-booking-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

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

.dcb-status-approved .dcb-booking-status {
    background: #d4edda;
    color: #155724;
}

.dcb-status-rejected .dcb-booking-status {
    background: #f8d7da;
    color: #721c24;
}

.dcb-booking-details p {
    margin: 8px 0;
    color: #555;
}

/* Events List */
.dcb-events-list {
    max-width: 800px;
    margin: 20px auto;
}

.dcb-event-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dcb-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #3498db;
    color: white;
    border-radius: 8px;
    padding: 15px;
    min-width: 80px;
}

.dcb-event-month {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.dcb-event-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.dcb-event-info h4 {
    margin-top: 0;
    color: #2c3e50;
}

.dcb-event-type {
    color: #7f8c8d;
    font-size: 14px;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dcb-calendar-grid {
        gap: 4px;
    }
    
    .dcb-calendar-day {
        min-height: 50px;
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .dcb-day-number {
        font-size: 14px;
    }
    
    .dcb-day-status {
        font-size: 9px;
    }
    
    .dcb-booking-form {
        padding: 20px;
    }
    
    .dcb-form-actions {
        flex-direction: column;
    }
    
    .dcb-button {
        width: 100%;
    }
    
    .dcb-event-card {
        flex-direction: column;
    }
}

/* Messages */
.dcb-success-message {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin: 20px 0;
}

.dcb-error-message {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 20px 0;
}

/* Event Indicators */
.dcb-day-events-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e67e22;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    z-index: 10;
}

.dcb-day-events-indicator:hover {
    background: #d35400;
}

.dcb-calendar-day {
    position: relative;
}

.dcb-calendar-day.dcb-has-events .dcb-day-number {
    color: #e67e22;
    font-weight: bold;
}

/* Events Modal */
.dcb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.dcb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dcb-modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dcb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #95a5a6;
}

.dcb-modal-close:hover {
    color: #2c3e50;
}

.dcb-modal h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.dcb-modal-event {
    padding: 20px;
    margin: 15px 0;
    background: #f8f9fa;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
}

.dcb-modal-event h4 {
    margin-top: 0;
    color: #2c3e50;
}

.dcb-event-type,
.dcb-event-time {
    margin: 8px 0;
    color: #555;
}

.dcb-event-description {
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.dcb-event-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    line-height: 1.6;
}

/* Special Events */
.dcb-day-events-indicator.dcb-special-event {
    background: #9b59b6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(155, 89, 182, 0);
    }
}

.dcb-calendar-day.dcb-has-events.dcb-has-special {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

/* Enhanced Success Message */
.dcb-booking-success {
    text-align: center;
    padding: 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: slideDown 0.5s ease-out;
}

.dcb-booking-success h3 {
    color: #155724;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.dcb-booking-success p {
    font-size: 16px;
    color: #155724;
    margin: 10px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
