/**
 * Lista Live AEE - Estilos
 * Version: 2.4.0
 */

/* ========================================
   TÍTULOS E TIPOGRAFIA
======================================== */
.main-title {
    font-family: montserrat, sans-serif !important;
    font-size: 28px !important;
    color: #425B81 !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

.section-title {
    font-size: 20px !important;
    color: #425B81 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #425B81 !important;
    font-weight: 400 !important;
}

/* ========================================
   CONTAINER PRINCIPAL DO CHECK-IN
======================================== */
.live-checkin-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: montserrat, Tahoma, Geneva, Verdana, sans-serif !important;
}

.checkin-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(450px, 550px)) !important;
    gap: 40px !important;
    margin-top: 20px !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .checkin-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   SEÇÕES DO FORMULÁRIO E PARTICIPANTES
======================================== */
.checkin-form-section,
.participants-section {
    background: #FDF5E7 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 2px 10px rgba(66, 91, 129, 0.1) !important;
    border: 1px solid #E8DECA !important;
}

/* ========================================
   FORMULÁRIO
======================================== */
.form-group {
    margin-bottom: 15px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    color: #71583F !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100% !important;
    padding: 12px !important;
    border: 2px solid #E8DECA !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    line-height: 1.2 !important;
    color: #4a4a4a !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 0 !important;
    border-color: #425B81 !important;
}

.form-group textarea {
    resize: vertical !important;
    min-height: 80px !important;
}

.form-group select {
    height: 48px !important;
}

.form-group input:disabled,
.form-group select:disabled {
    background: #F3F3F3 !important;
    color: #4a4a4a !important;
    cursor: not-allowed !important;
}

