/* ========================================
   ESTILOS GLOBAIS - EVOLUX
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 650px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(126, 223, 212, 0.3);
    font-size: 14px;
}

.containerb {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
    text-transform: uppercas;
    font: size 16px;
    margin-top: 100px;
    padding-bottom: 40px;
    border: 1px solid #BCBCBC;
}

.containerb v {
    color: #5FCB20;
    padding-left: 5px;
}

.containerb img {
    width: 70px;
    float: center;
    padding: 0px;
    margin-top: -60px;
    margin-left: auto;
    margin-right: auto;
}

.containerba {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
    text-transform: uppercase;
    font-size: 10px;
    margin-top: -15px;
    border: 1px solid #BCBCBC;
    font-size: 12px;
    text-align: center;
}

h1 {
    text-align: center;
}

.appliance {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 13px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #7edfd4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(126, 223, 212, 0.15);
}

button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #7edfd4 0%, #5cc4b9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #5cc4b9 0%, #4ab3a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 223, 212, 0.4);
}

button:active {
    transform: translateY(0);
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.explanation {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    font-size: 13px;
    line-height: 1.7;
}

.solar-result {
    background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-top: 20px;
    display: none;
    border-radius: 8px;
    font-size: 13px;
}

/* Warning Bar */
.warning-bar {
    background: linear-gradient(90deg, #ff7043 0%, #ff9800 100%);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 112, 67, 0.3);
}

.site-description {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.menu-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    /* Para alinhar a logo e o botão */
    align-items: center;
    height: 60px;
    padding: 0 20px;
    /* Adicionando espaço ao redor dos elementos */
    padding-top: 60px;
    -webkit-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.menu-fixed nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    /* Ajuste a largura conforme necessário */
}

.menu-fixed nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    /* Aplicando a fonte Roboto */
    text-transform: uppercase;
    /* Transformando o texto em maiúsculas */
}

.menu-fixed nav ul li {
    display: inline-block;
    margin-right: 0px;
}

.menu-fixed nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 19px;
    display: block;
    position: relative;
    /* Permitir a aplicação de um traço */
}

.menu-fixed nav ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #7edfd4;
    bottom: -32px;
    left: 0;
}

.menu-fixed .logo img {
    width: 200px;
    height: 20px;
}


.blue-section {
    background-color: #7edfd4;
    /* Cor azul clara */
    width: 100%;

    z-index: 2;
    padding-bottom: 30px;
    padding-top: 30px;
}

.blue-section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    /* Defina a largura máxima conforme necessário */
    margin: 0 auto;
    /* Centraliza o conteúdo */
    padding: 0 20px;
    color: #fff;
    text-align: justify;
    padding-bottom: 30px;
}

.blue-section img {
    width: 250px;
    /* Defina a largura da imagem conforme necessário */
    margin-right: 20px;
    /* Adiciona espaçamento entre a imagem e o texto */
}

.blue-section-text p {
    flex-grow: 1;
    /* Faz o texto ocupar o restante do espaço disponível */
    font-size: 17px;
    color: #333333;
}




