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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 50%, #ff6600 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0066cc, #ff6600);
    color: white;
    padding: 40px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.header-icon {
    font-size: 3em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.95;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff5e6, #ffe0b3);
    border: 3px solid #ff6600;
    border-radius: 15px;
    padding: 25px;
    margin: -10px 0 20px 0;
    display: flex;
    align-items: start;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
}

.warning-box i {
    font-size: 2em;
    color: #ff6600;
    flex-shrink: 0;
}

.warning-box strong {
    color: #ff6600;
    font-size: 1.1em;
}

.warning-box p {
    margin-top: 8px;
    line-height: 1.6;
    color: #555;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e6f2ff, #cce5ff);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

.info-box i {
    font-size: 1.8em;
    color: #0066cc;
    flex-shrink: 0;
}

.info-box strong {
    color: #0066cc;
    font-size: 1.05em;
}

.info-box p {
    margin-top: 5px;
    line-height: 1.6;
    color: #444;
}

/* Privacy Box */
.privacy-box {
    background: linear-gradient(135deg, #e6f2ff, #d9ebff);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.privacy-box i {
    font-size: 1.8em;
    color: #0066cc;
    flex-shrink: 0;
}

.privacy-box strong {
    color: #0066cc;
    font-size: 1.05em;
}

.privacy-box p {
    margin-top: 5px;
    line-height: 1.6;
    color: #444;
}

/* Calculator Section */
.calculator-section {
    background: white;
    padding: 35px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.calculator-section h2 {
    color: #0066cc;
    font-size: 1.8em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-section h2 i {
    color: #ff6600;
}

/* Form Group */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.form-group label i {
    margin-right: 8px;
    color: #ff6600;
}

.weight {
    font-size: 0.85em;
    color: #ff6600;
    font-weight: 500;
    background: #fff5e6;
    padding: 3px 10px;
    border-radius: 20px;
}

.required {
    font-size: 0.8em;
    color: #ff6600;
    font-weight: 400;
    font-style: italic;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* User Info Section */
.user-info-section {
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.user-info-section h3 {
    color: #0066cc;
    font-size: 1.3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info-section h3 i {
    color: #ff6600;
}

/* Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0066cc, #ff6600);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Result Box */
.result-box {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #0066cc, #ff6600);
    color: white;
    border-radius: 15px;
    text-align: center;
    animation: slideIn 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

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

.result-box h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.result-box .score {
    font-size: 3.5em;
    font-weight: 800;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gabarito Section */
.gabarito-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.gabarito-toggle {
    width: 100%;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 20px 30px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.gabarito-toggle:hover {
    background: linear-gradient(135deg, #0052a3, #ff6600);
}

.gabarito-toggle i:first-child {
    margin-right: 10px;
}

.gabarito-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gabarito-content.active {
    padding: 30px;
    max-height: 1000px;
}

/* Gabarito Simple Style */
.gabarito-simple {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #0066cc;
    border-radius: 12px;
    padding: 25px;
    font-size: 1.1em;
    line-height: 2;
    color: #333;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    text-align: justify;
    word-spacing: 3px;
    letter-spacing: 0.5px;
}

/* Ranking Section */
.ranking-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.ranking-section h2 {
    color: #0066cc;
    font-size: 1.8em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-section h2 i {
    color: #ff6600;
}

.ranking-subtitle {
    color: #666;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-subtitle i {
    color: #0066cc;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.ranking-item.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.ranking-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border-color: #c0c0c0;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4);
}

.ranking-item.top-3 {
    background: linear-gradient(135deg, #cd7f32, #e39b5f);
    border-color: #cd7f32;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4);
}

.rank-position {
    font-size: 1.5em;
    font-weight: 700;
    color: #0066cc;
    min-width: 50px;
}

.rank-name {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.rank-score {
    font-size: 1.3em;
    font-weight: 700;
    color: #ff6600;
}

.medal {
    font-size: 1.5em;
    margin-right: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0066cc, #ff6600);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.footer p {
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.6em;
    }

    .calculator-section,
    .ranking-section {
        padding: 25px 20px;
    }

    .result-box .score {
        font-size: 2.5em;
    }

    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rank-position {
        font-size: 1.2em;
    }

    .rank-score {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.4em;
    }

    .gabarito-simple {
        font-size: 0.95em;
        padding: 20px;
    }
}