/* Modern Style CSS - Atualizado para #e01e51 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e01546;
    --primary-light: #ff4081;
    --primary-dark: #c2185b;
    --secondary-color: #1f2937;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--surface-color);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.header-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:only-child {
    border-radius: var(--radius-md);
}

.dropdown-item:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item span {
    flex: 1;
}

/* Stats Section */
.stats-section {
    padding: 32px 24px;
    text-align: center;
}

.main-stat {
    margin-bottom: 32px;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.progress-container {
    background: var(--surface-color);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-numbers {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    height: 8px;
    background: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Search Section */
.search-section {
    padding: 0 24px 24px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0;
    gap: 0;
    max-width: 600px;
    flex: 1;
    transition: all 0.2s ease;
}

.search-container:hover {
    border-color: #ced4da;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 30, 81, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 20px;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 16px 16px 16px 52px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
    min-width: 200px;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 30, 81, 0.1);
}

.ticket-type-select-inline {
    padding: 16px 12px;
    border: none;
    border-left: 1px solid #e9ecef;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    outline: none;
    min-width: 100px;
    max-width: 120px;
}

.ticket-type-select-inline:focus {
    background: #f8f9fa;
    color: var(--text-primary);
}

.ticket-type-select-inline option {
    padding: 8px;
    font-weight: 500;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 0;
    transition: all 0.2s ease;
    display: none;
    border-left: 1px solid #e9ecef;
}

.search-clear:hover {
    background: var(--background-color);
    color: var(--text-secondary);
}

.search-clear.show {
    display: block;
}

/* Participants Section */
.participants-section {
    flex: 1;
    padding: 0 24px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.participants-count {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participant-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.participant-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.participant-item.checked-in {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.02);
}

.participant-item.checked-in::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--success-color);
    border-radius: 2px 0 0 2px;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.participant-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.participant-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.participant-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-checked-in {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-info {
    background: rgba(12, 84, 96, 0.1);
    color: #0c5460;
}

.status-warning {
    background: rgba(133, 100, 4, 0.1);
    color: #856404;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.participant-detail {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.participant-detail i {
    font-size: 14px;
    color: var(--text-light);
}

/* Botão de exclusão de ingresso */
.delete-ticket-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.delete-ticket-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.delete-ticket-btn:active {
    transform: scale(0.95);
}

.delete-ticket-btn i {
    font-size: 16px;
    color: inherit;
}

/* Loading State */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.loading-spinner {
    font-size: 32px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-state p, .empty-state p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

/* Estilos para o modal-body redesenhado */
.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.purchase-date-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-date-section label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
}

.date-info i {
    font-size: 18px;
    color: #007bff;
}

.status-section-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status-section-right label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

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

.status-badge.checked-in {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.main-content-container {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.status-section {
    flex: 0 0 auto;
    min-width: 140px;
}

.participant-info-minimal {
    flex: 1;
}

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

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

.info-item label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    min-width: 120px;
}

.info-item span {
    color: #6c757d;
    font-size: 13px;
    text-align: right;
    /*flex: 1;*/
}

.info-item .localizador {
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
    margin: 0 auto;
    position: relative;
}

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

/* Status Messages */
.status-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: statusFadeIn 0.3s ease-out;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes statusFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
}

.modal-header h2,
.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Scanner Modal */
.scanner-modal {
    max-width: 350px;
}

.scanner-modal .modal-content {
    width: 95%;
    max-width: 350px;
}

.scanner-container {
    position: relative;
    aspect-ratio: 1;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px;
}

@media (max-width: 480px) {
    .scanner-modal .modal-content {
        width: 100%;
        max-width: 320px;
    }
    
    .scanner-container {
        margin: 16px;
    }
}

.scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    position: relative;
    animation: scannerPulse 2s ease-in-out infinite;
}

@keyframes scannerPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.scanner-instruction {
    color: white;
    font-size: 14px;
    margin-top: 24px;
    text-align: center;
    font-weight: 500;
}

.scanner-controls {
    padding: 16px 24px;
    text-align: center;
}

/* Form Styles */
.ticket-form {
    padding: 24px;
}

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

.form-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 30, 81, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
    background-color: var(--surface-color);
    position: relative;
}

.form-group select:hover {
    border-color: var(--primary-light);
    background-color: #fafafa;
}

/* Estilos específicos para o seletor de tipo de ingresso - Design compacto */
.ticket-type-select,
#ticketType {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding-right: 36px;
}