.economy-tips {
    background: linear-gradient(135deg, #7edfd4 0%, #5cc4b9 100%);
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
}

.economy-tips h2 {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 30px;
}

.tip {
    width: 280px;
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.icon-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.icon-container .icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.icon-container .icon-wrapper:hover {
    transform: translateY(-5px);
}

.icon-container img {
    width: 55px;
    height: 55px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tip-text {
    font-size: 14px;
    color: #fff;
    margin-bottom: 40px;
}



.centered-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    margin-top: 80px;
    padding: 0 20px;
}

.centered-content h2 {
    font-size: 28px;
    color: #333;
    margin-top: -55px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.centered-content h3 {
    font-size: 48px;
    color: rgba(126, 223, 212, 0.3);
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    letter-spacing: 4px;
}

.navbar-right {
    margin-right: 35px;
}


.fundoc {
    position: absolute;
    margin-top: -460px;
    z-index: -9999999;
    opacity: 0.1;
}

.fundoc img {
    width: 500px;
}

.hea {
    padding: 40px 20px;
    /* Espaçamento interno */
    text-align: center;
    color: #fff;
    /* Cor do texto */
    background-image: url('https://iili.io/JXTrAFf.png');
    /* Imagem de fundo */
    background-size: cover;
    /* Ajusta o tamanho da imagem para cobrir todo o elemento */
    background-repeat: no-repeat;
    background-color: #fff;
    height: 300px;
    margin-top: 92px;
    background-position: center calc(50% - 100px);
    margin-bottom: -25px;
}


.navbar {
    overflow: hidden;
    background-color: #fff;
    /* Cor de fundo do menu */
    position: fixed;
    /* Torna o menu fixo */
    top: 0;
    /* Coloca o menu no topo da página */
    width: 100%;
    /* Largura total */
    z-index: 1000;
    margin-top: 38px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    /* Espaçamento interno */
    text-decoration: none;
    /* Remove a sublinhado padrão */
    color: #000;
    /* Cor do texto */
    font-size: 20px;
    /* Tamanho da fonte */
}




.navbar-button {
    background-color: #fff;
    /* Cor de fundo do botão */
    color: #4CAF50;
    /* Cor do texto do botão */
    border: 1px solid #4CAF50;
    /* Remove a borda do botão */
    padding: 10px;
    /* Espaçamento interno */
    font-size: 16px;
    /* Tamanho da fonte */
    cursor: pointer;
    /* Muda o cursor ao passar sobre o botão */
    text-decoration: none;
    margin-top: 20px;
    border-radius: 5px;
    text-transform: uppercase;
    -webkit-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.navbar-button:hover {
    background-color: #45a049;
    /* Cor de fundo do botão ao passar o mouse */
    color: #fff;
}


.container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    padding-top: 50px;
}

.container2 h3 {
    color: #000;
    display: block;
    margin-right: 50px;
    border-bottom: 2px solid #000;
    padding-bottom: 17px;
    margin-top: 100px
}

.box {
    width: 400px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    font-size: 14px;
    padding: 35px;
    text-align: justify;
    min-height: 220px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.box img {
    width: 55px;
    margin-bottom: 15px;
}

.box2 img {
    width: 55px;
    margin-bottom: 15px;
}

.box2 {
    width: 400px;
    background: linear-gradient(135deg, #fffef0 0%, #fffacd 100%);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 15px;
    font-size: 14px;
    padding: 35px;
    text-align: justify;
    min-height: 220px;
    transition: all 0.3s ease;
    border: 1px solid #f0e68c;
}

.box2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.faq-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: #fff;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.faq-answer {
    padding: 0 20px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

.toggle-btn {
    font-weight: 500;
    font-size: 22px;
    color: #7edfd4;
    transition: transform 0.3s ease;
}

.faq-answer.show-answer {
    display: block;
    max-height: 1000px;
    padding-bottom: 15px;
}

h6 {
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
    border-bottom: 3px solid #7edfd4;
    padding-bottom: 15px;
    display: inline-block;
    color: #333;
}

.containeras {
    max-width: 750px;
    margin: 50px auto;
    text-align: center;
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.containeras p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

.containeras #consumed {
    font-size: 24px;
    font-weight: 700;
    color: #7edfd4;
}

h1 {
    color: #333;
    font-weight: 700;
}

p {
    color: #555;
    line-height: 1.6;
}

.mostra {
    background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%);
    width: 100%;
    padding: 20px 0;
}


/* Footer */
footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    text-align: center;
}

.footer-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column.logo {
    flex: 1;
    min-width: 300px;
}

.footer-column.logo img {
    max-width: 100%;
    height: auto;
}

.footer-column.links {
    flex: 0.3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 150px;
}

.footer-column.links a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.footer-column.links a:hover {
    color: #7edfd4;
    transform: translateX(5px);
}

.credit-line {
    background: linear-gradient(90deg, #7edfd4 0%, #5cc4b9 100%);
    margin-top: 0;
    font-size: 14px;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Adicionando estilo para os contêineres de coluna */
.alunos {
    display: flex;
    font-size: 12px;
}

.column {
    flex: 1;
    margin: 0 10px;
}

/* Estilo para as listas de alunos */
.alunos ul {
    list-style-type: none;
    padding: 0;
}

/* Estilo para o modal */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Estilo para o balão */
#balao {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 600px;
}

/* Estilo para o botão de fechar */
#fechar {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: #000;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
}

.center {
    display: flex;
    justify-content: center;
}

/* ========================================
   ESTILOS DA CALCULADORA MELHORADA
   ======================================== */

/* Seletor de Bandeira Tarifária */
.bandeira-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #7edfd4;
}

.bandeira-selector label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.bandeira-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #7edfd4;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.bandeira-selector select:hover {
    border-color: #5cc4b9;
    box-shadow: 0 2px 8px rgba(126, 223, 212, 0.3);
}

/* Select de aparelhos com grupos */
select optgroup {
    font-weight: bold;
    color: #333;
    background: #f0f0f0;
}

select option {
    padding: 8px;
}

/* Input Row - Horas e Dias lado a lado */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: calc(100% - 18px);
}

/* Grupo de Botões */
.button-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-primary {
    flex: 2;
    background: linear-gradient(135deg, #7edfd4 0%, #5cc4b9 100%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 223, 212, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5cc4b9 0%, #4ab3a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 223, 212, 0.5);
}

.btn-secondary {
    flex: 1;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Resultados Estilizados */
#result {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #7edfd4;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.result-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.result-label {
    color: #666;
    font-size: 14px;
}

.result-value {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.result-value.highlight {
    color: #7edfd4;
    font-size: 18px;
}

.result-value.highlight-money {
    color: #28a745;
    font-size: 20px;
}

.result-divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 10px 0;
}

.eco-item {
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
}

/* Dicas de Economia */
#dicas-economia {
    display: none;
}

.dicas-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.dicas-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.dicas-box li {
    margin: 8px 0;
    color: #e65100;
}

/* Comparação LED */
.led-comparison {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 10px;
}

