/**
 * Helloo Approve - Estilos do Sistema de Validacao
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --roxo-principal: #5C35B3;
    --roxo-escuro: #3D2080;
    --laranja: #FE5900;
    --laranja-claro: #FF7A33;
    --bg-dark: #0A0A0F;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --sucesso: #10B981;
    --erro: #EF4444;
    --warning: #F59E0B;
}

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* === CONTAINER === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.container-wide {
    max-width: 1200px;
}

/* === HEADER === */
.header-validacao {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.header-validacao h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--roxo-principal), var(--laranja));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-validacao p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === PROGRESS BAR === */
.progress-container {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background: var(--sucesso);
    border-color: var(--sucesso);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--roxo-principal), var(--laranja));
    border-color: var(--laranja);
    box-shadow: 0 0 20px rgba(254, 89, 0, 0.4);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-primary);
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
}

/* === FORMULARIOS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--roxo-principal);
    box-shadow: 0 0 0 3px rgba(92, 53, 179, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* === BOTOES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--roxo-principal), var(--laranja));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(254, 89, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: var(--sucesso);
    color: white;
}

.btn-danger {
    background: var(--erro);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* === LISTA DE ETAPAS === */
.etapas-list {
    list-style: none;
}

.etapa-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.etapa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(92, 53, 179, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.etapa-info {
    flex: 1;
}

.etapa-titulo {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.etapa-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.etapa-tempo {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* === FLUXO VISUAL === */
.fluxo-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.fluxo-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fluxo-numero {
    background: linear-gradient(135deg, var(--roxo-principal), var(--laranja));
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.fluxo-diagrama {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.fluxo-step {
    background: rgba(92, 53, 179, 0.2);
    border: 1px solid rgba(92, 53, 179, 0.4);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
}

.fluxo-step.highlight {
    background: linear-gradient(135deg, rgba(92, 53, 179, 0.3), rgba(254, 89, 0, 0.2));
    border-color: var(--laranja);
}

.fluxo-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* === BOTOES DE APROVACAO === */
.approval-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-aprovar {
    background: var(--sucesso);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-aprovar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.btn-comentar {
    background: var(--warning);
    color: var(--bg-dark);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-comentar:hover {
    transform: scale(1.05);
}

.btn-rejeitar {
    background: var(--erro);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-rejeitar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

/* === NAVEGACAO === */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* === EMAIL PREVIEW === */
.email-preview {
    background: #1a1a1f;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.email-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.email-field {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.email-field-label {
    color: var(--text-muted);
    min-width: 60px;
}

.email-field-value {
    color: var(--text-secondary);
}

.email-subject {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.email-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.email-body p {
    margin-bottom: 1rem;
}

.email-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--roxo-principal), var(--laranja));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
}

/* === RESUMO FINAL === */
.resumo-section {
    margin-bottom: 2rem;
}

.resumo-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.resumo-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.resumo-status {
    font-size: 1.25rem;
}

.resumo-item-info {
    flex: 1;
}

.resumo-item-titulo {
    font-weight: 500;
}

.resumo-item-comentario {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-value.aprovado { color: var(--sucesso); }
.stat-value.rejeitado { color: var(--erro); }
.stat-value.comentario { color: var(--warning); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === TELAS GRID === */
.telas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tela-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.tela-card:hover {
    transform: translateY(-3px);
    border-color: var(--roxo-principal);
    box-shadow: 0 10px 30px rgba(92, 53, 179, 0.2);
}

.tela-card.concluida {
    border-color: var(--sucesso);
}

.tela-card.concluida::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--sucesso);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.tela-card {
    position: relative;
}

.tela-numero {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.tela-titulo {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tela-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* === TOAST NOTIFICATION === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
}

.toast.toast-error {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), var(--bg-dark));
}

.toast.toast-success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-dark));
}

.toast.toast-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--bg-dark));
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

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

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-validacao h1 {
        font-size: 1.75rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .approval-buttons {
        flex-direction: column;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons .btn {
        width: 100%;
    }
}
