/* ========================================
   REVALIDA 2025.2 - Sistema de Simulação
   Estilos Gerais
   ======================================== */

:root {
    --primary-color: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --secondary-color: #8b5cf6;
    --accent-color: #c4b5fd;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #8b5cf6;
    --light-bg: #f5f3ff;
    --white: #ffffff;
    --text-primary: #1e1b4b;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e9d5ff;
    --shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
    --shadow-hover: 0 8px 25px rgba(124, 58, 237, 0.15);
    --shadow-large: 0 15px 35px rgba(124, 58, 237, 0.12);
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #5b21b6 0%, #7c3aed 25%, #8b5cf6 50%, #7c3aed 75%, #5b21b6 100%);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Banner de Aviso
   ======================================== */

.warning-banner {
    background-color: var(--warning-color);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 500;
    font-size: 14px;
}

/* ========================================
   Cabeçalho - Design Moderno
   ======================================== */

.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 14px;
}

.main-nav a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.main-nav a.nav-btn {
    background: var(--gradient-primary);
    color: white;
}

.main-nav a.nav-btn:hover {
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.user-welcome {
    color: var(--text-secondary);
    margin-right: 5px;
    font-size: 14px;
    padding: 10px 15px;
    background: var(--light-bg);
    border-radius: 50px;
}

/* ========================================
   Conteúdo Principal
   ======================================== */

.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ========================================
   Hero Section - Design Moderno
   ======================================== */

.hero-section {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-badge::before {
    content: '🏥';
    margin-right: 8px;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    stroke: #fbbf24;
}

/* ========================================
   Botões - Design Moderno
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 45px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-disabled {
    background: #bdc3c7;
    color: white;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-disabled::before {
    display: none;
}

/* Botão com ícone */
.btn-icon {
    padding: 14px 28px 14px 24px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn-back:hover {
    color: var(--primary-color);
}

.btn-download {
    font-size: 18px;
    padding: 15px 30px;
}

/* ========================================
   Info Section - Design Moderno
   ======================================== */

.info-section {
    background-color: var(--white);
    padding: 60px 50px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.info-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.info-section h3 span {
    color: var(--primary-color);
}

/* ========================================
   Steps Grid (Legado)
   ======================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.step-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Steps Grid - Novo Design com Ícones
   ======================================== */

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 17px;
}

.steps-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.step-card-new {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.step-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-light);
}

.step-card-new:hover .step-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
}

.step-card-new:hover .step-icon svg {
    stroke: white;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.step-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

.step-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
}

.step-card-new h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.step-card-new p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.step-connector {
    display: none;
}

/* Responsividade Steps Grid New */
@media (max-width: 992px) {
    .steps-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .steps-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-card-new {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 25px;
        gap: 20px;
    }
    
    .step-icon {
        margin: 0;
        width: 65px;
        height: 65px;
        min-width: 65px;
    }
    
    .step-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .step-badge {
        top: -5px;
        left: -5px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-card-new h4 {
        margin-bottom: 5px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .step-card-new {
        padding: 20px;
        gap: 15px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
    
    .step-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* ========================================
   Universidades Grid - Novo Design
   ======================================== */

.universities-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.universidades-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.universidade-card-new {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.universidade-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.universidade-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.uni-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.uni-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-color);
}

.uni-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.uni-estado {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 50px;
}

.uni-header h4 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.uni-list {
    list-style: none;
}

.uni-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.uni-list li:last-child {
    margin-bottom: 0;
}

.uni-list li:hover {
    background: #f5f3ff;
}

.uni-nome {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
}

.uni-info {
    color: var(--text-secondary);
    flex: 1;
}

.uni-vagas-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .universidades-grid-new {
        grid-template-columns: 1fr;
    }
    
    .uni-list li {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .uni-nome {
        min-width: auto;
    }
    
    .uni-info {
        flex: none;
        width: 100%;
        order: 3;
    }
}

/* Universidades Grid (Legado) */
.universidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.universidade-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.universidade-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.universidade-card ul {
    list-style: none;
}

.universidade-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.universidade-card li:last-child {
    border-bottom: none;
}

/* ========================================
   Formulários
   ======================================== */

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   Alertas
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert ul {
    margin-left: 20px;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
    color: #2e7d32;
}

.alert-error {
    background-color: #ffebee;
    border-left: 4px solid var(--error-color);
    color: #c62828;
}

.alert-warning {
    background-color: #fff3e0;
    border-left: 4px solid var(--warning-color);
    color: #e65100;
}

.alert-info {
    background-color: #e3f2fd;
    border-left: 4px solid var(--info-color);
    color: #1565c0;
}

/* ========================================
   Info Box
   ======================================== */

.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid var(--info-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.info-box h4 {
    color: var(--info-color);
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

.text-small {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Estados
   ======================================== */

.estados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.estado-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.estado-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.estado-sigla {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.estado-nome {
    font-size: 18px;
    margin-bottom: 15px;
}

.estado-action {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Universidades List
   ======================================== */

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-description {
    color: var(--text-secondary);
}

.universidades-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.universidade-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s;
}

.universidade-item:hover {
    box-shadow: var(--shadow-hover);
}

.universidade-item.esgotado {
    opacity: 0.7;
}

.uni-info {
    flex: 1;
}

.uni-info h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.uni-details {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.uni-sigla {
    font-weight: bold;
    color: var(--primary-color);
}

.uni-vagas {
    margin-top: 10px;
}

.vagas-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.vagas-disponiveis {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.vagas-esgotadas {
    background-color: #ffebee;
    color: var(--error-color);
}

.vagas-numero {
    font-weight: bold;
    font-size: 16px;
}

.update-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

/* Animação de atualização de vagas */
@keyframes vagasUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: #fff3cd; }
    100% { transform: scale(1); }
}

.vagas-badge.atualizado {
    animation: vagasUpdate 0.5s ease;
}

.uni-action {
    margin-left: 20px;
}

/* ========================================
   Confirmação
   ======================================== */

.confirmation-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.confirmation-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-bg);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.data-value {
    font-weight: 500;
    color: var(--text-primary);
}

.vagas-highlight {
    color: var(--primary-color);
    font-size: 18px;
}

.confirmation-form {
    margin-top: 30px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========================================
   Painel do Usuário
   ======================================== */

.inscricao-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.inscricao-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inscricao-header h3 {
    margin: 0;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-enviado {
    background-color: rgba(255, 255, 255, 0.3);
}

.status-pendente {
    background-color: rgba(255, 255, 255, 0.2);
}

.inscricao-body {
    padding: 30px;
}

.info-group {
    margin-bottom: 25px;
}

.info-group h4 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.codigo-destaque {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item span {
    font-size: 16px;
    color: var(--text-primary);
}

.cartao-info {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.download-section {
    text-align: center;
    margin-top: 20px;
}

.empty-state {
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ========================================
   Admin
   ======================================== */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-header h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.admin-nav {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.admin-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-nav a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.admin-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 48px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table thead {
    background-color: var(--light-bg);
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background-color: var(--light-bg);
}

.admin-table code {
    background-color: var(--light-bg);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.badge-warning {
    background-color: #fff3e0;
    color: var(--warning-color);
}

.badge-danger {
    background-color: #ffebee;
    color: var(--error-color);
}

.btn-action {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-action:hover {
    transform: scale(1.2);
}

.filter-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
}

.text-error {
    color: var(--error-color);
    font-size: 13px;
}

.text-center {
    text-align: center;
}

/* ========================================
   Rodapé
   ======================================== */

.main-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.main-footer p {
    margin: 5px 0;
}

.footer-warning {
    font-size: 12px;
    opacity: 0.8;
}

/* ========================================
   Menu Mobile (Hamburger)
   ======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   Responsividade - Telas Grandes (Desktop)
   ======================================== */

@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }
    
    .admin-container {
        max-width: 1400px;
    }
}

/* ========================================
   Responsividade - Tablets (768px - 1200px)
   ======================================== */

@media (max-width: 1200px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* ========================================
   Responsividade - Mobile (até 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Container geral */
    .container {
        padding: 0 15px;
    }
    
    /* Header e Menu Mobile */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-size: 16px;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .user-welcome {
        margin-right: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    /* Overlay para menu mobile */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Logo */
    .logo a {
        font-size: 18px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo span {
        display: none;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 50px 25px;
        margin-bottom: 30px;
        border-radius: 16px;
    }
    
    .hero-section h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 15px;
    }
    
    .hero-text {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .hero-text br {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 16px 25px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
    }
    
    .hero-feature {
        background: rgba(255,255,255,0.1);
        padding: 10px 20px;
        border-radius: 50px;
        justify-content: center;
    }
    
    /* Botões */
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    /* Info Section */
    .info-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .info-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Universidades Grid */
    .universidades-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .universidade-card {
        padding: 20px;
    }
    
    /* Estados Grid */
    .estados-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .estado-card {
        padding: 30px 20px;
    }
    
    .estado-sigla {
        font-size: 36px;
    }
    
    .estado-nome {
        font-size: 16px;
    }
    
    /* Universidade Item (lista) */
    .universidade-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .uni-action {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .uni-action .btn {
        width: 100%;
    }
    
    /* Formulários */
    .form-container {
        max-width: 100%;
    }
    
    .form-card {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 12px;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .form-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    /* Confirmação */
    .confirmation-card {
        padding: 20px;
    }
    
    .data-row {
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
    }
    
    .data-label {
        font-size: 13px;
    }
    
    .data-value {
        font-size: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Inscrição Card */
    .inscricao-card {
        border-radius: 8px;
    }
    
    .inscricao-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }
    
    .inscricao-header h3 {
        font-size: 18px;
    }
    
    .inscricao-body {
        padding: 20px;
    }
    
    .codigo-destaque {
        font-size: 22px;
        word-break: break-all;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cartao-info {
        padding: 15px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    /* Admin */
    .admin-container {
        max-width: 100%;
    }
    
    .admin-header {
        padding: 20px;
    }
    
    .admin-header h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 5px;
        padding-top: 15px;
    }
    
    .admin-nav a {
        padding: 12px 16px;
        text-align: center;
        border-radius: 5px;
        background-color: var(--light-bg);
    }
    
    .admin-nav a.active {
        background-color: var(--primary-color);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .admin-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .admin-section h3 {
        font-size: 18px;
    }
    
    /* Filtros */
    .filter-section {
        padding: 15px;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    
    .filter-input,
    .filter-select {
        font-size: 16px;
        padding: 12px;
    }
    
    .filter-form .btn {
        width: 100%;
    }
    
    /* Tabelas Responsivas */
    .table-responsive {
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .admin-table code {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .btn-action {
        padding: 8px;
        font-size: 16px;
    }
    
    /* Alertas */
    .alert {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Info Box */
    .info-box {
        padding: 15px;
    }
    
    .info-box h4 {
        font-size: 16px;
    }
    
    .info-box ul {
        margin-left: 15px;
    }
    
    .info-box li {
        font-size: 14px;
    }
    
    /* Main Content */
    .main-content {
        padding: 25px 0;
        min-height: calc(100vh - 150px);
    }
    
    /* Page Header */
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    /* Footer */
    .main-footer {
        padding: 25px 15px;
        margin-top: 30px;
    }
    
    .main-footer p {
        font-size: 13px;
    }
    
    /* Warning Banner */
    .warning-banner {
        font-size: 12px;
        padding: 10px 15px;
        line-height: 1.4;
    }
    
    /* Details Grid */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .details-card h3 {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .details-content {
        padding: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 13px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    /* Page Actions */
    .page-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-actions .btn {
        text-align: center;
        width: 100%;
    }
    
    /* Upload Section */
    .upload-section {
        padding: 15px;
    }
    
    .upload-label {
        padding: 15px;
    }
    
    .upload-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .upload-actions .btn {
        width: 100%;
    }
    
    /* Badges */
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .vagas-badge {
        font-size: 13px;
    }
    
    .status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ========================================
   Responsividade - Telas Muito Pequenas (até 480px)
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .hero-section h2 {
        font-size: 24px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
    }
    
    .hero-text {
        font-size: 14px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .step-card h4 {
        font-size: 16px;
    }
    
    .step-card p {
        font-size: 13px;
    }
    
    .estado-card {
        padding: 25px 15px;
    }
    
    .estado-sigla {
        font-size: 32px;
    }
    
    .form-card {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 10px;
    }
    
    .confirmation-card {
        padding: 15px;
    }
    
    .codigo-destaque {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .inscricao-header {
        padding: 15px;
    }
    
    .inscricao-body {
        padding: 15px;
    }
    
    .admin-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-icon {
        font-size: 30px;
    }
    
    .admin-header h2 {
        font-size: 18px;
    }
    
    .admin-section h3 {
        font-size: 16px;
    }
}

/* ========================================
   Página de Detalhes da Inscrição
   ======================================== */

.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.details-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.details-card h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
}

.details-content {
    padding: 20px;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 140px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-primary);
    word-break: break-word;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.code-highlight {
    background-color: var(--light-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-success:hover {
    background-color: #388e3c;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-info:hover {
    background-color: #1976d2;
}

/* Upload Section */
.upload-section {
    background-color: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.upload-form {
    width: 100%;
}

.upload-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    text-align: center;
}

.upload-label span {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-label input[type="file"] {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

.upload-actions {
    display: flex;
    gap: 10px;
}

.badge-danger {
    background-color: var(--error-color);
    color: white;
}

.text-error {
    color: var(--error-color);
}

.text-success {
    color: var(--success-color);
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .page-actions .btn {
        text-align: center;
    }
}

/* ========================================
   Utilitários Responsivos
   ======================================== */

.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Tabela Mobile - Formato Card */
@media (max-width: 600px) {
    .table-card-mobile thead {
        display: none;
    }
    
    .table-card-mobile tbody tr {
        display: block;
        background-color: var(--white);
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 15px;
    }
    
    .table-card-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .table-card-mobile tbody td:last-child {
        border-bottom: none;
    }
    
    .table-card-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 13px;
    }
}
