/* Reset completo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Container padrão (para páginas que não usam app-style) */
.container {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 15px;
}

/* App container - layout mobile-first */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    width: 100%;
}

/* App header */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botões */
button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.2s ease;
    font-weight: bold;
    min-height: 44px;
    touch-action: manipulation;
}

button:hover {
    background: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Links */
a {
    text-decoration: none;
    color: #333;
}

/* Lista módulos */
ul {
    list-style: none;
}

li {
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.2s;
}

li:hover {
    background: #e8f5e9;
}

/* Quiz */
.pergunta {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.pergunta strong {
    color: #333;
    font-size: 18px;
    display: block;
    margin-bottom: 15px;
}

.pergunta-texto {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.alternativas-container {
    display: grid;
    gap: 10px;
}

.alternativa {
    display: flex !important;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.alternativa:hover {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: translateX(5px);
}

.alternativa.selected {
    background: #c8e6c9;
    border-color: #4CAF50;
}

.alternativa input[type="radio"] {
    margin-right: 12px;
    min-width: 18px;
    min-height: 18px;
}

.alternativa span {
    flex: 1;
    font-size: 15px;
}

/* Feedback */
.acerto {
    color: #4CAF50;
    font-weight: bold;
}

.erro {
    color: #f44336;
    font-weight: bold;
}

/* Responsividade mobile */
@media (max-width: 480px) {
    .app-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    button {
        padding: 15px;
        font-size: 16px;
        width: 100%;
        min-height: 48px;
    }
    
    .alternativa {
        padding: 12px;
        min-height: 45px;
    }
    
    .alternativa span {
        font-size: 14px;
    }
}