/* Minimal reset and styles for Jeisys Eventos Elements */
body .je-btn,
body .je-registration-wrapper .je-btn,
body .je-modal-overlay .je-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}
body .je-btn:hover,
body .je-registration-wrapper .je-btn:hover,
body .je-modal-overlay .je-btn:hover { background: #005177; color: #fff; box-shadow: 0 6px 15px rgba(0, 115, 170, 0.3); transform: translateY(-1px); }
body .je-btn:disabled,
body .je-registration-wrapper .je-btn:disabled,
body .je-modal-overlay .je-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

/* Modals Modernizados */
.je-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.je-modal-glass {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.je-modal-header {
    background: #fafafa;
    padding: 25px 30px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}
.je-modal-header h2 { margin: 0; font-size: 22px; color: #111; letter-spacing:-0.5px;}
.je-stepper { font-size: 12px; color: #888; margin-top: 5px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;}
.je-modal-close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height:1;
    transition: 0.2s;
}
.je-modal-close:hover { color: #111; }

.je-registration-form { padding: 30px;}
.je-step h3 { margin: 0 0 5px 0; font-size: 18px; color: #222;}
.je-step-desc { font-size: 14px; color: #666; margin-bottom: 25px; line-height:1.5;}

.je-form-group-row { display: flex; gap: 15px; margin-bottom: 15px; }

/* Radio Cards Gigantes */
.je-radio-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.je-radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.je-radio-card input {
    position: absolute; opacity: 0; width:0; height:0;
}
.je-rc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
    text-align: center;
    color: #555;
    font-weight: 600;
}
.je-rc-content i { font-size: 32px; font-style:normal; margin-bottom: 10px; display:block;}
.je-radio-card input:checked + .je-rc-content {
    border-color: #0073aa;
    background: #f0f8fb;
    color: #0073aa;
}
.je-rc-small .je-rc-content { padding: 15px; font-size: 14px;}
.je-rc-small .je-rc-content i { display: none; }

/* Scrollable Vertical Socio List */
.je-socios-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 12px;
}
.je-socios-list::-webkit-scrollbar { width: 6px; }
.je-socios-list::-webkit-scrollbar-track { background: transparent; }
.je-socios-list::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 10px; }
.je-socios-list::-webkit-scrollbar-thumb:hover { background: #aaa; }

.je-socio-card { flex: none; width: 100%; box-sizing: border-box; cursor: pointer; position: relative; }
.je-socio-card input { position: absolute; opacity: 0; width:0; height:0; }
.je-socio-card input:checked + .je-socio-content {
    background: #f4fafe;
    border-color: #0073aa;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}
.je-socio-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    text-align: left;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
}
.je-socio-card:hover .je-socio-content {
    border-color: #d0d0d0;
}
.je-socio-avatar {
    width: 32px; height: 32px; min-width: 32px;
    border-radius: 50%;
    background: #e1e8ed;
    color: #555;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold;
    margin-right: 12px;
}
.je-socio-card input:checked + .je-socio-content .je-socio-avatar {
    background: #0073aa;
    color: #fff;
}
.je-socio-info { display: flex; flex-direction: column; flex: 1; }
.je-socio-info strong { color: #111; font-size: 13px; margin-bottom: 2px; }
.je-socio-info small { color: #777; font-size: 11px; font-weight: 500; }
.je-socio-check { 
    width: 24px; height: 24px; min-width: 24px;
    border-radius: 50%; 
    border: 2px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: 0.2s;
}
.je-socio-card input:checked + .je-socio-content .je-socio-check {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
}
.je-socio-check svg { width: 14px; height: 14px; }

/* Floating Labels */
.je-form-fields-container { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px;}
.je-floating-label {
    position: relative;
    margin-bottom: 0;
}
.je-floating-label input, .je-form-group input, .je-form-group select {
    width: 100%;
    height: 58px !important; /* Força que seja um bloco alto ignorando o seu tema WP */
    padding: 26px 15px 8px !important; /* Espaço gigante no topo para o texto descer */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border 0.3s;
    box-sizing: border-box;
    line-height: 1.2 !important;
}
.je-floating-label input:disabled, .je-floating-label input[readonly] { background: #f9f9f9; cursor: not-allowed; color:#333; font-weight: 500;}
.je-floating-label input:focus { border-color: #0073aa; outline: none; }
.je-floating-label label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 15px;
    pointer-events: none;
    transition: 0.2s ease all;
}
.je-floating-label input:focus ~ label,
.je-floating-label input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none; /* Remove a centralização ao flutuar */
    font-size: 11px;
    color: #0073aa;
    font-weight: 600;
}
.je-form-group { margin-bottom: 20px; }
.je-form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size:13px; color:#444;}

.je-btn-modern { background: #1a1a1a; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 30px; padding: 12px 25px; font-weight: 600;}
.je-btn-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15);}
.je-btn-block { width: 100%; text-align: center; padding: 14px; font-weight: 600; font-size: 16px;}
.je-msg-box { margin-top: 15px; font-weight: bold; }

/* Dashboard Attachments Premium Cards */
.je-attachments-list { display: flex; flex-direction: column; gap: 12px; }
.je-attachment-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fdfdfd;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
.je-attachment-item:hover {
    background: #ffffff;
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.08);
    transform: translateY(-2px);
}
.je-att-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,115,170,0.06);
    padding: 10px;
    border-radius: 8px;
    margin-right: 15px;
}
.je-att-info { flex: 1; display: flex; flex-direction: column; }
.je-att-info strong { color: #111; font-size: 15px; line-height: 1.3; margin-bottom: 2px;}
.je-att-info span { color: #777; font-size: 13px; line-height: 1.3; }
.je-att-download {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: 0.3s;
}
.je-attachment-item:hover .je-att-download { opacity: 1; transform: scale(1.1); }
.je-attachment-item:hover .je-att-download svg { fill: #0073aa; }

/* Dashboard Login Premium */
.je-login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.je-login-card {
    background: #fff;
    padding: 0;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}
.je-login-header {
    background: #fafafa;
    padding: 35px 40px 25px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.je-login-header h2 { margin: 15px 0 5px; font-size: 24px; color: #111; letter-spacing: -0.5px;}
.je-login-header p { font-size: 14px; color: #777; margin: 0; line-height: 1.5;}
.je-login-icon { display:flex; justify-content:center; align-items:center; opacity: 0.8;}
.je-login-body { padding: 40px; }

/* Dashboard App-Like UI */
body:has(.je-app-container) {
    /* Esconde scroll do body quando o app ta open */
    overflow: hidden;
}

.je-app-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #f4f6f8;
    z-index: 999999;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* Sidebar */
.je-app-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e1e4e8;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.03);
}

.je-sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid #f0f0f0;
}
.je-sidebar-header h3 { margin: 0; font-size: 22px; color: #1a1a1a; letter-spacing: -0.5px; }
.je-sb-subtitle { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.je-sidebar-user {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.je-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #00b4db);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold;
}
.je-user-details { display: flex; flex-direction: column; }
.je-user-details strong { font-size: 14px; color: #222; }
.je-user-details span { font-size: 12px; color: #666; width:130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.je-sidebar-nav {
    flex-grow: 1;
    padding: 20px 0;
}
.je-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 15px;
}
.je-sidebar-nav a:hover { background: #f8fafc; color: #0073aa; }
.je-sidebar-nav a.active {
    background: #eef5f9;
    color: #0073aa;
    border-right: 3px solid #0073aa;
}
.je-sidebar-footer { padding: 25px; font-size: 11px; color: #aaa; text-align: center; }

/* Main Area */
.je-app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.je-app-topbar {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(244, 246, 248, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}
.je-topbar-left { display: flex; align-items: center; gap: 20px; }
.je-topbar-title { margin: 0; font-size: 24px; font-weight: 700; color: #111; letter-spacing: -0.5px;}
.je-btn-back { display: flex; align-items: center; gap: 5px; color: #555; text-decoration: none; font-weight: 500; font-size:14px; padding: 5px 10px; background: #fff; border: 1px solid #ddd; border-radius: 6px; transition: 0.2s;}
.je-btn-back:hover { background: #f0f0f0; }

.je-scroll-area {
    padding: 0 40px 40px;
    overflow-y: auto;
    flex: 1;
}

/* Event Grid */
.je-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.je-app-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.je-app-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.je-card-header { padding: 25px 25px 15px; position: relative;}
.je-card-header h3 { margin: 15px 0 0; font-size: 18px; color: #222; max-height:48px; overflow: hidden;}
.je-card-body { padding: 0 25px 25px; flex: 1; }
.je-card-prop { font-size: 13px; color: #666; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.je-card-prop.style-mod { color: #0073aa; font-weight: 500;}
.je-card-footer { padding: 20px 25px; border-top: 1px solid #f0f0f0; background:#fafbfc;}
.je-btn-play { display: block; text-align: center; background: #1a1a1a; color: #fff; text-decoration: none; padding: 12px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: 0.2s; }
.je-btn-play:hover { background: #0073aa; }
.je-btn-presencial { display: block; text-align: center; background: #eef5f9; color: #0073aa; padding: 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }

/* Empty State */
.je-empty-state { text-align: center; padding: 60px 20px; color: #777;}
.je-empty-state svg { margin-bottom: 20px; }
.je-empty-state h3 { color: #333; margin-bottom: 10px;}

/* Badges */
.je-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; letter-spacing: 0.5px;}
.je-bg-gray { background: #eee; color: #555; }
.je-bg-dark { background: #d0d4d9; color: #444; }
.je-bg-blue { background: #e0f2fe; color: #0284c7; }
.je-bg-red { background: #fee2e2; color: #dc2626; }
.je-pulse-dot {
    width: 6px; height: 6px; background: #ef4444; border-radius: 50%; margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Event Viewer (Inner) */
.je-event-viewer { display: flex; flex-direction:row; padding: 0 40px 40px; gap: 40px; height: calc(100vh - 100px); overflow: hidden; }
.je-viewer-left { flex: 2; display:flex; flex-direction: column; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); position:relative;}
.je-video-container { width: 100%; height: 100%; }
.je-video-player { width: 100%; height: 100%; background: #000; position: relative; }
.je-video-player iframe { width: 100%; height: 100%; border: none; }
.je-video-overlay { position: absolute; inset: 0; background: #111; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; z-index:2; transition: opacity 0.5s; }
.je-countdown { font-size: 48px; font-weight: 300; font-variant-numeric: tabular-nums; margin-top:20px; color: #00b4db;}

.je-viewer-right { flex: 1; overflow-y: auto; padding-right:10px; }
.je-info-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eee; }
.je-info-card h3 { margin-top:0; color:#111; font-size:20px;}
.je-info-card hr { border:0; border-top:1px solid #f0f0f0; margin: 20px 0;}
.je-event-desc { font-size: 15px; color:#555; line-height: 1.6; }
.je-event-desc p { margin-bottom: 15px; }

/* Custom Fullscreen Button Hovering Video */
.je-btn-custom-fs {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.je-btn-custom-fs:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }
.je-btn-custom-fs svg { fill: #fff; }

@media(max-width: 900px) {
    .je-app-container { flex-direction: column; }
    .je-app-sidebar { width: 100%; flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid #e1e4e8; z-index: 99; padding: 0 15px;}
    .je-sidebar-header { padding: 15px; }
    .je-sidebar-user { display: none; }
    .je-sidebar-nav { padding: 0; display:flex; gap:10px; justify-content: flex-end;}
    .je-sidebar-nav a { padding: 10px; font-size:13px; }
    .je-sidebar-footer { display: none; }
    
    .je-event-viewer { flex-direction: column; padding: 20px; overflow-y: auto; height: auto; }
    .je-scroll-area { padding: 20px; }
    .je-viewer-left { min-height: 250px; flex:none; height: 35vh;}
    .je-viewer-right { flex:none; height:auto; }
}