/* ========================================
   BOTÕES
======================================== */
.btn {
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.btn-primary {
    background: #425B81 !important;
    color: #FFFFFF !important;
    width: 100% !important;
}

.btn-primary:hover {
    background: #375560 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(66, 91, 129, 0.3) !important;
}

.btn-primary:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ========================================
   CONTROLES DO ADMIN
======================================== */
.admin-controls {
    margin-bottom: 20px !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.admin-controls.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.btn-export,
.btn-clear {
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #425B81 !important;
    color: #FDF5E7 !important;
}

.btn-export:hover,
.btn-clear:hover {
    background: #375560 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(66, 91, 129, 0.3) !important;
}

/* ========================================
   LISTA DE PARTICIPANTES
======================================== */
.participants-list {
    max-height: 500px !important;
    overflow-y: auto !important;
    margin-top: 15px !important;
}

.participant-card {
    background: #FFFFFF !important;
    padding: 15px !important;
    padding-right: 90px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    border-left: 4px solid #425B81 !important;
    box-shadow: 0 1px 3px rgba(66, 91, 129, 0.1) !important;
    animation: slideIn 0.3s ease !important;
    position: relative !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.participant-actions {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: none !important;
    flex-direction: row !important;
    gap: 5px !important;
}

.admin-user .participant-card:hover .participant-actions {
    display: flex !important;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

.btn-edit {
    background: #425B81 !important;
    color: #FDF5E7 !important;
}

.btn-edit:hover {
    background: #375560 !important;
    transform: scale(1.05) !important;
}

.btn-delete {
    background: #8B7355 !important;
    color: #FDF5E7 !important;
}

.btn-delete:hover {
    background: #71583F !important;
    transform: scale(1.05) !important;
}

/* ========================================
   MODAL DE EDIÇÃO
======================================== */
.edit-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 10000 !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}

.edit-modal.show {
    display: flex !important;
}

.edit-modal-content {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 30px !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    animation: modalIn 0.3s ease !important;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.edit-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #425B81 !important;
}

.edit-modal-title {
    font-size: 20px !important;
    color: #425B81 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.btn-close-modal {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #8B7355 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.btn-close-modal:hover {
    color: #425B81 !important;
}

.edit-modal-footer {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    margin-top: 20px !important;
    padding-top: 0 !important;
    border: none !important;
}

.btn-save,
.btn-cancel {
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-save {
    background: #425B81 !important;
    color: #FDF5E7 !important;
}

.btn-save:hover {
    background: #375560 !important;
}

.btn-cancel {
    background: #8B7355 !important;
    color: #FDF5E7 !important;
}

.btn-cancel:hover {
    background: #71583F !important;
}

/* ========================================
   INFORMAÇÕES DO PARTICIPANTE
======================================== */
.participant-name {
    font-weight: 700 !important;
    color: #425B81 !important;
    font-size: 16px !important;
    margin-bottom: 5px !important;
}

.participant-location {
    color: #71583F !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.participant-comment {
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 0 !important;
    margin-top: 8px !important;
}

.participant-time {
    font-size: 12px !important;
    color: #8B7355 !important;
    margin-top: 8px !important;
}

/* ========================================
   MENSAGENS
======================================== */
.success-message,
.error-message {
    padding: 12px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    display: none;
}

.success-message {
    background: #E8F5E9 !important;
    color: #2E7D32 !important;
    border: 1px solid #C8E6C9 !important;
}

.error-message {
    background: #FFEBEE !important;
    color: #C62828 !important;
    border: 1px solid #FFCDD2 !important;
}

.empty-state {
    text-align: center !important;
    padding: 40px !important;
    color: #8B7355 !important;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-notification {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #425B81 !important;
    color: #FDF5E7 !important;
    padding: 25px 40px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 24px rgba(66, 91, 129, 0.4) !important;
    z-index: 99999 !important;
    display: none !important;
    animation: toastIn 0.3s ease !important;
}

.toast-notification.show {
    display: block !important;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========================================
   SCROLLBAR PERSONALIZADO
======================================== */
.participants-list::-webkit-scrollbar {
    width: 8px !important;
}

.participants-list::-webkit-scrollbar-track {
    background: #FDF5E7 !important;
    border-radius: 10px !important;
}

.participants-list::-webkit-scrollbar-thumb {
    background: #425B81 !important;
    border-radius: 10px !important;
}

.participants-list::-webkit-scrollbar-thumb:hover {
    background: #375560 !important;
}

/* ========================================
   BOTÃO LIVE BADGE (HOMEPAGE)
======================================== */
.lcs-live-badge-wrapper {
    display: inline-block;
    margin: 10px 0;
}

.lcs-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    background: #FDF5E7;
    color: #425B81;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", Arial, sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.lcs-live-button:hover {
    background: #FDF5E7;
    color: #425B81;
}

.lcs-live-button.lcs-is-live {
    background: #B52928;
    color: #FFFFFF;
    animation: pulseButton 2s ease-in-out infinite;
}

.lcs-live-button.lcs-is-live:hover {
    background: #c84343;
    color: #FDF5E7;
}

.lcs-badge-indicator {
    width: 16px;
    height: 16px;
    background: #FDF5E7;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.lcs-button-text {
    font-size: 14px;
    letter-spacing: 0.3px;
}

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

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(214, 54, 56, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(214, 54, 56, 0.6);
    }
}

@media (max-width: 768px) {
    .lcs-live-button {
        padding: 12px 28px;
        font-size: 13px;
        min-width: 180px;
    }
    .lcs-button-text {
        font-size: 13px;
    }
}

/* ========================================
   BADGE SUPERIOR (TOPO)
======================================== */
.lcs-top-badge-wrapper {
    display: block;
    text-align: center;
    margin: 0;
    padding: 0;
}

.lcs-top-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: #FDF5E7;
    color: #B52928;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    font-family: "Montserrat", Arial, sans-serif;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid #B52928;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px #B52928;
    animation: badgePulse 2s ease-in-out infinite;
}

.lcs-top-badge:hover {
    background: #FDF5E7;
    color: #B52928;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #B52928;
    text-decoration: none !important;
}

.lcs-top-badge-indicator {
    width: 10px;
    height: 10px;
    background: #B52928;
    border-radius: 50%;
    display: inline-block;
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

.lcs-top-badge-text {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes indicatorPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(181, 41, 40, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(181, 41, 40, 0.6);
    }
}

@media (max-width: 768px) {
    .lcs-top-badge {
        padding: 7px 16px;
        font-size: 12px;
    }
    .lcs-top-badge-indicator {
        width: 8px;
        height: 8px;
    }
    .lcs-top-badge-text {
        font-size: 12px;
    }
}

/* ========================================
   PLAYER DE VÍDEO
======================================== */
.lcs-player-container {
    max-width: 1100px;
    margin: 0 auto 40px;
    background: transparent;
    padding: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lcs-live-badge {
    margin-bottom: 35px;
}

.lcs-live-badge .lcs-live-badge-wrapper {
    border-left: 3px solid #c0392b;
    background: #FDF5E7;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lcs-live-badge .lcs-live-badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcs-live-badge .lcs-live-badge-dot {
    width: 8px;
    height: 8px;
    background: #c0392b;
    border-radius: 50%;
    position: relative;
}

.lcs-live-badge .lcs-live-badge-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #c0392b;
    animation: lcsRipple 1.8s ease-out infinite;
}

@keyframes lcsRipple {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.2); }
}

.lcs-live-badge .lcs-live-badge-label span {
    font-family: "Lato", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    color: #c0392b;
    text-transform: uppercase;
}

.lcs-live-badge .lcs-live-badge-separator {
    width: 1px;
    height: 20px;
    background: #e0d8cc;
}

.lcs-live-badge .lcs-live-badge-text {
    font-size: 13px;
    color: #4a4a4a;
}

.lcs-live-badge .lcs-live-badge-text strong {
    color: #2d4a6e;
}

.lcs-live-header {
    background: linear-gradient(135deg, #B52928 0%, #b32d2e 100%);
    color: #FFFFFF;
    padding: 20px 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.lcs-live-indicator {
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.lcs-live-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lcs-next-live-date {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #425B81;
    letter-spacing: 0.5px;
}

.lcs-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000000;
    margin: 0 0 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lcs-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lcs-channel-link-wrapper {
    text-align: center;
    padding: 0;
    margin-bottom: 20px;
}

.lcs-channel-button {
    display: inline-block;
    padding: 14px 35px;
    background: #FFFFFF;
    color: #425B81;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lcs-channel-button:hover {
    background: #425B81;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 91, 129, 0.3);
}

@media (max-width: 768px) {
    .lcs-live-header {
        padding: 20px 25px;
        margin-bottom: 25px;
    }
    .lcs-channel-button {
        padding: 14px 32px;
        font-size: 12px;
    }
}
