:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.input-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.fd-inputs {
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.fd-row input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.calculate-btn {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
}

.fd-list {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 50px;
}

.fd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: #f8f9fa;
    margin: 5px 0;
    border-radius: 4px;
}

.fd-item button {
    background-color: yellow;
    padding: 5px 10px;
}

.results-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.result-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .results-section {
        grid-template-columns: 1fr;
    }
}