/* ============================================
   BASE.HTML - ESTILOS PRINCIPAIS
   ============================================ */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;

    /* Você pode adicionar cores personalizadas */
    --brand-color: #ff6600;
    --background-color: #f0f0f0;
    --text-color: #333333;

    /* Cores para ícones */
    --blue-icone-color-dark: #001d9e;
    --blue-icone-color-light: #4e6efd;
    --green-icone-color-dark: #007936;
    --green-icone-color-light: #53f89d;
    --orange-icone-color-dark: #cc7a00;
    --orange-icone-color-light: #ffb13c;
    --purple-icone-color-dark: #5b00af;
    --purple-icone-color-light: #a646ff;
}

body {
    background: linear-gradient(135deg, {{ deep_link_info.info.cor }}15 0%, #ffffff 100%);
    min-height: 100vh;
}

.icon-blue { background: linear-gradient(135deg, var(--blue-icone-color-dark) 0%, var(--blue-icone-color-light) 100%); }
.icon-green { background: linear-gradient(135deg, var(--green-icone-color-dark) 0%, var(--green-icone-color-light) 100%); }
.icon-orange { background: linear-gradient(135deg, var(--orange-icone-color-dark) 0%, var(--orange-icone-color-light) 100%); }
.icon-purple { background: linear-gradient(135deg, var(--purple-icone-color-dark) 0%, var(--purple-icone-color-light) 100%); }

/* Navbar */
.navbar-brand {
    font-weight: bold;
    color: #007bff !important;
}

/* Cards */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Botões */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-control {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-control:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.btn-open-app {
    background: {{ deep_link_info.info.cor }};
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
}

.btn-open-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: white;
}

.btn-open-browser {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
}

.btn-open-browser:hover {
    background: #5a6268;
    color: white;
}

.btn-avaliacao {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.btn-avaliacao:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-avaliacao i {
    margin-left: 10px;
}

.action-buttons .btn {
    margin: 2px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 50px;
}

/* Legenda */
.legend {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Cartão Estatisticas */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.stats-card:hover {
    transform: translateY(-2px);
}
.stats-card.primary {
    border-color: #007bff;
}
.stats-card.success {
    border-color: #28a745;
}
.stats-card.warning {
    border-color: #ffc107;
}
.stats-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}
.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}
.stat-label {
    font-weight: 600;
    color: #495057;
}
.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}
.big-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

/* Gráficos */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

/* Cartão Líder */
.leader-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.leader-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Lista de Membros */
.member-list {
    max-height: 200px;
    overflow-y: auto;
}

/* Deep Link Container */
.deep-link-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

/* Cartao de Plataforma */
.platform-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in;
}

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

.platform-icon {
    font-size: 80px;
    color: {{ deep_link_info.info.cor }};
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.platform-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Atividade */
.activity-title {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.status-message {
    font-size: 16px;
    color: #888;
    margin: 20px 0;
}

/* Barra de carregamento */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: {{ deep_link_info.info.cor }};
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Cartão de Timer */
.timer-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.timer-card.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

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

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: {{ deep_link_info.info.cor }};
    margin: 20px 0;
}

.timer-label {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

/* Caixa de Informação */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.info-box h6 {
    color: {{ deep_link_info.info.cor }};
    margin-bottom: 10px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    color: #666;
    margin: 5px 0;
}

/* Modal/Popup para exibir conteúdo */
.content-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.content-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
    background: {{ deep_link_info.info.cor }};
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 18px;
}

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

.btn-close-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-iframe-container {
    width: 100%;
    height: calc(100% - 60px);
    position: relative;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Overlays para carregamento e erro */
.iframe-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.iframe-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .deep-link-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .platform-card {
        padding: 20px;
    }
    
    .platform-icon {
        font-size: 60px;
    }
    
    .platform-name {
        font-size: 24px;
    }
    
    .activity-title {
        font-size: 18px;
    }
    
    .modal-content-wrapper {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}


/* ESTILOS PARA CADASTRO */
.cadastro-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.cadastro-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cadastro-header {
    text-align: center;
    margin-bottom: 30px;
}

.cadastro-header h2 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 10px;
}

.cadastro-header p {
    color: #6c757d;
    font-size: 16px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h4 i {
    color: #667eea;
}

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

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

.form-group label .required {
    color: #dc3545;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.interesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.interesse-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.interesse-item:hover {
    background: #e9ecef;
}

.interesse-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.interesse-item input[type="checkbox"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.interesse-item.selected {
    background: #e7f3ff;
    border-color: #667eea;
}

.password-strength {
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

/* Badges */
.badge-percentage {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.badge-success {
    background: #d4edda;
    color: #01b42a;
}

.badge-warning {
    background: #fff3cd;
    color: #ffcd36;
}

.badge-danger {
    background: #f8d7da;
    color: #ff0019;
}
