/* Ticket Verifier Styles */
*{
    box-sizing: border-box;
}
.tbvs-ticket-verifier {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.verification-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.ticket-code-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.3s;
    max-width: 100%;
}

.ticket-code-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-success {
    background: #46b450;
    color: white;
}

.btn-success:hover {
    background: #3a9b3e;
    transform: translateY(-1px);
}

.verification-result {
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

.ticket-info {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.ticket-info.status-active {
    /*border-left: 6px solid #46b450;*/
}

.ticket-info.status-used {
/* border-left: 6px solid #ffb900;*/
}

.ticket-info.status-cancelled {
 /*border-left: 6px solid #dc3232;*/
}

.ticket-header {
padding: 20px 30px;
background: #f8f9fa;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
}

.ticket-header h3 {
margin: 0;
color: #333;
font-size: 24px;
}

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

.status-active .status-badge {
background: #46b450;
color: white;
}

.status-used .status-badge {
background: #ffb900;
color: white;
}

.status-cancelled .status-badge {
background: #dc3232;
color: white;
}

.ticket-details {
padding: 30px;
}

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

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

.detail-label {
font-weight: bold;
color: #666;
flex: 0 0 40%;
}

.detail-value {
color: #333;
flex: 1;
text-align: right;
}

.detail-value.ticket-code {
font-family: monospace;
font-size: 18px;
font-weight: bold;
color: #0073aa;
letter-spacing: 1px;
}

.confirmation-info {
margin-top: 20px;
padding-top: 20px;
border-top: 2px solid #eee;
background: #f8f9fa;
padding: 20px;
border-radius: 6px;
}

.admin-actions {
padding: 20px 30px;
background: #f8f9fa;
border-top: 1px solid #eee;
text-align: center;
}

.error-message {
background: #dc3232;
color: white;
padding: 15px 20px;
border-radius: 6px;
margin-top: 20px;
text-align: center;
}

.success-message {
background: #46b450;
color: white;
padding: 15px 20px;
border-radius: 6px;
margin-top: 20px;
text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .tbvs-ticket-verifier {
        padding: 10px;
    }
    
    .verification-form,
    .ticket-details {
        padding: 20px;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* Print styles */
@media print {
    .verification-form,
    .admin-actions {
        display: none;
    }
    
    .ticket-info {
        box-shadow: none;
        border: 2px solid #333;
    }
}
