/**
 * SEVO Modal Unified - Modais Padronizados e Responsivos
 * Combina estrutura base com ajustes tipográficos e responsivos
 * Substitui modal-standards.css e modal-responsive.css
 */

/* === ESTRUTURA BASE PARA MODAIS CENTRALIZADOS === */
.sevo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sevo-modal[style*="display: block"],
.sevo-modal.show {
    opacity: 1;
    visibility: visible;
}

/* Overlay de fundo */
.sevo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Container do modal */
.sevo-modal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 95%;
    width: 600px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease;
}

/* === ESTILOS ESPECÍFICOS PARA MODAL DE EVENTO === */

/* Container principal do modal de evento */
.sevo-modal-evento-view {
    background: white;
    border: 2px solid #2196f3;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.2);
    max-width: 85%;
    width: 80vw;
    max-height: 80vh;
    height: 75vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Header do modal de evento */
.sevo-modal-header-evento {
    padding: 3px 8px;
    border-bottom: 2px solid #1565c0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    height: 10%;
    flex: 0 0 10%;
    min-height: 50px;
    max-height: 60px;
    overflow: hidden;
}

.sevo-modal-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sevo-modal-header-evento .header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.sevo-modal-title {
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sevo-modal-status-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sevo-modal-status-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.sevo-status-badge, .sevo-user-status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    color: #1976d2;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-ativo {
    background: rgba(76, 175, 80, 0.9) !important;
    color: white !important;
    border-color: #4caf50 !important;
}

.status-inativo {
    background: rgba(244, 67, 54, 0.9) !important;
    color: white !important;
    border-color: #f44336 !important;
}

.status-aceita {
    background: rgba(33, 150, 243, 0.9) !important;
    color: white !important;
    border-color: #2196f3 !important;
}

.status-solicitada {
    background: rgba(255, 193, 7, 0.9) !important;
    color: #333 !important;
    border-color: #ffc107 !important;
}

.status-rejeitada {
    background: rgba(158, 158, 158, 0.9) !important;
    color: white !important;
    border-color: #9e9e9e !important;
}

.status-cancelada {
    background: rgba(255, 87, 34, 0.9) !important;
    color: white !important;
    border-color: #ff5722 !important;
}

/* Body do modal de evento */
.sevo-modal-body-evento {
    flex: 1;
    padding: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #e3f2fd 100%);
    margin: 0;
    height: 100%;
}

/* Container superior com dois lados */
.sevo-modal-top-container {
    display: flex;
    flex-direction: row;
    gap: 0;
    height: 40%;
    flex: 0 0 40%;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
    margin: 0;
    overflow: hidden;
}

/* Dados do evento (lado esquerdo) */
.sevo-modal-evento-dados {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    height: 100%;
    overflow-y: auto;
    width: 50%;
    flex: 0 0 50%;
    border-right: 1px solid #e0e0e0;
}

.sevo-modal-evento-dados h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 600;
}

.sevo-info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sevo-info-item strong {
    color: #495057;
    font-weight: 500;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sevo-info-item span {
    color: #6c757d;
    flex: 1;
}

/* Lista de inscrições (lado direito) */
.sevo-modal-inscricoes-lista {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    max-height: 300px;
    overflow-y: auto;
    width: 50%;
    flex: 0 0 50%;
}

.sevo-modal-inscricoes-lista h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 600;
}

.sevo-inscricoes-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    padding: 12px;
}

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

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

