/* Stock Profit Calculator Specific Styles */

/* Form styles */
.calculator-form {
    padding: 0;
}

.form-group {
    margin-bottom: 16px;
    background-color: white;
    border-radius: 4px;
    padding: 0;
    border: none;
    box-shadow: none;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    transition: all 0.2s;
    color: #333;
}

.form-input:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.form-input.invalid {
    border-color: #dc2626;
}

.form-input.invalid:hover, .form-input.invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Number input specific styles */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button styles */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.calculate-button, .reset-button {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.calculate-button {
    background-color: #003049;
    color: white;
    border: none;
}

.calculate-button:hover {
    background-color: #00436a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-button {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.reset-button:hover {
    background-color: #f5f5f5;
    border-color: #bfdbfe;
}

/* Results section */
.results {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
}

.results-header {
    background: none;
    padding: 0;
    border: none;
    margin-bottom: 16px;
}

.results-title {
    font-size: 18px;
    color: #003049;
    margin: 0;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #bae6fd;
}

.results-content {
    border: none;
}

.results-section {
    padding: 0;
    border: none;
    margin-bottom: 16px;
}

.results-section:last-child {
    margin-bottom: 0;
}

.results-section-title {
    color: #003049;
    font-weight: 500;
    margin-bottom: 8px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0;
}

.results-item {
    color: #003049;
    font-size: 16px;
}

.results-value {
    font-weight: 500;
    font-size: 16px;
    display: block;
    margin-top: 4px;
}

/* Profit/Loss color coding */
.results-value.profit {
    color: #16a34a;
}

.results-value.loss {
    color: #dc2626;
}

/* Media queries */
@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .button-group {
        flex-direction: column;
    }
}
