.qr-validator-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.validator-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: #007cba;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.scanner-container {
    text-align: center;
}

#qr-reader {
    margin: 20px auto;
    max-width: 400px;
}

.manual-validator {
    display: flex;
    gap: 10px;
    align-items: center;
}

#manual-code {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.validation-result {
    margin-top: 20px;
}

.validation-success {
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.validation-error {
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .qr-validator-container {
        margin: 10px;
        padding: 15px;
    }
    
    .manual-validator {
        flex-direction: column;
    }
    
    #manual-code {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Estilos para Minha Conta - Ingressos */
.woocommerce-my-tickets {
    margin: 20px 0;
}

.ticket-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-download-btn,
.ticket-show-qr {
    font-size: 12px !important;
    padding: 6px 12px !important;
    white-space: nowrap;
}

.ticket-status-used {
    color: #28a745;
    font-weight: bold;
}

.ticket-status-valid {
    color: #007cba;
    font-weight: bold;
}

/* Modal QR Code - Melhorado */
.qr-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qr-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.qr-modal-close:hover {
    color: #000;
}

#qr-display {
    margin: 20px 0;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-loading {
    color: #666;
    font-style: italic;
    padding: 20px;
}

.qr-error {
    color: #d32f2f;
    padding: 20px;
    background: #ffebee;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

.qr-info {
    text-align: left;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.qr-info p {
    margin: 8px 0;
}

.qr-info small {
    word-break: break-all;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    .qr-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .qr-modal-close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}

/* Estilos para página de confirmação */
.woocommerce-order-ticket-download {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.woocommerce-order-ticket-download h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.woocommerce-order-ticket-download .button {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.woocommerce-order-ticket-download .button:hover {
    background: #005a87;
}

/* Responsivo */
@media (max-width: 768px) {
    .ticket-action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .qr-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .woocommerce-orders-table td {
        display: block;
        text-align: left;
        border: none;
        padding: 8px 0;
    }
    
    .woocommerce-orders-table td:before {
        content: attr(data-title) ": ";
        font-weight: bold;
        display: inline-block;
        width: 100px;
    }
}