.ticket-type-select:hover,
#ticketType:hover {
    border-color: var(--primary-color);
    background-color: rgba(224, 30, 81, 0.02);
}

.ticket-type-select:focus,
#ticketType:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(224, 30, 81, 0.1);
    outline: none;
    background-color: var(--surface-color);
}

/* Label específico para tipo de ingresso - estilo compacto */
.form-group label[for="ticketType"] {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label[for="ticketType"]::before {
    content: "🎫";
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.form-actions:has(> button:nth-child(2)) {
    justify-content: flex-end;
}

/* Modal Ticket Container */
.modal .ticket-container {
    background: #f8f9fa;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
    animation: none;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #f87171, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    border: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animação de pulso para btn-primary */
@keyframes primary-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4), 0 2px 10px rgba(25, 118, 210, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
    }
}

.btn-primary {
    animation: primary-pulse 3s ease-in-out infinite;
}

/* Botão de Confirmar Check-in - Azul */
#confirmCheckinBtn {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8) !important;
    color: white !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 2px 8px rgba(59, 130, 246, 0.15) !important;
}

#confirmCheckinBtn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

#confirmCheckinBtn i {
    margin-left: 4px;
    font-size: 1.1em;
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    color: white;
    border: 2px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(16, 185, 129, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857, #065f46);
    border-color: #059669;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animação de pulso para btn-success */
@keyframes success-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(16, 185, 129, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 2px 10px rgba(16, 185, 129, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3), 0 2px 8px rgba(16, 185, 129, 0.15);
    }
}

.btn-success {
    animation: success-pulse 3s ease-in-out infinite;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c) !important;
    color: white !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3), 0 2px 8px rgba(239, 68, 68, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4), 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

