@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

body {
    font-family: 'Space Grotesk', 'Arial', sans-serif;
    margin: 20px;
    background-color: #000;
    overflow-x: hidden;
}
@media (max-width: 600px) {
    body {
        margin: 0;
    }
}
.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #242427;
    padding: 20PX;
    border-radius: 0;
    position: relative;
}
h4.sugiro {
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    padding: 0;
    margin: 0;
}
h1.brand {
    color: #FE0;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.45;
    text-align: left;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 35px;
}
h1 a {
    text-decoration: none;
    color: #FE0;
}
h3 {
    color: #FFF;
    font-size: 18px;
    font-weight: normal;
}
h2 a {
    text-decoration: none;
}
h2 {
    font-size: 18px;
    text-align: left;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}
.section {
    margin-bottom: 20px;
    filter: invert(1);
}
.input-area {
/*            background-color: #eee; */
}
.results-area,
.performance-area {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff; 
}
.input-group {
    margin-bottom: 15px;
}
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 15px;
}
.input-group input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 0 solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: bold; 
}
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
button.help {
    width: 36%;
    position: absolute;
    top: -11px;
    right: 25px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    background: #f60;
    padding: 8px 12px;
}
button.help:hover {
    background: #f00;
}
button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #0af;
    color: #000;
    border: none;
    border-radius: 5px;
    margin-top: 35px;
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0ff;
}
.result-item, .performance-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
    font-weight: normal;
    font-size: 15px;
}
.result-item:last-child, .performance-item:last-child {
    border-bottom: none;
}
.result-item span:first-child, .performance-item span:first-child {
    font-weight: normal;
}

.result-item span:last-child {
    font-weight: bold;
    font-size: 16px;
}
.result-item:last-child, 
.performance-item:last-child {
    margin-top: 8px;
    margin-bottom: -6px;
}
.result-item span.positive-value {
    color: #28a745;
    filter: invert(1);
}
.result-item span.negative-value {
    color: #F30;
    filter: invert(1);
}

.performance-item span:first-child {
    font-weight: normal;
}
.performance-item span:last-child {
    font-weight: bold;
    font-size: 16px;
}

.performance-item span.performance-positive {
    color: #28a745;
    filter: invert(1);
}
.performance-item span.performance-negative {
    color: #F30;
    filter: invert(1);
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: normal;
}
.obs {
    margin-top: 30px;
    margin-bottom: 50px;
}
.obs p {
    color: #fff;
    line-height: 1.5;
}

a {
    color: #fe0;
}
p.warning {
    color: #f90;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content {
    position: relative;
    background-color: #242427;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-content h2 {
    color: #FE0;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: -15px;
    text-align: left;
}

.modal-body {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 35px;
    font-size: 18px;
}

/*.modal-section {
    background-color: #444;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}*/

.modal-section h3 {
    color: #FE0;
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-section ul {
    margin: 0;
    padding-left: 20px;
}

.modal-section li {
    margin-bottom: 12px;
    color: #fff;
}

.modal-section li:first-child strong {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #999;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #FE0;
}

/* Scrollbar personalizada para o modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

a.historico {
    color: #68d2ff;
    text-decoration: none;
    border-bottom: 1px solid #68d2ff;
    line-height: 4;
}
a.historico:hover {
    color: #ff0;
    border-bottom: 1px solid #ff0;
}

/* Responsividade do modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 5% auto;
        width: 85%;
        padding: 20px 20px 10px 20px;
        max-height: 92vh;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-section h3 {
        font-size: 18px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}