/* Events Manager Pro - Public Styles */

.emp-events-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.emp-event-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.emp-event-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.emp-event-item h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.emp-event-meta {
    margin-bottom: 16px;
}

.emp-event-meta p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.emp-event-meta strong {
    color: #2c3e50;
    font-weight: 600;
}

.emp-event-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.emp-book-now-btn {
    background: #007cba;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.emp-book-now-btn:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Booking Form Styles */
.emp-booking-form {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 32px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.emp-booking-form h3 {
    margin: 0 0 24px 0;
    color: #2c3e50;
    font-size: 28px;
    text-align: center;
}

.emp-customer-details,
.emp-ticket-selection {
    margin-bottom: 32px;
}

.emp-customer-details h4,
.emp-ticket-selection h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.emp-booking-form label {
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
    font-weight: 600;
}

.emp-booking-form input[type="text"],
.emp-booking-form input[type="email"],
.emp-booking-form input[type="tel"],
.emp-booking-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.emp-booking-form input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.emp-ticket-type {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.emp-ticket-type h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
}

.emp-ticket-type p {
    margin: 4px 0;
    color: #666;
}

.emp-ticket-type input[type="number"] {
    width: 80px;
    margin-bottom: 0;
}

.emp-booking-total {
    background: #e8f4f8;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.emp-booking-total h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

#emp-proceed-payment {
    width: 100%;
    background: #28a745;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#emp-proceed-payment:hover {
    background: #218838;
}

#emp-proceed-payment:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Payment Success/Cancel Pages */
.emp-payment-success,
.emp-payment-cancelled {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.emp-payment-success h1,
.emp-payment-cancelled h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 32px;
}

.emp-booking-confirmation,
.emp-booking-details {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.emp-booking-details h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
}

.emp-booking-details p {
    margin: 12px 0;
    font-size: 16px;
}

.emp-booking-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.emp-next-steps {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin-top: 24px;
}

.emp-next-steps h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.emp-next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.emp-next-steps li {
    margin-bottom: 8px;
    color: #555;
}

.emp-actions {
    text-align: center;
    margin-top: 32px;
}

.emp-actions .button {
    background: #007cba;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.emp-actions .button:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.emp-actions .button-primary {
    background: #28a745;
}

.emp-actions .button-primary:hover {
    background: #218838;
}

/* Calendar Styles - Fixed Layout */
.emp-calendar-container {
    margin: 20px 0;
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 20px; /* Add space before footer */
}

.emp-calendar-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: visible;
}

#emp-calendar {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* FullCalendar Override Styles for Equal Day Sizing */
.fc-view-container {
    overflow: visible !important;
}

.fc-view {
    overflow: visible !important;
}

.fc-month-view {
    overflow: visible !important;
}

.fc-scroller {
    overflow: visible !important;
    height: auto !important;
}

.fc-day-grid-container {
    overflow: visible !important;
    height: auto !important;
}

.fc-day-grid {
    width: 100% !important;
    table-layout: fixed !important;
}

.fc-day-grid .fc-row {
    border-bottom: 1px solid #ddd;
    min-height: 120px !important;
    height: 120px !important;
}

.fc-day-grid .fc-day {
    width: 14.285714% !important; /* Equal width for 7 days */
    border-right: 1px solid #ddd;
    vertical-align: top;
    position: relative;
}

.fc-day-grid .fc-day-number {
    padding: 8px;
    font-weight: 500;
    color: #333;
}

.fc-day-grid .fc-content-skeleton {
    position: relative;
    z-index: 2;
    padding: 2px;
}

.fc-day-grid .fc-content-skeleton table {
    width: 100%;
    table-layout: fixed;
}

.fc-day-grid .fc-content-skeleton td {
    width: 14.285714% !important;
    vertical-align: top;
    border-right: 1px solid #ddd;
    padding: 2px;
}

.fc-toolbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.fc-toolbar h2 {
    font-size: 1.8em;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.fc-button {
    background: #007cba !important;
    border-color: #007cba !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin: 0 2px;
}

.fc-button:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.fc-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.fc-today {
    background: #f0f8ff !important;
}

.fc-event {
    border-radius: 4px;
    font-size: 11px;
    padding: 1px 3px;
    margin: 1px 0;
    border: none;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-event:hover {
    opacity: 0.8;
}

/* Prevent calendar from interfering with footer */
.emp-calendar-container::after {
    content: '';
    display: block;
    height: 40px;
    clear: both;
}

/* Loading States */
.emp-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.emp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: emp-spin 1s linear infinite;
}

@keyframes emp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.emp-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.emp-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .emp-booking-form {
        margin: 20px;
        padding: 20px;
    }
    
    .emp-booking-form h3 {
        font-size: 24px;
    }
    
    .emp-ticket-type {
        padding: 16px;
    }
    
    .emp-actions .button {
        display: block;
        margin: 8px 0;
    }
    
    .emp-events-list {
        gap: 16px;
    }
    
    .emp-event-item {
        padding: 20px;
    }
    
    .emp-event-item h3 {
        font-size: 20px;
    }
    
    /* Mobile Calendar Adjustments */
    .fc-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .fc-toolbar .fc-left,
    .fc-toolbar .fc-right,
    .fc-toolbar .fc-center {
        float: none;
        display: block;
        clear: both;
        margin: 5px 0;
    }
    
    .fc-day-grid .fc-row {
        min-height: 80px !important;
        height: 80px !important;
    }
    
    .fc-day-grid .fc-day-number {
        padding: 4px;
        font-size: 12px;
    }
    
    .fc-event {
        font-size: 10px;
        padding: 1px 2px;
    }
}

@media (max-width: 480px) {
    .emp-booking-form {
        margin: 10px;
        padding: 16px;
    }
    
    .emp-booking-form input[type="text"],
    .emp-booking-form input[type="email"],
    .emp-booking-form input[type="tel"],
    .emp-booking-form input[type="number"] {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .emp-ticket-type input[type="number"] {
        width: 60px;
    }
    
    /* Extra small screen calendar */
    .fc-day-grid .fc-row {
        min-height: 60px !important;
        height: 60px !important;
    }
    
    .fc-toolbar h2 {
        font-size: 1.4em;
    }
    
    .fc-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .emp-booking-form,
    .emp-payment-success,
    .emp-booking-confirmation {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .emp-actions {
        display: none;
    }
    
    .emp-book-now-btn {
        display: none;
    }
    
    .emp-calendar-container {
        margin-bottom: 10px;
    }
}