:root {
    --primary-color: #005a9c;
    --secondary-color: #fecc02;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#profit-calculator-container {
    max-width: 600px;
}

.profit-header {
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profit-header h1 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profit-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.calculator-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
    border: none;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 90, 156, 0.25);
}

.btn-calculate {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-calculate:hover:not(:disabled) {
    background-color: #004d87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-calculate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.profit-positive {
    color: var(--success-color);
}

.profit-negative {
    color: var(--danger-color);
}

.info-box {
    background-color: #e7f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.info-box h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-item {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
    color: #555;
}

.metric-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.flag-icon {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.formula-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

.formula-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .result-value {
        font-size: 1.5rem;
    }
}