/**
 * Scrap Metal Calculator Styles
 */

.scrap-metal-calculator-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.spot-price-display {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 500;
}

.spot-price-display .spot-amount {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 10px;
}

.spot-price-display .spot-change {
    color: #28a745;
    font-size: 20px;
    font-weight: 600;
}

.calculator-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
}

.calculator-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.calculator-body {
    padding: 30px;
    background: #f8f9fa;
}

.calculator-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}

.calculator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-field label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.calc-select,
.calc-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    transition: border-color 0.3s ease;
}

.calc-select:focus,
.calc-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.calc-input::placeholder {
    color: #adb5bd;
}

.calc-button {
    width: 100%;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.calc-button:active {
    transform: translateY(0);
}

.calculator-result {
    background: #fff;
    padding: 25px 30px;
    border-top: 3px solid #28a745;
}

.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.result-amount {
    font-size: 32px;
    color: #28a745;
    font-weight: 700;
}

.calculator-error {
    background: #dc3545;
    color: #fff;
    padding: 15px 30px;
    text-align: center;
    font-size: 14px;
}

/* Nice Select Overrides */
.nice-select {
    height: auto;
    line-height: normal;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.nice-select:hover,
.nice-select:focus,
.nice-select.open {
    border-color: #2a5298;
}

.nice-select.open .list {
    width: 100%;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nice-select .list {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
}

.nice-select .option {
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-color: #2a5298;
    color: #fff;
}

.nice-select .option.selected {
    font-weight: 600;
}

.nice-select:after {
    border-bottom: 2px solid #495057;
    border-right: 2px solid #495057;
    height: 8px;
    width: 8px;
    right: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .calculator-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scrap-metal-calculator-wrapper {
        margin: 20px 10px;
    }

    .spot-price-display {
        font-size: 16px;
    }

    .spot-price-display .spot-amount {
        font-size: 20px;
    }

    .spot-price-display .spot-change {
        font-size: 18px;
    }

    .calculator-header {
        font-size: 20px;
        padding: 15px;
    }

    .calculator-body {
        padding: 20px;
    }

    .calculator-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .calculator-header {
        font-size: 18px;
    }

    .calculator-body {
        padding: 15px;
    }

    .result-label {
        font-size: 16px;
    }

    .result-amount {
        font-size: 24px;
    }
}
