/* CSS Styles for Electrical Engineering Calculator */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #34495e;
    margin-top: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.input-group {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.operation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.operation-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.operation-buttons button:hover {
    background-color: #2980b9;
}

.result-section, .calculation-section, .history-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 5px solid #3498db;
}

#result-display, #history-display {
    min-height: 100px;
    padding: 15px;
    background-color: #e8f4fc;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

#result-display {
    background-color: #e8f4fc;
}

#history-display {
    background-color: #f8f9fa;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    margin: 5px 0;
    background-color: white;
    border-radius: 3px;
    border-left: 3px solid #3498db;
}

.clear-history-btn, #clear-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.clear-history-btn:hover, #clear-btn:hover {
    background-color: #c0392b;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .operation-buttons {
        flex-direction: column;
    }
    
    .operation-buttons button {
        width: 100%;
    }
    
    input[type="number"] {
        font-size: 16px; /* Make inputs more touch-friendly */
    }
}