/* Ticket Page Styles */

.ticket-page {
    padding: 0 !important;
}

.ticket-page .loading-container,
.ticket-page .no-ticket {
    padding: 60px 20px;
}

.ticket-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ticket Header */
.ticket-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -20px -20px 0 -20px;
}

.ticket-header h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-status-badge.status-accepted {
    background: #28a745;
    color: white;
}

.ticket-status-badge.status-checkedin {
    background: #007bff;
    color: white;
}

.ticket-status-badge.status-waitlist {
    background: #ffc107;
    color: #333;
}

.ticket-status-badge.status-waitpartner {
    background: #ff9800;
    color: white;
}

.ticket-status-badge.status-created {
    background: #6c757d;
    color: white;
}

/* Event Information */
.ticket-event-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
}

.ticket-event-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 15px 0;
}

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

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
}

.detail-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* QR Code Section */
.qr-code-section {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 0 20px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.qr-code-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-code-placeholder {
    width: 280px;
    height: 280px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.qr-code-placeholder i {
    font-size: 64px;
    margin-bottom: 15px;
}

.qr-code-placeholder p {
    font-size: 14px;
    margin: 0;
}

.qr-instruction {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-instruction i {
    color: var(--primary-color);
}

/* Ticket Details Card */
.ticket-details-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 0 20px;
}

.ticket-details-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ticket-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ticket-detail-row:last-child {
    border-bottom: none;
}

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

.detail-value {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
    text-align: right;
}

.detail-value.access-token {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User Information */
.ticket-user-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.user-info-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Action Buttons */
.ticket-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.ticket-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Important Note */
.ticket-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 0 20px 20px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ticket-note i {
    color: #856404;
    font-size: 20px;
    margin-top: 2px;
}

.ticket-note p {
    color: #856404;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* No Ticket State */
.no-ticket {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-ticket i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-ticket h3 {
    font-size: 22px;
    font-weight: 500;
    color: #666;
    margin: 20px 0 15px 0;
}

.no-ticket p {
    font-size: 15px;
    color: #999;
    line-height: 1.6;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ticket-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .ticket-status-badge {
        align-self: flex-end;
    }
    
    .qr-code-image,
    .qr-code-placeholder {
        max-width: 240px;
        width: 240px;
        height: 240px;
    }
    
    .ticket-actions {
        flex-direction: column;
    }
    
    .ticket-actions .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .ticket-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .qr-code-image {
        max-width: 320px;
    }
}
