* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #8e44ad;
    padding-bottom: 20px;
}

h1 {
    color: #8e44ad;
    font-size: 24px;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-style: italic;
}

.instructions {
    background: #f3e5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.instructions h2 {
    color: #8e44ad;
    margin-bottom: 10px;
}

.instructions ul {
    margin-left: 20px;
}

.form-identification {
    background: #faf5ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #d5b8e8;
}

.form-identification h2 {
    color: #8e44ad;
    margin-bottom: 15px;
    font-size: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.form-row label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.form-row input,
.form-row select {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.question {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #9b59b6;
}

.question-text {
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.option input[type="radio"] {
    cursor: pointer;
}

.option label {
    cursor: pointer;
    font-size: 14px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #9b59b6;
    color: white;
}

.btn-primary:hover {
    background: #8e44ad;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

#smiForm button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 20px;
}

#resultsSection {
    margin-top: 40px;
}

#resultsSection h2 {
    color: #8e44ad;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.mode-result {
    display: grid;
    grid-template-columns: 220px 1fr 80px 80px;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    align-items: center;
}

.mode-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 13px;
}

.mode-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.mode-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #e74c3c);
    transition: width 0.5s;
}

.mode-score {
    text-align: center;
    font-weight: bold;
}

.mode-level {
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.level-baixa { background: #2ecc71; color: white; }
.level-media { background: #f39c12; color: white; }
.level-alta { background: #e74c3c; color: white; }

.chart-container {
    margin: 30px 0;
    max-height: 600px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

#printBlankBtn {
    float: right;
}

@media print {
    body { background: white; }
    .container { box-shadow: none; }
    .btn-primary, .btn-secondary, .actions { display: none; }
    .options { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; }
}

@media (max-width: 768px) {
    .options { flex-direction: column; }
    .mode-result { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
}