.sevo-inscricao-nome {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.sevo-inscricao-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status das inscrições */
.status-aceita {
    background: #d4edda;
    color: #155724;
}

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

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

.status-cancelada {
    background: #e2e3e5;
    color: #383d41;
}

/* Container inferior com descrição */
.sevo-modal-bottom-container {
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid #2196f3;
    border-radius: 8px;
    margin: 0;
    padding: 10px;
    border-left: 4px solid #ffc107;
    height: 50%;
    flex: 0 0 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.sevo-modal-description-content {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    padding: 12px;
    margin: 0;
    height: 100%;
}

.sevo-description-section,
.sevo-regras-section {
    margin-bottom: 15px;
}

.sevo-description-section:last-child,
.sevo-regras-section:last-child {
    margin-bottom: 0;
}

.sevo-description-section h5,
.sevo-regras-section h5 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 0.81rem;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

/* Scrollbar customizada */
.sevo-inscricoes-container::-webkit-scrollbar,
.sevo-modal-description-content::-webkit-scrollbar {
    width: 6px;
}

.sevo-inscricoes-container::-webkit-scrollbar-track,
.sevo-modal-description-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.sevo-inscricoes-container::-webkit-scrollbar-thumb,
.sevo-modal-description-content::-webkit-scrollbar-thumb {
    background: #c1c8cd;
    border-radius: 3px;
}

.sevo-inscricoes-container::-webkit-scrollbar-thumb:hover,
.sevo-modal-description-content::-webkit-scrollbar-thumb:hover {
    background: #a8b2ba;
}

/* Status badges */
.sevo-status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ativo {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-inativo {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.sevo-user-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer do modal - removido */
.sevo-modal-footer {
    display: none;
}

/* === RESPONSIVIDADE === */

/* Tablets */
@media (max-width: 768px) {
    .sevo-modal-evento-view {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .sevo-modal-top-container {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: auto;
        padding: 12px;
    }
    
    .sevo-modal-header-evento {
        padding: 10px 12px;
        gap: 8px;
        min-height: 70px;
    }
    
    .sevo-modal-body-evento {
        padding: 12px;
        gap: 12px;
    }
    
    .sevo-modal-image {
        width: 60px;
        height: 60px;
    }
    
    .sevo-modal-title {
        font-size: 0.94rem;
    }
    
    .sevo-status-badge, .sevo-user-status {
        font-size: 8px;
        padding: 3px 8px;
    }
    
    .sevo-modal-evento-dados,
    .sevo-modal-inscricoes-lista {
        padding: 10px;
    }
    
    .sevo-modal-bottom-container {
        padding: 10px;
    }
    
    .sevo-inscricoes-container {
        max-height: 150px;
    }
    
    .sevo-modal-description-content {
        max-height: 150px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .sevo-modal-evento-view {
        width: 98%;
        max-width: 98%;
        max-height: 90vh;
        margin: 5px;
    }
    
    .sevo-modal-header-evento {
        padding: 8px 10px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
        min-height: 60px;
    }
    
    .sevo-modal-body-evento {
        padding: 10px;
        gap: 8px;
    }
    
    .sevo-modal-evento-dados,
    .sevo-modal-inscricoes-lista,
    .sevo-modal-bottom-container {
        padding: 8px;
    }
    
    .sevo-modal-title {
        font-size: 12px;
    }
    
    .sevo-modal-image {
        width: 50px;
        height: 50px;
    }
    
    .sevo-info-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .sevo-info-item strong {
        min-width: auto;
    }
    
    .sevo-inscricoes-container {
        max-height: 120px;
    }
    
    .sevo-modal-description-content {
        max-height: 120px;
        padding: 5px;
    }
    
    .sevo-modal-status-bar {
        justify-content: center;
    }
    
    .sevo-status-badge,
    .sevo-user-status {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .sevo-modal-top-container {
        gap: 8px;
        padding: 8px;
    }
}

/* Telas muito pequenas */
@media (max-width: 320px) {
    .sevo-modal-evento-view {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .sevo-modal-header-evento {
        border-radius: 0;
    }
    
    .sevo-modal-footer {
        border-radius: 0;
    }
}

.sevo-modal[style*="display: block"] .sevo-modal-container,
.sevo-modal.show .sevo-modal-container {
    transform: scale(1) translateY(0);
}

/* Header do modal */
.sevo-modal-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Botão de fechar integrado ao cabeçalho do modal de evento */
.sevo-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #2196f3;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #2196f3;
    transition: all 0.2s ease;
    z-index: 10;
}

.sevo-modal-close-btn:hover {
    background: #2196f3;
    color: white;
    transform: scale(1.1);
}

/* Botão de fechar genérico (para outros modais) */
.sevo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sevo-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Corpo do modal */
.sevo-modal-body {
    padding: 20px;
}

/* Footer do modal */
.sevo-modal-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Loading state */
.sevo-modal-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

.sevo-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Backdrop para modais de formulário */
.sevo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sevo-modal-backdrop[style*="display: block"],
.sevo-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* === LAYOUT DO MODAL DE VISUALIZAÇÃO DE EVENTOS === */

/* Container superior com duas colunas lado a lado */
.sevo-modal-top-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Coluna esquerda - Dados do evento */
.sevo-modal-left-column {
    flex: 1;
    min-width: 0;
}

/* Coluna direita - Lista de inscrições */
.sevo-modal-right-column {
    flex: 1;
    min-width: 0;
}

/* Container das inscrições com scroll */
.sevo-inscricoes-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background-color: #fafafa;
}

/* Item individual de inscrição */
.sevo-inscricao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

/* Nome do inscrito */
.sevo-inscricao-nome {
    flex: 1;
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

/* Status da inscrição */
.sevo-inscricao-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Cores dos status */
.status-aceita {
    background-color: #d4edda;
    color: #155724;
}

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

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

.status-cancelada {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-indefinido {
    background-color: #f1f3f4;
    color: #5f6368;
}

/* Container inferior - Descrição e regras */
.sevo-modal-bottom-container {
    margin-top: 20px;
}

/* Área scrollável para descrição e regras */
.sevo-modal-description-scrollable {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Seções dentro da área scrollável */
.sevo-description-section,
.sevo-regras-section {
    margin-bottom: 20px;
}

.sevo-description-section:last-child,
.sevo-regras-section:last-child {
    margin-bottom: 0;
}

.sevo-description-section h5,
.sevo-regras-section h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Itens de informação */
.sevo-info-item {
    margin-bottom: 12px;
    line-height: 1.5;
}

.sevo-info-item strong {
    color: #2c3e50;
    margin-right: 8px;
}

.sevo-info-item i {
    margin-right: 5px;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .sevo-modal-top-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .sevo-inscricoes-container {
        max-height: 200px;
    }
    
    .sevo-modal-description-scrollable {
        max-height: 250px;
    }
    
    .sevo-modal-container {
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .sevo-inscricao-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sevo-inscricao-nome {
        margin-right: 0;
    }
    
    .sevo-inscricoes-container {
        max-height: 150px;
    }
    
    .sevo-modal-description-scrollable {
        max-height: 200px;
    }
}

/* === TIPOGRAFIA E CONTEÚDO === */

/* Títulos dos modais */
.sevo-modal-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
}

/* Descrições dos modais */
.sevo-modal-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    max-height: 150px !important;
    color: #4a5568 !important;
    margin-bottom: 12px !important;
    /* Melhor quebra de texto */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    /* Scrollbar customizada */
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f1f5f9 !important;
}

.sevo-modal-description::-webkit-scrollbar {
    width: 6px !important;
}

.sevo-modal-description::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 3px !important;
}

.sevo-modal-description::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

.sevo-modal-description::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Títulos das seções */
.sevo-modal-section-title {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Seções do modal */
.sevo-modal-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* Listas dos modais */
.sevo-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sevo-modal-list li {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 8px 0 !important;
    color: #4a5568 !important;
}

/* Ícones das listas */
.sevo-modal-list i {
    font-size: 0.9rem !important;
    margin-right: 8px !important;
    color: #3b82f6 !important;
}

/* Imagens do modal */
.sevo-modal-image {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === RESPONSIVIDADE PARA TABLETS === */
@media (max-width: 1024px) {
    .sevo-modal-title {
        font-size: 1.5rem !important;
    }
    
    .sevo-modal-description {
        font-size: 0.9rem !important;
        max-height: 120px !important;
    }
    
    .sevo-modal-section-title {
        font-size: 1rem !important;
    }
    
    .sevo-modal-list li {
        font-size: 0.85rem !important;
    }
}

/* === RESPONSIVIDADE PARA MOBILE === */
@media (max-width: 768px) {
    .sevo-modal-container {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .sevo-modal-header {
        padding: 15px;
    }
    
    .sevo-modal-body {
        padding: 15px 12px !important;
    }
    
    .sevo-modal-footer {
        padding: 10px 15px 15px;
        flex-direction: column;
    }
    
    .sevo-modal-footer button {
        width: 100%;
    }
    
    .sevo-modal-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    .sevo-modal-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        max-height: 100px !important;
        margin-bottom: 20px !important;
    }
    
    .sevo-modal-section-title {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }
    
    .sevo-modal-list li {
        font-size: 0.8rem !important;
        padding: 6px 0 !important;
    }
    
    .sevo-modal-list i {
        font-size: 0.8rem !important;
        margin-right: 8px !important;
    }
    
    .sevo-modal-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* === RESPONSIVIDADE PARA TELAS PEQUENAS === */
@media (max-width: 480px) {
    .sevo-modal-container {
        width: 98%;
        margin: 5px;
    }
    
    .sevo-modal-header,
    .sevo-modal-body {
        padding: 12px;
    }
    
    .sevo-modal-footer {
        padding: 8px 12px 12px;
    }
    
    .sevo-modal-title {
        font-size: 1.1rem !important;
    }
    
    .sevo-modal-description {
        font-size: 0.8rem !important;
        max-height: 80px !important;
    }
    
    .sevo-modal-section-title {
        font-size: 0.9rem !important;
    }
    
    .sevo-modal-list li {
        font-size: 0.75rem !important;
    }
}

/* === AJUSTES ESPECÍFICOS PARA FORMULÁRIOS === */
/* Modal de formulário de eventos com mesmo tamanho do modal view */
#sevo-evento-form-modal-container .sevo-modal-container {
    max-width: 98%;
    width: 95vw;
    max-height: 95vh;
    height: 90vh;
    border: 2px solid #2196f3;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#sevo-evento-form-modal-container .sevo-modal-header {
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-bottom: 2px solid #1565c0;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
    flex: 0 0 auto;
}

#sevo-evento-form-modal-container .sevo-modal-title {
    font-size: 1.2rem !important;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

#sevo-evento-form-modal-container .sevo-modal-close {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

#sevo-evento-form-modal-container .sevo-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#sevo-evento-form-modal-container .sevo-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(90vh - 120px); /* Altura máxima considerando header e footer */
}

/* Estilo específico para textarea no modal de evento */
#sevo-evento-form-modal-container textarea {
    resize: vertical !important;
    min-height: 120px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

/* Scrollbar personalizada para webkit browsers */
#sevo-evento-form-modal-container textarea::-webkit-scrollbar {
    width: 8px;
}

#sevo-evento-form-modal-container textarea::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#sevo-evento-form-modal-container textarea::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#sevo-evento-form-modal-container textarea::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

#sevo-evento-form-modal-container .sevo-modal-footer-form {
    flex: 0 0 auto;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    #sevo-evento-form-modal-container .sevo-modal-container {
        width: 98%;
        height: 95vh;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-title {
        font-size: 1.1rem !important;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-header {
        padding: 12px 15px;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-body {
        padding: 15px;
        max-height: calc(95vh - 100px); /* Ajuste para mobile */
    }
    
    #sevo-evento-form-modal-container textarea {
        min-height: 100px;
        max-height: 150px;
    }
}

/* Layout de duas colunas para o formulário de evento */
.sevo-form-two-columns {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

.sevo-form-column-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sevo-form-column-right {
    display: flex;
    flex-direction: column;
}



/* Estilos para upload moderno de imagem */
.sevo-image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.sevo-image-upload-container.sevo-horizontal-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.sevo-horizontal-layout .sevo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    max-width: 200px;
}

.sevo-image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sevo-image-preview:hover {
    border-color: #007cba;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.15);
}

.sevo-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.sevo-image-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 10px;
    user-select: none;
}

.sevo-image-placeholder i.dashicons {
    font-size: 24px;
    color: #adb5bd;
    margin-bottom: 8px;
    display: block;
}

.sevo-image-placeholder p {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #495057;
}

.sevo-image-placeholder small {
    font-size: 10px;
    color: #6c757d;
    opacity: 0.8;
}

.sevo-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.sevo-remove-image:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.sevo-upload-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sevo-upload-actions .sevo-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.sevo-upload-actions .sevo-btn i.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sevo-upload-actions .sevo-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.sevo-upload-actions .sevo-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.sevo-upload-actions .sevo-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.sevo-upload-actions .sevo-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Estados de loading */
.sevo-image-preview.loading {
    border-color: #007cba;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.sevo-image-preview.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e6f3ff;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .sevo-form-two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sevo-image-preview {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #sevo-evento-form-modal-container .sevo-modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-header {
        border-radius: 0;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-title {
        font-size: 1rem !important;
    }
    
    #sevo-evento-form-modal-container .sevo-modal-body {
        padding: 10px;
        max-height: calc(100vh - 120px); /* Ajuste para tela cheia */
    }
    
    #sevo-evento-form-modal-container textarea {
        min-height: 80px;
        max-height: 120px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .sevo-image-preview {
        width: 200px;
        height: 200px;
    }
}

/* === CLASSES UTILITÁRIAS === */
.hidden {
    display: none;
}

/* Footer específico para formulários */
.sevo-modal-footer-form {
    padding: 10px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sevo-modal-footer-form {
        flex-direction: column;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .sevo-modal-footer-form button {
        width: 100%;
        margin: 2px 0;
    }
}

/* === RESPONSIVIDADE PARA MODAL DE EVENTO === */
@media (max-width: 1200px) {
    .sevo-modal-evento-view {
        width: 90vw;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .sevo-modal-evento-view {
        width: 95vw;
        height: 85vh;
        max-width: 95%;
    }
    
    .sevo-modal-top-container {
        flex-direction: column;
        height: 50%;
    }
    
    .sevo-modal-evento-dados,
    .sevo-modal-inscricoes-lista {
        width: 100%;
        flex: 1;
    }
    
    .sevo-modal-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sevo-modal-evento-view {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .sevo-modal-header-evento {
        border-radius: 0;
        padding: 8px;
    }
    
    .sevo-modal-title {
        font-size: 0.8rem;
    }
    
    .sevo-status-badge, .sevo-user-status {
        font-size: 8px;
        padding: 2px 6px;
    }
}