/* Lightning Voltage Mitigation Calculator Styles */

.lightning-form {
    max-width: 100%;
    margin-bottom: 2rem;
}

.electrodes-container {
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.5rem;
}

.electrode-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.electrode-row input,
.electrode-row select {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.electrode-row button.delete-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.electrode-row button.delete-button:hover {
    background-color: #ff3333;
}

.buttons-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.chart-container {
    margin: 2rem 0;
    border: none;
    padding: 1rem;
    background-color: transparent;
}

#contourPlot {
    width: 100%;
    height: 500px;
    position: relative;
}

.status-bar {
    margin-top: 10px;
    padding: 8px;
    background-color: transparent;
    border: none;
    font-family: monospace;
    color: #333;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 1.2rem;
    color: #666;
}

/* Results container styling */
.results-container {
    margin-top: 150px;  /* Increased from 50px to create more space */
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    clear: both;
}

.results {
    background-color: transparent;
    padding: 20px 0;
}

.result-section {
    margin-bottom: 20px;
}

.result-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.result-value.highlight {
    font-weight: bold;
    color: #e63946;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .electrode-row {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    
    .electrode-row input,
    .electrode-row select {
        margin-bottom: 5px;
    }
    
    .buttons-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .buttons-row button {
        width: 100%;
    }
    
    #contourPlot {
        height: 300px;
    }
}