/* selspy-calculator.css */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.calculator {
    background: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid #e3e3e3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.calculator h1 {
    text-align: center;
    color: #007bff;
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
}

.btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.results {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    border: 1px solid #e3e3e3;
}

.results div {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.results div strong {
    font-weight: bold;
    color: #007bff;
}

.save-btn {
    margin-top: 25px;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.save-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#variable-costs-container, #fixed-costs-container {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

#variable-costs-container h3, #fixed-costs-container h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #555;
    font-weight: bold;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cost-item input[type="text"], .cost-item input[type="number"] {
    flex: 1;
    margin-right: 10px;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.cost-item button {
    padding: 8px 12px;
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cost-item button:hover {
    background-color: #c82333;
}