/* Comparativo Box */
.comparativo-box {
    display: none;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border: 2px solid #3f51b5;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.comparativo-box h4 {
    margin-top: 0;
    color: #303f9f;
}

.comparativo-box ol {
    padding-left: 25px;
}

.comparativo-box li {
    margin: 10px 0;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.porcentagem {
    color: #666;
    font-size: 12px;
}

/* Seção de Histórico Melhorada */
.historico-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.historico-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.historico-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid #7edfd4;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background: #7edfd4;
    color: white;
}

.btn-small.btn-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-small.btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* Lista de Histórico */
#historyList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #7edfd4;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.history-item-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.history-item-content strong {
    min-width: 150px;
}

.history-details {
    color: #666;
    font-size: 12px;
}

.history-consumo {
    color: #7edfd4;
    font-weight: 500;
}

.history-cost {
    color: #28a745;
    font-weight: bold;
}

.history-date {
    color: #999;
    font-size: 11px;
}

.btn-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
}

/* Seção Total */
.total-section {
    background: linear-gradient(135deg, #7edfd4 0%, #5cc4b9 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.total-section p {
    margin: 0;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-consumo {
    font-size: 13px;
    opacity: 0.9;
    margin-left: 10px;
}

#totalCost {
    font-size: 20px;
    color: white;
}

/* Animação do Loader */
.loader {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7edfd4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
    }

    .historico-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .historico-actions {
        width: 100%;
        justify-content: space-between;
    }

    .history-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========================================
   CONSTRUTOR DE CONTA MENSAL
   ======================================== */

.conta-mensal-container {
    margin-top: 30px;
}

.conta-intro {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
}

.conta-intro p {
    margin: 0;
    color: #2e7d32;
    font-size: 15px;
}

/* Botão de Aparelhos Comuns */
.aparelhos-comuns {
    margin-bottom: 20px;
}

.btn-aparelhos-comuns {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-aparelhos-comuns:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Formulário da Conta */
.conta-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.conta-form h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
}

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

.form-group {
    flex: 1;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.form-group input,
.form-group select {
    width: calc(100% - 18px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    cursor: pointer;
}

.btn-add-item {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-item:hover {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
}

/* Lista de Itens da Conta */
.conta-itens {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.conta-itens h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

.conta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #7edfd4;
    transition: all 0.2s ease;
}

.conta-item:hover {
    background: #e9ecef;
}

.conta-item-info {
    flex: 2;
}

.conta-item-info strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.conta-item-details {
    font-size: 12px;
    color: #666;
}

.conta-item-values {
    flex: 1;
    text-align: right;
}

.conta-item-consumo {
    display: block;
    font-size: 12px;
    color: #7edfd4;
}

.conta-item-custo {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}

.btn-remove-item {
    width: 28px;
    height: 28px;
    padding: 0;
    background: white;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    background: #dc3545;
    color: white;
}

/* Taxas Adicionais */
.taxas-adicionais {
    background: #fff3e0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #ffcc80;
}

.taxas-adicionais h4 {
    margin: 0 0 15px;
    color: #e65100;
    font-size: 16px;
}

/* Resumo da Fatura */
.conta-resumo {
    margin-bottom: 20px;
}

.fatura-container {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 2px solid #7edfd4;
    border-radius: 12px;
    overflow: hidden;
}

.fatura-header {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.fatura-header h3 {
    margin: 0;
    font-size: 20px;
}

.fatura-periodo {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.fatura-section {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.fatura-section h4 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fatura-linha {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.fatura-linha.bandeira-amarela {
    color: #f9a825;
}

.fatura-linha.bandeira-vermelha1,
.fatura-linha.bandeira-vermelha2 {
    color: #e53935;
}

.fatura-total {
    background: linear-gradient(135deg, #7edfd4 0%, #5cc4b9 100%);
    padding: 20px;
}

.fatura-total .total {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.valor-total {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.fatura-economia {
    padding: 20px;
    background: #fffde7;
}

.economia-solar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff59d 0%, #ffee58 100%);
    border-radius: 8px;
}

.valor-economia {
    font-size: 20px;
    font-weight: bold;
    color: #f57f17;
}

.economia-destaque {
    text-align: center;
    margin: 15px 0 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.fatura-info {
    padding: 15px 20px;
    background: #f5f5f5;
}

.fatura-info p {
    margin: 5px 0;
    color: #999;
}

.fatura-empty {
    padding: 40px;
    text-align: center;
    color: #999;
}

/* Ações da Conta */
.conta-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.conta-actions button {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-print {
    background: #2196f3;
    color: white;
    border: none;
}

.btn-print:hover {
    background: #1976d2;
}

.btn-save {
    background: #4caf50;
    color: white;
    border: none;
}

.btn-save:hover {
    background: #388e3c;
}

.btn-clear {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-clear:hover {
    background: #dc3545;
    color: white;
}

/* Responsividade da Conta Mensal */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group.flex-2 {
        flex: 1;
    }

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

    .conta-item-values {
        text-align: left;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .conta-actions {
        flex-direction: column;
    }

    .economia-solar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fatura-linha {
        flex-direction: column;
        gap: 5px;
    }
}