/* Estilos para la pantalla de artefactos */
.appliances-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}



.appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.appliance-card {
    background-color:var(--light-gray);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
   /* box-shadow: 0 3px 10px rgba(0,0,0,0.05); */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.appliance-card:hover {
    transform: translateY(-5px);
   /* box-shadow: 0 8px 20px rgba(0,0,0,0.1); */
}

.appliance-card .add-button {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: var(--naturgy-blue);
    color: white;
    border: none;
    padding: 8px 0;
    transition: bottom 0.3s ease;
    font-weight: 600;
}

.appliance-card:hover .add-button {
    bottom: 0;
}

.appliance-icon {
    font-size: 36px;
    color: var(--naturgy-blue);
    margin-bottom: 10px;
}

.appliance-name {
    color: var(--naturgy-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.appliance-items-container {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 50px;
    /*box-shadow: 0 3px 10px rgba(0,0,0,0.05);*/
    margin-top: 30px;
}

.appliance-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.appliance-list-item:hover {
    background-color: var(--light-gray);
}

.appliance-list-item:last-child {
    border-bottom: none;
}

.appliance-info {
    flex: 1;
}

.appliance-list-name {
    color: var(--naturgy-blue);
    font-weight: 600;
    margin-bottom: 3px;
}

.appliance-list-detail {
    color: #777;
    font-size: 0.85rem;
}

.appliance-list-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.badge-item {
    font-size: 1.15rem;
    padding: 10px 20px;
    border-radius: 12px;
    background-color:var(--light-gray);
    color: var(--naturgy-orange);
}

.consumption-value {
    color: var(--naturgy-orange);
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 10px;
    background-color: rgba(243, 112, 33, 0.1);
    font-size: 13px;
    letter-spacing: -1px;
    margin: 0 15px;
    white-space: nowrap;
}

.remove-btn {
    color: var(--naturgy-blue);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 5px;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.empty-list {
    text-align: center;
    padding: 30px;
    color: #777;
    display: flex;
    justify-content: center;
}

.empty-list i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.people-info {
    display: flex;
    align-items: center;
    color: var(--naturgy-blue);
    font-weight: 600;
    justify-content: center;
}

.people-info i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.cancel-action{
    background-color: #CCC;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 15px;
    font-weight: 600;
    font-size: small;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background-color:var(--naturgy-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cancel-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.action-button {
    background-color: var(--naturgy-orange);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 15px;
    font-weight: 600;
    font-size: small;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #e56012;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.action-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Modal de configuración */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--naturgy-blue);
    color: white;
    padding: 15px 25px;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 10px 10px 25px;
    flex-wrap: nowrap;
}


.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--naturgy-orange);
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.selected-value {
    color: var(--naturgy-blue);
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
}

.usage-options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.usage-button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usage-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
}

.usage-button.active {
    background-color: var(--naturgy-orange);
    color: white;
    border-color: var(--naturgy-orange);
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
}

/* Estilos para los nuevos botones de propósito de la caldera */
.purpose-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.purpose-button {
    flex: 1;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 120px;
    fill: var(--naturgy-blue);
    color: var(--naturgy-blue);
    font-size: 12px;
}

.purpose-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
}

.purpose-button.active {
    background-color: var(--naturgy-blue);
    color: white;
    border-color: var(--naturgy-blue);
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
    fill: #fff;
    color:  #fff;
}

.purpose-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Ya no necesitamos estos estilos para el slider de propósito ya que se reemplazó con botones */
/*
.purpose-options {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.purpose-button {
    flex: 1;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purpose-button:hover {
    background-color: #f5f5f5;
}

.purpose-button.active {
    background-color: var(--naturgy-blue);
    color: white;
    border-color: var(--naturgy-blue);
}

.purpose-button i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}
*/

.form-section {
    margin-bottom: 25px;
}

.form-section h5 {
    color: var(--naturgy-blue);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .appliances-container {
        padding:0px;
    }
    
    .appliance-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .appliance-icon {
        font-size: 30px;
    }
    
    .appliance-items-container {
        padding: 15px;
    }
    
    .usage-options {
        flex-wrap: wrap;
    }
    
    .usage-button {
        flex: 1 0 45%;
        margin-bottom: 10px;
    }
    
    .purpose-buttons {
        flex-direction: column;
    }
    
    .purpose-button {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 12px;
    }
    
    .purpose-button i {
        margin-bottom: 0;
    }
    
    .appliance-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .consumption-value {
        margin: 10px 0;
    }
    
    .remove-btn {
        align-self: flex-end;
        margin-top: -30px;
    }
}

/* Estilos para sliders coloreados */
.colored-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #3498db, #f1c40f, #e74c3c);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    margin: 20px 0;
}

.colored-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--naturgy-orange);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.colored-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--naturgy-orange);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-markers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    color: #666;
    font-size: 0.7rem;
    margin-top: 0px;
}

.selected-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--naturgy-orange);
    margin: 5px 0;
}

/* Estilos para botones de uso */
.usage-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.usage-button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    background: white;
    border: 1px solid #ddd;
    font-weight: 500;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usage-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.usage-button.active {
    background-color: var(--naturgy-orange);
    color: white;
    border-color: var(--naturgy-orange);
    box-shadow: 0 4px 10px rgba(243, 112, 33, 0.2);
}