/* TicketMax Inline Styles - Extracted from PHP files */

/* Fallback notification styles for cart */
.ticketmax-fallback-cart {
    background: #ffeb3b;
    padding: 10px;
    margin: 10px;
    border: 2px solid #f57c00;
    border-radius: 5px;
}

/* Fallback notification styles for checkout */
.ticketmax-fallback-checkout {
    background: #e3f2fd;
    padding: 10px;
    margin: 10px 0;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

/* QR Code display style */
.ticketmax-qr-code {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Venue form styles */
.ticketmax-venue-form-container {
    display: none;
}

.ticketmax-seating-charts-container {
    display: none;
}

.ticketmax-seating-builder-container {
    display: none;
}

.ticketmax-advanced-seating-builder {
    display: none;
}

.ticketmax-element-properties {
    display: none;
}

/* Button styles */
.ticketmax-button-full-width {
    width: 100%;
    margin-bottom: 10px;
}

.ticketmax-button-full-width-cancel {
    width: 100%;
}

.ticketmax-button-margin-top {
    margin-top: 16px;
}

.ticketmax-button-display-none {
    display: none;
}

/* Center alignment */
.ticketmax-center-align {
    margin-top: 20px;
    text-align: center;
}

/* WooCommerce product panel styles - modernized */
.ticketmax-panel-header {
    padding: 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Legacy header - hidden in new design */
.ticketmax-panel-header-seating {
    display: none;
}

/* Modern card-based configuration design */
.ticketmax-config-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 16px 0;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.ticketmax-config-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ticketmax-config-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.ticketmax-config-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.ticketmax-config-info {
    flex: 1;
}

.ticketmax-config-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.ticketmax-config-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.ticketmax-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.ticketmax-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
}

.ticketmax-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.ticketmax-inventory-section {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Legend styles for seating - note: these use dynamic styles set by JavaScript */
.ticketmax-legend-selected {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.ticketmax-legend-not-available {
    background: linear-gradient(135deg, #D1D5DB 0%, #9CA3AF 100%);
}

.ticketmax-legend-separator {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 4px 0;
}

/* Modal styles */
.ticketmax-zone-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 300px;
}

.ticketmax-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

/* Zone quantity modal specific styles */
#zone-quantity-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

#zone-quantity-modal {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.ticketmax-modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.ticketmax-modal-title {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.ticketmax-modal-description {
    color: #666;
    margin: 15px 0;
    font-size: 14px;
}

.ticketmax-modal-field-group {
    margin: 20px 0;
}

.ticketmax-modal-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

#zone-quantity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.ticketmax-modal-buttons {
    margin-top: 25px;
}

#zone-confirm-btn {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
}

#zone-confirm-btn:hover {
    background: #005a8b;
}

#zone-cancel-btn {
    background: #666;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

#zone-cancel-btn:hover {
    background: #555;
}

/* Modern form elements */
.options_group {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.form-field label,
.form-field-wide label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Modern input styling */
input[type="text"],
input[type="number"],
select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hidden elements */
.ticketmax-hidden {
    display: none !important;
}

/* Dynamic display classes */
.ticketmax-display-block {
    display: block !important;
}

.ticketmax-display-none {
    display: none !important;
}

/* Specific hidden containers - higher specificity for admin pages */
/* Use higher specificity but without !important to allow jQuery .show() to work */
div#venue-form-container.ticketmax-venue-form-container,
div#seating-charts-container.ticketmax-seating-charts-container,
div#seating-builder-container.ticketmax-seating-builder-container,
div#advanced-seating-builder.ticketmax-advanced-seating-builder,
div#element-properties.ticketmax-element-properties {
    display: none;
}

/* Hide Asientos tab by default */
.wc-tabs li.asientos-tab {
    display: none;
}