.pnl-calculator-app {
    width: 100%;
    height: 100%;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    padding: 8px;
    overflow-y: auto;
}

.market-selector {
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px inset #c0c0c0;
}

.market-selector label {
    font-weight: bold;
    margin-right: 8px;
}

.market-selector select {
    background: white;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 100px;
}

.input-section {
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px inset #c0c0c0;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    min-width: 100px;
    font-weight: bold;
    text-align: right;
}

.input-group input,
.input-group select {
    flex: 1;
    background: white;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-height: 16px;
}

.input-group input:focus,
.input-group select:focus {
    outline: 1px dotted #000;
    outline-offset: -2px;
}

.calculate-section {
    margin-bottom: 12px;
    text-align: center;
    padding: 8px;
}

.calculate-btn,
.clear-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
    padding: 4px 16px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin: 0 4px;
    min-height: 24px;
}

.calculate-btn:hover,
.clear-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.calculate-btn:active,
.clear-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0 0%, #dfdfdf 100%);
}

.calculate-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    color: #000;
}

.clear-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    color: #000;
}

.results-section {
    margin-bottom: 12px;
    padding: 8px;
    background: white;
    border: 1px inset #c0c0c0;
}

.results-section h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: bold;
    color: #000080;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding: 2px 0;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item label {
    font-weight: bold;
    color: #000;
}

.result-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 2px 4px;
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
    min-width: 80px;
    text-align: right;
}

.result-value.profit {
    color: #008000;
    background: #e8f5e8;
}

.result-value.loss {
    color: #800000;
    background: #f5e8e8;
}

.info-section {
    padding: 8px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px inset #c0c0c0;
}

.market-info h4 {
    margin: 0 0 8px 0;
    font-size: 11px;
    font-weight: bold;
    color: #000080;
}

.market-info p {
    margin: 2px 0;
    font-size: 10px;
    color: #000;
    line-height: 1.3;
}

/* Crypto-specific styling */
.crypto-only {
    background: #ffffcc;
    border-radius: 2px;
    padding: 4px;
    margin: 4px 0;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group label {
        text-align: left;
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    
    .result-value {
        text-align: center;
    }
}

/* Scrollbar styling for Windows 95 look */
.pnl-calculator-app::-webkit-scrollbar {
    width: 16px;
}

.pnl-calculator-app::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.pnl-calculator-app::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
}

.pnl-calculator-app::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.pnl-calculator-app::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
    height: 16px;
}

.pnl-calculator-app::-webkit-scrollbar-button:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}