#profit-calculator-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.pc-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pc-control-group {
    flex: 1;
    min-width: 180px;
}

.pc-control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

#pc-instrument {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- FIXED SLIDER STYLES --- */
#pc-lot-size {
    -webkit-appearance: none; /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 8px; /* Specified height */
    background: #d3d3d3; /* Grey background */
    outline: none; /* Remove outline */
    border-radius: 5px;
    border: none; /* Remove border that was making it look like a box */
    padding: 0; /* Remove padding */
    margin-top: 10px;
}

/* Slider Handle (Chrome, Safari, Opera) */
#pc-lot-size::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: #0073e6; /* Blue handle */
    cursor: pointer;
}

/* Slider Handle (Firefox) */
#pc-lot-size::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073e6;
    cursor: pointer;
}
/* --------------------------- */

.pc-price-display {
    background-color: #e9f5ff;
    border-left: 4px solid #0073e6;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

#pc-current-price {
    color: #005bb5;
}

.pc-results-table {
    width: 100%;
    border-collapse: collapse;
}

.pc-results-table th, .pc-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pc-results-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #444;
}

.pc-results-table td:nth-child(3) {
    font-weight: 700;
    color: #008000;
}

.pc-error {
    color: #D8000C;
    background-color: #FFD2D2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.pc-disclaimer {
    font-size: 0.8em;
    color: #888;
    margin-top: 15px;
    text-align: center;
}
.pc-disclaimer a {
    color: #555;
}