.btn-danger i {
    margin-left: 4px;
    font-size: 1.1em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Participant Details */

/* Minimal Detail Items */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

.detail-value {
    font-size: 12px;
    color: #111827;
    font-weight: 500;
    text-align: right;
    margin: 0;
    max-width: 60%;
    word-break: break-word;
}

/* Status Messages */
.status-message {
    padding: 12px 24px;
    margin: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.status-message.show {
    display: block;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-info {
    background: rgba(12, 84, 96, 0.1);
    color: #0c5460;
    border: 1px solid rgba(12, 84, 96, 0.2);
}

.status-warning {
    background: rgba(133, 100, 4, 0.1);
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.2);
}

/* Page Title */
.page-title {
    padding: 24px 24px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-title p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 80px;
    justify-content: center;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Second row with 33% width for each card */
.stats-cards-second-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.stats-cards-second-row .stat-card {
    flex: 1;
    width: 33.333%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 65px;
    justify-content: center;
    font-size: 0.9em;
}

.stats-cards-second-row .stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-cards-second-row .stat-card .stat-number {
    font-size: 1.4em;
    font-weight: 600;
}

.stats-cards-second-row .stat-card .stat-label {
    font-size: 0.8em;
    margin-top: 4px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    padding: 0 24px 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ticket-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.ticket-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.ticket-name-row h3 {
    margin: 0;
    flex: 1;
}

.edit-icon-simple {
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.edit-icon-simple:hover {
    color: #495057;
    opacity: 1;
    transform: scale(1.1);
}

.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filter-chip {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-chip:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-chip i {
    font-size: 16px;
}

/* Estilos para busca de participantes */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-result-email {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Estilos para paginação */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-current {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-size select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 120px;
}

.pagination-size select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(224, 30, 81, 0.1);
}

/* Responsividade para paginação */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .pagination-info,
    .pagination-buttons,
    .pagination-size {
        justify-content: center;
    }
    
    .pagination-current {
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .pagination-controls {
        padding: 16px;
    }
    
    .pagination-size select {
        min-width: 100px;
        font-size: 13px;
    }
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    color: var(--text-light);
    cursor: help;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.help-icon:hover {
    background: var(--primary-color);
    color: white;
}

.help-icon i {
    font-size: 10px;
}

.form-separator {
    border-bottom: 1px dashed #d1d5db;
    margin: 20px 0;
    width: 100%;
}

.search-loading {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-no-results {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .app-header {
        padding: 16px 20px;
    }
    
    .page-title {
        padding: 20px 20px 0;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 16px 20px;
    }
    
    .stat-card {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .filters-section {
        padding: 0 20px 20px;
    }
    
    .participants-section {
        padding: 0 20px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        flex: none;
    }
    
    .modal {
        padding: 16px;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Button View Ticket - Status based styling */
.btn-view-ticket {
    background: transparent;
    border: 2px solid;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.btn-view-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-view-ticket:hover::before {
    left: 100%;
}

.btn-view-ticket:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animação de pulso sutil */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4), 0 2px 10px rgba(25, 118, 210, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
    }
}

.btn-view-ticket.status-confirmado,
.btn-view-ticket.status-checkin,
.btn-view-ticket.status-noshow {
    animation: subtle-pulse 3s ease-in-out infinite;
}

/* Status Confirmado - Blue theme */
.btn-view-ticket.status-confirmado {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    color: #fff;
    border-color: #1976d2;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
}

.btn-view-ticket.status-confirmado:hover {
    background: linear-gradient(135deg, #0b62b9 0%, #0d47a1 50%, #01579b 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4), 0 4px 15px rgba(25, 118, 210, 0.25);
    border-color: #0b62b9;
}

/* Status Check-in - Blue theme (same as Confirmado) */
.btn-view-ticket.status-checkin {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    color: #fff;
    border-color: #1976d2;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
}

.btn-view-ticket.status-checkin:hover {
    background: linear-gradient(135deg, #0b62b9 0%, #0d47a1 50%, #01579b 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4), 0 4px 15px rgba(25, 118, 210, 0.25);
    border-color: #0b62b9;
}

/* Status No-show - Blue theme (same as Confirmado) */
.btn-view-ticket.status-noshow {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
    color: #fff;
    border-color: #1976d2;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3), 0 2px 8px rgba(25, 118, 210, 0.15);
}

.btn-view-ticket.status-noshow:hover {
    background: linear-gradient(135deg, #0b62b9 0%, #0d47a1 50%, #01579b 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4), 0 4px 15px rgba(25, 118, 210, 0.25);
    border-color: #0b62b9;
}

/* Admin Modal Styles */
.admin-modal {
    max-width: 550px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal .modal-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.admin-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin: 0 32px 32px;
    background: var(--background-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    font-size: 14px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(224, 30, 81, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--surface-color);
}

.tab-content {
    display: none;
    padding: 0 32px 32px;
}

.tab-content.active {
    display: block;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.admin-form input {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--surface-color);
    font-family: inherit;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(224, 30, 81, 0.1);
    transform: translateY(-1px);
}

.admin-form input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.admin-form .form-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.admin-form .form-actions .btn {
    flex: 1;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.admin-form .form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Status messages in admin modal */
.admin-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.admin-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Estilos para Modal Gerar Ingresso */
.photo-upload-section {
    margin-bottom: 24px;
    text-align: center;
}

.photo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-color);
    overflow: hidden;
}

.photo-preview:hover {
    border-color: var(--primary-color);
    background: rgba(224, 30, 81, 0.05);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px;
}

.photo-placeholder i {
    font-size: 24px;
    color: var(--text-light);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.info-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    flex-shrink: 0;
}

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

/* Scanner Status Display */
.scanner-status-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.scanner-status-display.scanning {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: pulse 2s infinite;
}

.scanner-status-display.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.scanner-status-display.error {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.status-icon {
    font-size: 24px;
    animation: rotate 2s linear infinite;
}

.scanner-status-display.success .status-icon {
    animation: none;
}

.scanner-status-display.error .status-icon {
    animation: shake 0.5s ease-in-out;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Scanner Status */
.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.show {
    opacity: 1;
}

.status-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.status-message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-message.warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

/* Scanner Help */
.scanner-help {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.scanner-help p {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.scanner-help ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 13px;
}

.scanner-help li {
    margin-bottom: 5px;
}

/* Scanner Controls */
.scanner-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.scanner-controls .btn {
    min-width: 120px;
}



/* Modal Large */
.modal .modal-content.modal-large {
    max-width: 600px;
    width: 90%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

/* Modal Header Actions */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-close,
.modal-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-action-btn {
    background: rgba(34, 197, 94, 0.2);
}

.modal-action-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

/* Ajustes para modal-body */
.modal .modal-content .modal-body {
    padding: 30;
    background: transparent;
    border-radius: 0;
    position: relative;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Modal Body */
.modal-body {
    padding: 0;
    background: #ffffff;
}

/* Ajustes para form-group no modal */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-of-type {
    margin-bottom: 24px;
}

/* Status badges for voucher */
.detail-item .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .status-badge.confirmed {
    background: #10b981;
    color: white;
}

.detail-item .status-badge.pending {
    background: #f59e0b;
    color: white;
}

.detail-item .status-badge.cancelled {
    background: #ef4444;
    color: white;
}



/* Estilos para exibição dos dados do ingresso */
.ticket-details-container {
    padding: 20px;
}

/* Estilos para as seções do modal de participantes */
.participant-section,
.buyer-section,
.ticket-info-section {
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.participant-section:last-child,
.buyer-section:last-child,
.ticket-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.participant-section h4,
.buyer-section h4,
.ticket-info-section h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 6px;
}

/* Estilos discretos para a seção do comprador quando há dados do participante */
.buyer-section-discrete {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    margin-bottom: 8px;
    opacity: 0.85;
    border-bottom: 1px solid #dee2e6 !important;
}

.buyer-section-discrete h4 {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.buyer-section-discrete .participant-info-minimal {
    opacity: 0.9;
}

.buyer-section-discrete .info-item label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.buyer-section-discrete .info-item span {
    color: #495057;
    font-size: 13px;
}

.main-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ticket-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.ticket-status i {
    margin-right: 10px;
    font-size: 20px;
}

.ticket-status.status-checked-in {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.ticket-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.participant-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

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

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

.info-row label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    min-width: 140px;
}

.info-row span {
    color: #212529;
    text-align: right;
}

/* Modal Small */
.modal .modal-content.modal-small {
    max-width: 400px;
    width: 90%;
    border-radius: var(--radius-lg);
}

/* Success Modal Styles */
#successModal .modal-content {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: successModalFadeIn 0.4s ease-out;
}

#successModal .modal-body {
    padding: 40px 30px 30px 30px;
}

.success-animation {
    margin-bottom: 20px;
}

#successTitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: var(--success-color);
}

#successMessage {
    font-size: 1rem;
}

/* Error Modal Styles */
#errorModal .modal-content {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: errorModalFadeIn 0.4s ease-out;
}

#errorModal .modal-body {
    padding: 40px 30px 30px 30px;
}

.error-animation {
    margin-bottom: 20px;
}

#errorTitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: var(--error-color);
}

#errorMessage {
    font-size: 1rem;
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

@keyframes successModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes errorModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-row .localizador {
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.check-in-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.check-in-actions .btn {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.check-in-actions .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.check-in-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.check-in-actions .btn-secondary {
    background: #6c757d;
    border: none;
}

.check-in-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.already-checked-in {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 10px;
}

.already-checked-in i {
    margin-right: 8px;
    font-size: 16px;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .ticket-details-container {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-row label {
        min-width: auto;
    }
    
    .info-row span {
        text-align: left;
    }
    
    .check-in-actions .btn {
        min-width: 100%;
    }
}