/* Retix Ticket Resale Plugin Styles */

/* Import Tajawal font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* Base styles */
.retix-ticket-form-container {
    font-family: 'Tajawal', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(62, 8, 76, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.retix-ticket-form-container * {
    box-sizing: border-box;
}

.retix-ticket-form-container > * {
    width: 100%;
    max-width: 100%;
}

/* Event Banner Section */
.retix-event-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.retix-event-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.retix-event-info {
    position: relative;
    z-index: 1;
}

.retix-event-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.retix-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.retix-team-flag {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.retix-uae-flag {
    background: linear-gradient(to bottom, #ff0000 33%, #ffffff 33% 66%, #000000 66%);
}

.retix-uzbekistan-flag {
    background: linear-gradient(to bottom, #0099b5 33%, #ffffff 33% 66%, #0099b5 66%);
    position: relative;
}

.retix-uzbekistan-flag::before {
    content: '☪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #0099b5;
}

.retix-team-name {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.retix-vs {
    font-size: 24px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.retix-event-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.retix-event-date {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd700;
}

.retix-event-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.retix-event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.retix-event-detail i {
    color: #ffd700;
}

/* Stadium Section */
.retix-stadium-section {
    margin-bottom: 30px;
}

.retix-stadium-map {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.retix-stadium-map h3 {
    text-align: center;
    color: #3e084c;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.retix-stadium-layout {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

.retix-pitch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 120px;
    background: #28a745;
    border: 2px solid #1e7e34;
    border-radius: 8px;
}

.retix-stands {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(29, 1fr);
    gap: 2px;
}

.retix-section {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 20px;
}

.retix-section:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Section colors based on the image */
.retix-section-1, .retix-section-2, .retix-section-3, .retix-section-4, .retix-section-5, .retix-section-6, .retix-section-7, .retix-section-8 {
            background: #fd7e14; /* Orange */
}

.retix-section-9, .retix-section-10, .retix-section-11, .retix-section-12, .retix-section-13, .retix-section-14, .retix-section-15, .retix-section-16, .retix-section-17, .retix-section-18 {
            background: #20c997; /* Teal */
}

.retix-section-19, .retix-section-20, .retix-section-21, .retix-section-22, .retix-section-23, .retix-section-24, .retix-section-25, .retix-section-26 {
            background: #dc3545; /* Red */
}

.retix-section-27, .retix-section-28, .retix-section-29 {
    background: #ffc107; /* Yellow - Hospitality */
}

.retix-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.retix-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.retix-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.retix-cat1-prim {
    background: #28a745; /* Green */
}

.retix-cat1 {
    background: #20c997; /* Teal */
}

.retix-cat2 {
    background: #fd7e14; /* Orange */
}

.retix-cat3 {
    background: #dc3545; /* Red */
}

.retix-hospitality {
    background: #ffc107; /* Yellow */
}

/* Event Selection Section */
.retix-event-selection {
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.retix-event-selection h2 {
    color: #3e084c;
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.retix-event-selection-desc {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

.retix-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.retix-event-card {
    background: white;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
}

.retix-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.retix-event-card-banner {
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.retix-event-card-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.retix-event-card .retix-event-teams {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 20px 15px 0;
}

.retix-event-card .retix-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.retix-event-card .retix-team-flag {
    width: 50px;
    height: 35px;
    border-radius: 6px;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.retix-event-card .retix-team-name {
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.retix-event-card .retix-vs {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.retix-event-card .retix-event-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.retix-event-card .retix-event-date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffd700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.retix-event-card .retix-event-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.retix-event-card .retix-event-venue i {
    color: #ffd700;
}

/* Date Badge Overlay */
.retix-event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    z-index: 3;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.retix-event-date-badge .date-number {
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.retix-event-date-badge .date-month {
    font-size: 10px;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-top: 2px;
    opacity: 0.9;
}

/* New event card structure with images */
.retix-event-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.retix-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 150px;
}

.retix-event-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: white;
}

.retix-event-info .retix-event-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.retix-event-info .retix-event-description {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 6px;
    line-height: 1.3;
    color: white;
}

.retix-event-info .retix-event-date {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.retix-event-info .retix-event-venue {
    font-size: 11px;
    opacity: 0.9;
    color: white;
}

/* Event Images Section */
.retix-event-images-section {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.retix-event-banner-display,
.retix-event-map-display {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.retix-event-banner-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.retix-event-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retix-event-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.retix-event-banner-overlay h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.retix-event-banner-placeholder,
.retix-event-map-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 40px 20px;
}

.retix-event-banner-placeholder i,
.retix-event-map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.retix-event-banner-placeholder h3,
.retix-event-map-placeholder h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #3e084c;
}

.retix-event-banner-placeholder p,
.retix-event-map-placeholder p {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.retix-event-map-image {
    padding: 20px;
    text-align: center;
}

.retix-event-map-image h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #3e084c;
}

.retix-event-map-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.retix-event-card-actions {
    padding: 25px;
    text-align: center;
    background: white;
}

.retix-select-event {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3e084c 0%, #481865 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.retix-select-event:hover {
    background: linear-gradient(135deg, #481865 0%, #3e084c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(62, 8, 76, 0.3);
}

.retix-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.retix-no-events i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.retix-no-events h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Selected Event Display */
.retix-selected-event {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.retix-selected-event-info h3 {
    color: #3e084c;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.retix-selected-event-details {
    color: #6c757d;
    font-size: 14px;
}

.retix-change-event {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Additional Flag Styles */
.retix-saudi-flag {
    background: linear-gradient(to bottom, #006c35 33%, #ffffff 33% 66%, #006c35 66%);
    position: relative;
}

.retix-saudi-flag::before {
    content: '☪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #006c35;
}

.retix-qatar-flag {
    background: linear-gradient(to right, #8d1f3a 33%, #ffffff 33% 66%, #8d1f3a 66%);
    position: relative;
}

.retix-qatar-flag::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #8d1f3a;
}

.retix-kuwait-flag {
    background: linear-gradient(to bottom, #006c35 33%, #ffffff 33% 66%, #ce1126 66%);
    position: relative;
}

.retix-kuwait-flag::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #ce1126;
}

.retix-bahrain-flag {
    background: linear-gradient(to right, #ce1126 33%, #ffffff 66%);
    position: relative;
}

.retix-bahrain-flag::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #ce1126;
}

/* Form Section */
.retix-form-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.retix-form-section * {
    box-sizing: border-box;
}

.retix-form-section > * {
    width: 100%;
    max-width: 100%;
}

/* Progress bar */
.retix-form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.retix-form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.retix-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.retix-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.retix-progress-step.active .retix-step-number {
    background: #3e084c;
    color: #ffffff;
}

.retix-progress-step.completed .retix-step-number {
    background: #481865;
    color: #ffffff;
}

.retix-step-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
}

.retix-progress-step.active .retix-step-title {
    color: #3e084c;
    font-weight: 600;
}

.retix-progress-step.completed .retix-step-title {
    color: #481865;
}

/* Form steps */
.retix-form-step {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.retix-form-step.active {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
}

.retix-form-step * {
    box-sizing: border-box;
}

.retix-form-step > * {
    width: 100%;
    max-width: 100%;
}

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

.retix-form-step h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 700;
    color: #3e084c;
    text-align: left;
    width: 100%;
}

/* Form groups */
.retix-form-group {
    margin-bottom: 25px;
    width: 100%;
}

.retix-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.retix-form-row .retix-form-group {
    margin-bottom: 0;
    width: 100%;
}

.retix-form-row:has(.retix-form-group:nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Price and button row */
.retix-form-row .retix-form-group:last-child {
    display: flex;
    align-items: flex-end;
}

.retix-form-row .retix-form-group:last-child .retix-btn {
    width: 100%;
    margin-top: 0;
}

.retix-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: left;
    width: 100%;
}

/* Ensure all form groups in a row have consistent label positioning */
.retix-form-row .retix-form-group label {
    display: block !important;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    text-align: left;
    position: relative;
    top: auto;
    left: auto;
    float: none;
    width: 100%;
}

/* Specific fix for seat numbers label */
.retix-form-row .retix-form-group:last-child label[for="seat_numbers"] {
    display: block !important;
    position: static !important;
    float: none !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    clear: both !important;
}

/* Additional fix for any inline display issues */
.retix-form-row .retix-form-group:last-child label {
    display: block !important;
    position: static !important;
    float: none !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    clear: both !important;
}

/* Force all form groups to use block layout */
.retix-form-row .retix-form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
}

.retix-form-row .retix-form-group label {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.retix-form-row .retix-form-group input,
.retix-form-row .retix-form-group select {
    flex: 1 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.retix-form-group input[type="text"],
.retix-form-group input[type="number"],
.retix-form-group input[type="email"],
.retix-form-group select,
.retix-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Tajawal', Arial, sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.retix-form-group input:focus,
.retix-form-group select:focus,
.retix-form-group textarea:focus {
    outline: none;
    border-color: #3e084c;
    box-shadow: 0 0 0 3px rgba(62, 8, 76, 0.1);
}

.retix-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Price input */
.retix-price-input {
    position: relative;
    display: flex;
    align-items: center;
}

/* Currency symbol positioning */
.retix-price-input::before {
    content: attr(data-currency);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-weight: 700;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Left position (default) */
.retix-price-input.retix-currency-left::before {
    left: 16px;
}

.retix-price-input.retix-currency-left input {
    padding-left: 40px !important;
}

/* Right position */
.retix-price-input.retix-currency-right::before {
    right: 16px;
}

.retix-price-input.retix-currency-right input {
    padding-right: 40px !important;
}

/* Right with space */
.retix-price-input.retix-currency-right_space::before {
    right: 16px;
}

.retix-price-input.retix-currency-right_space input {
    padding-right: 50px !important;
}

/* Left with space */
.retix-price-input.retix-currency-left_space::before {
    left: 16px;
}

.retix-price-input.retix-currency-left_space input {
    padding-left: 50px !important;
}

/* Arabic language specific styling */
.retix-price-input.retix-currency-ar::before {
    font-family: 'Tajawal', Arial, sans-serif;
    font-size: 16px;
}

.retix-price-input input {
    width: 100% !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    background: #ffffff !important;
    text-indent: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.retix-price-input input:focus {
    outline: none !important;
    border-color: #3e084c !important;
    box-shadow: 0 0 0 3px rgba(62, 8, 76, 0.1) !important;
}

.retix-price-input input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Error message styling - contained within form groups */
.retix-form-group {
    position: relative;
}

.retix-form-group .error-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 2px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure form groups maintain their size */
.retix-form-group input,
.retix-form-group select {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent error messages from affecting layout */
.retix-form-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.retix-form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 25px; /* Space for error messages */
}

/* Form actions styling - buttons side by side */
.retix-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    background: transparent;
}

.retix-form-actions .retix-btn {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.retix-form-actions .retix-btn-prev {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.retix-form-actions .retix-btn-prev:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.retix-form-actions .retix-btn-next,
.retix-form-actions .retix-btn-submit {
    background-color: #3e084c;
    border-color: #3e084c;
    color: white;
}

.retix-form-actions .retix-btn-next:hover,
.retix-form-actions .retix-btn-submit:hover {
    background-color: #2d0a37;
    border-color: #2d0a37;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ensure form steps contain their content properly */
.retix-form-step {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden; /* Prevent content from breaking out */
}

/* Ensure form container is properly structured */
.retix-ticket-form-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Ensure form section contains everything */
.retix-form-section {
    position: relative;
    background: transparent;
}

/* Change Event button styling */
.retix-change-event {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Event Search Bar Styling */
.retix-event-search-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.retix-search-input-wrapper {
    position: relative;
}

.retix-event-search-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.retix-event-search-input:focus {
    outline: none;
    border-color: #3e084c;
    box-shadow: 0 0 0 3px rgba(62, 8, 76, 0.1);
}

.retix-clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.retix-clear-search-btn:hover {
    background: #5a6268;
    transform: translateY(-50%) scale(1.1);
}



/* Total Payout Styling */
.retix-total-payout {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.retix-total-payout .retix-review-label {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.retix-total-payout .retix-review-value {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

/* Block Header Styling */
.retix-review-block-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.retix-review-block-header h5 {
    color: #3e084c;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Block Summary Stats Styling */
.retix-review-block-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.retix-review-block-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.retix-review-block-stat i {
    font-size: 16px;
    color: #6c757d;
    width: 20px;
    text-align: center;
}

.retix-review-block-stat span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.retix-review-block-stat strong {
    color: #3e084c;
    font-weight: 600;
}

/* Price display with better spacing */
.retix-review-block-stat .price-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.retix-review-block-stat .currency {
    color: #28a745;
    font-weight: 600;
    font-size: 12px;
}

.retix-review-block-stat .amount {
    color: #3e084c;
    font-weight: 700;
    font-size: 14px;
}

.retix-review-block-stat .per-unit {
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
}

/* Block Content Styling */
.retix-review-block-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.retix-review-block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.retix-review-block-item:last-child {
    border-bottom: none;
}

.retix-review-block-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
}

.retix-review-block-value {
    color: #3e084c;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

/* Responsive design for block stats */
@media (max-width: 768px) {
    .retix-review-block-stats {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .retix-review-block-stat {
        width: 100%;
        justify-content: space-between;
    }
}

/* No search results message */
.retix-no-search-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.retix-no-search-results i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.retix-no-search-results h3 {
    margin-bottom: 10px;
    color: #495057;
}

.retix-no-search-results p {
    margin: 0;
    font-size: 16px;
}

.retix-change-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.retix-change-event:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure form actions stay within form steps */
.retix-form-step .retix-form-actions {
    position: relative;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure buttons are contained within their parent containers */
.retix-form-actions .retix-btn {
    position: relative;
    z-index: 1;
    max-width: 200px;
    min-width: 140px;
}

/* Prevent buttons from breaking out of containers */
.retix-form-actions .retix-btn {
    position: relative;
    z-index: 1;
}

/* Responsive design for buttons */
@media (max-width: 768px) {
    .retix-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .retix-form-actions .retix-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Ensure error messages don't push other elements */
.retix-form-group .error-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 2px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none; /* Prevent interference with other elements */
}

/* Checkbox styling */
.retix-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    padding: 8px 12px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: none;
}

.retix-checkbox-label:hover {
    background: #f8f9fa;
    border-color: #3e084c;
}

.retix-checkbox-label input[type="checkbox"] {
    display: none;
}

.retix-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #3e084c;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
    flex-shrink: 0;
}

.retix-checkbox-label input[type="checkbox"]:checked + .retix-checkbox-custom {
    background: #3e084c;
    border-color: #3e084c;
}

.retix-checkbox-label input[type="checkbox"]:checked + .retix-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.retix-checkbox-label:has(input[type="checkbox"]:checked) {
    background: #f0e6f3;
    border-color: #3e084c;
}

/* Toggle Switch styling */
.retix-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    padding: 8px 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 48px; /* Match the height of other form inputs */
    align-items: center;
}

.retix-toggle-label:hover {
    background: transparent;
}

.retix-toggle-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.retix-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.retix-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.retix-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.retix-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.retix-toggle-input:checked + .retix-toggle-slider {
    background-color: #3e084c;
}

.retix-toggle-input:checked + .retix-toggle-slider:before {
    transform: translateX(26px);
}

.retix-toggle-input:focus + .retix-toggle-slider {
    box-shadow: 0 0 1px #3e084c;
}

.retix-toggle-label:has(.retix-toggle-input:checked) {
    background: transparent;
}

/* File upload */
.retix-file-upload {
    position: relative;
}

/* Dynamic ticket files */
.retix-upload-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #495057;
    font-size: 14px;
}

.retix-upload-info i {
    color: #3e084c;
    margin-right: 8px;
}

.retix-file-requirements {
    color: #6c757d;
    font-style: italic;
}

.retix-file-requirements i {
    margin-right: 6px;
    color: #3e084c;
}

.retix-ticket-file-item {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.retix-ticket-file-item:hover {
    border-color: #3e084c;
    box-shadow: 0 2px 8px rgba(62, 8, 76, 0.1);
}

.retix-ticket-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.retix-ticket-file-label {
    font-weight: 600;
    color: #3e084c;
    font-size: 16px;
}

.retix-ticket-file-number {
    background: #3e084c;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.retix-ticket-file-upload {
    position: relative;
}

.retix-ticket-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.retix-ticket-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.retix-ticket-upload-area:hover {
    border-color: #3e084c;
    background: #f0e6f3;
}

.retix-ticket-upload-area.dragover {
    border-color: #3e084c;
    background: #f0e6f3;
}

.retix-ticket-upload-icon {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 8px;
}

.retix-ticket-upload-area:hover .retix-ticket-upload-icon {
    color: #3e084c;
}

.retix-ticket-upload-text {
    color: #495057;
    font-size: 14px;
    margin-bottom: 4px;
}

.retix-ticket-upload-types {
    color: #6c757d;
    font-size: 12px;
}

.retix-ticket-preview {
    display: none;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.retix-ticket-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.retix-ticket-preview-content i {
    color: #3e084c;
    margin-right: 8px;
}

.retix-ticket-file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.retix-ticket-remove-file {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.retix-ticket-remove-file:hover {
    background: #c82333;
}

.retix-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.retix-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9f9f9;
    cursor: pointer;
}

.retix-upload-area:hover {
    border-color: #3e084c;
    background: #f0f0f0;
}

.retix-upload-area.dragover {
    border-color: #3e084c;
    background: rgba(62, 8, 76, 0.05);
}

.retix-upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

.retix-upload-area p {
    margin: 5px 0;
    color: #666;
    font-size: 16px;
}

.retix-file-types {
    font-size: 14px !important;
    color: #999 !important;
}

.retix-upload-preview {
    border: 2px solid #3e084c;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    margin-top: 10px;
}

.retix-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.retix-preview-content i {
    font-size: 24px;
    color: #3e084c;
    margin-right: 15px;
}

.retix-file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.retix-remove-file {
    background: #ff4757;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.retix-remove-file:hover {
    background: #ff3742;
}

/* Review summary */
.retix-review-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.retix-review-section {
    margin-bottom: 25px;
}

.retix-review-section:last-child {
    margin-bottom: 0;
}

.retix-review-section h4 {
    color: #3e084c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #3e084c;
    padding-bottom: 8px;
}

.retix-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.retix-review-item:last-child {
    border-bottom: none;
}

.retix-review-label {
    font-weight: 600;
    color: #333;
}

.retix-review-value {
    color: #666;
    text-align: right;
}

/* Form actions */
.retix-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.retix-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.retix-btn-next,
.retix-btn-submit {
    background: #3e084c;
    color: #ffffff;
}

.retix-btn-next:hover,
.retix-btn-submit:hover {
    background: #481865;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 8, 76, 0.3);
}

.retix-btn-prev {
    background: #666;
    color: #ffffff;
}

.retix-btn-prev:hover {
    background: #555;
    transform: translateY(-2px);
}

.retix-btn:disabled,
.retix-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
    color: #666;
    border-color: #ccc;
}

/* Messages */
.retix-form-messages {
    margin-top: 20px;
}

.retix-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.retix-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.retix-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login required */
.retix-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.retix-login-required p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.retix-login-required .retix-btn {
    background: #3e084c;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 16px;
}

.retix-login-required .retix-btn:hover {
    background: #481865;
}

/* Responsive design */
/* Large Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .retix-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .retix-event-card-banner {
        height: 280px;
    }
}

/* Medium Tablet Styles */
@media (max-width: 768px) and (min-width: 481px) {
    .retix-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .retix-event-card-banner {
        height: 260px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .retix-ticket-form-container {
        padding: 15px;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .retix-event-banner {
        padding: 20px;
    }

    .retix-event-teams {
        gap: 15px;
    }

    .retix-team-flag {
        width: 40px;
        height: 30px;
    }

    .retix-team-name {
        font-size: 14px;
    }

    .retix-vs {
        font-size: 18px;
    }

    .retix-event-details {
        flex-direction: column;
        gap: 10px;
    }

    .retix-stadium-layout {
        height: 200px;
    }

    .retix-pitch {
        width: 150px;
        height: 90px;
    }

    .retix-stands {
        grid-template-columns: repeat(15, 1fr);
    }

    .retix-section {
        font-size: 8px;
        min-height: 15px;
    }

    .retix-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .retix-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .retix-event-card-banner {
        height: 240px;
    }
    
    .retix-event-date-badge {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    
    .retix-event-date-badge .date-number {
        font-size: 18px;
    }
    
    .retix-event-date-badge .date-month {
        font-size: 10px;
    }
    
    .retix-event-info {
        padding: 15px;
    }
    
    .retix-event-info .retix-event-title {
        font-size: 15px;
    }
    
    .retix-event-info .retix-event-description {
        font-size: 13px;
    }
    
    .retix-event-info .retix-event-date {
        font-size: 13px;
    }
    
    .retix-event-info .retix-event-venue {
        font-size: 13px;
    }
    
    .retix-event-card .retix-event-teams {
        gap: 10px;
    }
    
    .retix-event-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .retix-select-event {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .retix-event-card .retix-team-flag {
        width: 30px;
        height: 20px;
    }
    
    .retix-event-card .retix-team-name {
        font-size: 12px;
    }
    
    .retix-event-card .retix-vs {
        font-size: 14px;
    }
    
    .retix-selected-event {
        padding: 15px;
    }
    
    .retix-change-event {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .retix-form-progress {
        padding: 0 15px;
    }
    
    .retix-form-progress::before {
        left: 15px;
        right: 15px;
    }
    
    .retix-progress-step {
        padding: 0 10px;
    }
    
    .retix-step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .retix-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .retix-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .retix-review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .retix-review-value {
        font-size: 14px;
    }
    
    .retix-event-images-section {
        padding: 0 15px;
    }
    
    .retix-event-banner-image,
    .retix-event-banner-placeholder {
        height: 200px;
    }
    
    .retix-event-banner-overlay h2 {
        font-size: 18px;
    }
    
    .retix-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .retix-form-row:has(.retix-form-group:nth-child(3)) {
        grid-template-columns: 1fr;
    }
    
    .retix-toggle-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .retix-toggle-switch {
        align-self: flex-start;
    }
    
    .retix-toggle-slider:before {
        left: 2px;
    }
    
    .retix-toggle-input:checked + .retix-toggle-slider:before {
        left: 22px;
    }
}

/* Loading states */
.retix-loading {
    position: relative;
    pointer-events: none;
}

.retix-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 #3e084c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ticket details on product pages */
.retix-ticket-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #3e084c;
}

.retix-ticket-details h4 {
    color: #3e084c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Tajawal', Arial, sans-serif;
}

.retix-ticket-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.retix-ticket-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Tajawal', Arial, sans-serif;
}

.retix-ticket-details li:last-child {
    border-bottom: none;
}

.retix-ticket-details strong {
    color: #3e084c;
    font-weight: 600;
}

/* Ticket info table */
.retix-ticket-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Tajawal', Arial, sans-serif;
}

.retix-ticket-info-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.retix-ticket-info-table td:first-child {
    font-weight: 600;
    color: #3e084c;
    width: 40%;
}

.retix-ticket-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-family: 'Tajawal', Arial, sans-serif;
}

.retix-ticket-unavailable {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #721c24;
    text-align: center;
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 600;
}

/* Status badges */
.retix-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.retix-status-sold {
    background: #cce5ff;
    color: #004085;
}

/* Submit Another Ticket Section */
.retix-submit-another {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.retix-submit-another p {
    margin-bottom: 15px;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.retix-submit-another .retix-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(62, 8, 76, 0.3);
}

.retix-submit-another .retix-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 8, 76, 0.4);
} 

/* Bulk upload styles */
.retix-bulk-upload-container {
    margin-bottom: 20px;
}

.retix-bulk-upload-info {
    margin-bottom: 20px;
    text-align: center;
}

.retix-bulk-upload-requirement {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.retix-bulk-upload-requirement strong {
    color: #3e084c;
    font-weight: 700;
}

.retix-bulk-upload-status {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.retix-bulk-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.retix-bulk-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
}

.retix-bulk-upload-area:hover {
    border-color: #3e084c;
    background: #f8f9fa;
}

.retix-bulk-upload-area.dragover {
    border-color: #3e084c;
    background: #f0e6f3;
}

.retix-bulk-upload-icon {
    font-size: 48px;
    color: #3e084c;
    margin-bottom: 15px;
}

.retix-bulk-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.retix-bulk-upload-files-list {
    min-height: 20px;
    margin-top: 10px;
}

.retix-bulk-upload-preview {
    margin-top: 20px;
}

.retix-bulk-upload-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.retix-bulk-file-preview-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.retix-bulk-file-preview-item:hover {
    border-color: #3e084c;
    box-shadow: 0 2px 8px rgba(62, 8, 76, 0.1);
}

.retix-bulk-file-preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.retix-bulk-file-preview-icon {
    font-size: 24px;
    color: #3e084c;
    flex-shrink: 0;
}

.retix-bulk-file-preview-info {
    flex: 1;
    min-width: 0;
}

.retix-bulk-file-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.retix-bulk-file-size {
    display: block;
    font-size: 12px;
    color: #666;
}

.retix-bulk-file-preview-number {
    background: #3e084c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.retix-bulk-file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.retix-bulk-file-remove:hover {
    background: #c82333;
}

.retix-bulk-file-preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.retix-bulk-upload-hint {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
} 

/* Multi-Block Ticket Interface */
.retix-ticket-block,
.retix-upload-block {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.retix-ticket-block:hover,
.retix-upload-block:hover {
    border-color: #3e084c;
    box-shadow: 0 4px 15px rgba(62, 8, 76, 0.1);
}

.retix-ticket-block:last-child,
.retix-upload-block:last-child {
    margin-bottom: 0;
}

.retix-block-header,
.retix-upload-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    width: 100%;
}

.retix-block-header h4,
.retix-upload-block-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #3e084c;
}

.retix-remove-block {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retix-remove-block:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.retix-remove-block i {
    font-size: 12px;
}

.retix-add-block-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.retix-add-block-section:hover {
    border-color: #3e084c;
    background: #f0f0f0;
}

.retix-add-block-section .retix-btn {
    background: #3e084c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.retix-add-block-section .retix-btn:hover {
    background: #2a0635;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(62, 8, 76, 0.3);
}

.retix-add-block-section .retix-btn i {
    font-size: 14px;
}

/* Upload Blocks */
.retix-upload-block {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.retix-upload-block:hover {
    border-color: #3e084c;
    box-shadow: 0 4px 15px rgba(62, 8, 76, 0.1);
}

.retix-upload-block:last-child {
    margin-bottom: 0;
}

.retix-upload-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.retix-upload-block-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #3e084c;
}

.retix-upload-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.retix-upload-count {
    font-weight: 600;
    color: #3e084c;
}

/* Review Blocks */
.retix-review-block {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.retix-review-block:last-child {
    margin-bottom: 0;
}

.retix-review-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.retix-review-block-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3e084c;
}

.retix-review-block-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.retix-review-block-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.retix-review-block-stat strong {
    color: #3e084c;
}

.retix-review-block-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.retix-review-block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.retix-review-block-item:last-child {
    border-bottom: none;
}

.retix-review-block-label {
    font-weight: 600;
    color: #495057;
}

.retix-review-block-value {
    color: #3e084c;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .retix-ticket-block,
    .retix-upload-block {
        padding: 20px;
    }
    
    .retix-block-header,
    .retix-upload-block-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .retix-remove-block {
        align-self: flex-end;
    }
    
    .retix-review-block-content {
        grid-template-columns: 1fr;
    }
    
    .retix-review-block-stats {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .retix-ticket-block,
    .retix-upload-block {
        padding: 15px;
    }
    
    .retix-block-header h4,
    .retix-upload-block-header h4 {
        font-size: 16px;
    }
    
    .retix-remove-block {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .retix-add-block-section .retix-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
} 

/* Form Validation Styles */
.retix-form-group input.error,
.retix-form-group select.error,
.retix-form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.retix-form-group input.error:focus,
.retix-form-group select.error:focus,
.retix-form-group textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.retix-ticket-block.error,
.retix-upload-block.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.retix-ticket-block.error .retix-block-header,
.retix-upload-block.error .retix-upload-block-header {
    border-bottom-color: #dc3545;
}

.retix-ticket-block.error .retix-block-header h4,
.retix-upload-block.error .retix-upload-block-header h4 {
    color: #dc3545;
}

/* Currency Symbol Styles */
.retix-price-input {
    position: relative;
}

.retix-currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.retix-price-input input {
    padding-left: 25px;
}

.retix-price-input input:focus + .retix-currency-symbol {
    color: #3e084c;
}

/* ============================================
   SALES TAB STYLES
   ============================================ */

.retix-sales-section {
    padding: 0;
}

.retix-section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.retix-section-header h2 {
    color: #3e084c;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.retix-section-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Sales Filters */
.retix-sales-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.retix-filter-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.retix-filter-row select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.retix-filter-row select:focus {
    outline: none;
    border-color: #3e084c;
    box-shadow: 0 0 0 2px rgba(62, 8, 76, 0.1);
}

/* Sales Content */
.retix-sales-content {
    min-height: 400px;
}

.retix-sales-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.retix-sales-loading i {
    font-size: 24px;
    margin-right: 10px;
    color: #3e084c;
}

.retix-sales-empty {
    text-align: center;
    padding: 80px 20px;
}

.retix-empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.retix-empty-state h4 {
    color: #666;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.retix-empty-state p {
    color: #999;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Sales Groups */
.retix-sales-group {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.retix-sales-group-header {
    background: linear-gradient(135deg, #3e084c 0%, #5a1565 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.retix-sales-event-info h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.retix-sales-event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.9;
}

.retix-sales-event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.retix-sales-group-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.retix-sales-category {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    min-width: 80px;
    text-align: center;
}

.retix-sales-summary {
    text-align: right;
    font-size: 14px;
}

.retix-sales-count {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.retix-sales-revenue {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

/* Sales Items */
.retix-sales-items {
    padding: 0;
}

.retix-sale-item {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.retix-sale-item:last-child {
    border-bottom: none;
}

.retix-sale-item:hover {
    background-color: #fafafa;
}

.retix-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.retix-sale-info h4 {
    margin: 0 0 8px 0;
    color: #3e084c;
    font-size: 18px;
    font-weight: 600;
}

.retix-sale-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
}

.retix-sale-date {
    color: #666;
}

.retix-sale-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

.retix-sale-status.status-completed {
    background: #d4edda;
    color: #155724;
}

.retix-sale-status.status-processing {
    background: #fff3cd;
    color: #856404;
}

.retix-sale-status.status-pending {
    background: #cce7f0;
    color: #0c5460;
}

.retix-sale-status.status-cancelled,
.retix-sale-status.status-refunded {
    background: #f8d7da;
    color: #721c24;
}

.retix-ticket-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}

.retix-ticket-status.sent {
    background: #d4edda;
    color: #155724;
}

.retix-ticket-status.pending {
    background: #fff3cd;
    color: #856404;
}

.retix-sale-price {
    text-align: right;
}

.retix-price-amount {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #3e084c;
    margin-bottom: 4px;
}

.retix-price-quantity {
    display: block;
    font-size: 13px;
    color: #666;
}

/* Sale Details */
.retix-sale-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.retix-ticket-details h5,
.retix-buyer-details h5 {
    margin: 0 0 12px 0;
    color: #3e084c;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retix-ticket-info,
.retix-buyer-info {
    font-size: 14px;
    line-height: 1.6;
}

.retix-ticket-info span {
    display: block;
    margin-bottom: 6px;
    color: #666;
}

.retix-buyer-name {
    margin-bottom: 8px;
    font-size: 16px;
}

.retix-buyer-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #666;
}

.retix-buyer-contact i {
    width: 16px;
    color: #3e084c;
}

.retix-buyer-email {
    position: relative;
}

.retix-copy-email-btn {
    background: none;
    border: none;
    color: #3e084c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.retix-copy-email-btn:hover {
    background: rgba(62, 8, 76, 0.1);
    transform: scale(1.1);
}

.retix-copy-email-btn:active {
    transform: scale(0.95);
}

/* Sale Actions */
.retix-sale-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.retix-send-ticket-btn {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retix-send-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.retix-send-ticket-btn:active {
    transform: translateY(0);
}

.retix-ticket-sent-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

.retix-ticket-sent-info i {
    font-size: 16px;
}

/* Send Ticket Modal */
.retix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.retix-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.retix-modal-header {
    padding: 25px 25px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.retix-modal-header h3 {
    margin: 0;
    color: #3e084c;
    font-size: 20px;
    font-weight: 700;
}

.retix-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.retix-modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.retix-modal-body {
    padding: 0 25px 25px 25px;
}

.retix-send-ticket-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.retix-send-ticket-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.retix-send-ticket-info p:last-child {
    margin-bottom: 0;
}

.retix-send-confirmation {
    margin-top: 20px;
}

.retix-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.retix-warning i {
    margin-top: 2px;
    flex-shrink: 0;
}

.retix-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.retix-checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.retix-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.retix-modal-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retix-modal-cancel:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .retix-sales-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .retix-sales-group-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .retix-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .retix-sale-price {
        text-align: left;
        align-self: flex-start;
    }
    
    .retix-sale-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .retix-sale-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .retix-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .retix-filter-row select {
        min-width: auto;
    }
    
    .retix-modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .retix-modal-footer {
        flex-direction: column-reverse;
    }
    
    .retix-modal-footer .retix-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LISTINGS ACCORDION FIXES
   ============================================ */

.retix-event-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retix-event-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.retix-bulk-edit-btn {
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.retix-price-amount {
    cursor: pointer;
    transition: color 0.2s ease;
}

.retix-price-amount:hover {
    color: #3e084c;
    text-decoration: underline;
}

.retix-action-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.retix-action-btn:hover {
    transform: scale(1.1);
}

.retix-event-toggle {
    transition: transform 0.3s ease;
}

.retix-event-listings {
    overflow: hidden;
}

/* ============================================
   MODERN LISTINGS LAYOUT (LIKE SCREENSHOT)
   ============================================ */

.retix-event-group {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.retix-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #3e084c 0%, #5a1565 100%);
    color: white;
}

.retix-event-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.retix-event-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.retix-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retix-event-details h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.retix-event-date {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.retix-sales-summary {
    font-size: 18px;
    font-weight: 600;
    margin-right: 20px;
}

.retix-sales-summary strong {
    color: #ffd700;
}

.retix-event-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Category Sections */
.retix-category-section {
    border-bottom: 1px solid #f0f0f0;
}

.retix-category-section:last-child {
    border-bottom: none;
}

.retix-category-header {
    padding: 20px 25px 15px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.retix-category-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #3e084c;
}

.retix-category-listings {
    padding: 0;
}

/* Modern Listing Cards */
.retix-listing-card {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.retix-listing-card:hover {
    background-color: #fafafa;
}

.retix-listing-card:last-child {
    border-bottom: none;
}

.retix-listing-main {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 2fr;
    gap: 20px;
    align-items: center;
    padding: 20px 25px;
}

.retix-listing-category h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.retix-listing-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.retix-listing-seats {
    font-size: 14px;
    color: #666;
}

.retix-listing-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.retix-listing-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.retix-detail-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.retix-listing-status {
    text-align: center;
}

.retix-sold-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.retix-listing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.retix-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #666;
}

.retix-action-btn:hover {
    background: #f8f9fa;
    border-color: #3e084c;
    color: #3e084c;
}

.retix-view-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.retix-edit-btn:hover {
    background: #fff3e0;
    border-color: #f57c00;
    color: #f57c00;
}

.retix-delete-btn:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Toggle Switch */
.retix-listing-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.retix-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.retix-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.retix-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.retix-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .retix-slider {
    background-color: #3e084c;
}

input:checked + .retix-slider:before {
    transform: translateX(24px);
}

.retix-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .retix-listing-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .retix-listing-actions {
        justify-content: center;
    }
    
    .retix-event-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .retix-event-info {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .retix-event-image {
        width: 60px;
        height: 60px;
    }
    
    .retix-event-details h2 {
        font-size: 20px;
    }
    
    .retix-listing-category h4 {
        font-size: 16px;
    }
    
    .retix-action-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
} 