/* Market Explorer Styles */
.market-nav-btn.active {
    background: #00ff88 !important;
    color: #000 !important;
}

.commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.commodity-card {
    background: #1a1a2e;
    border: 1px solid #00ff88;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.commodity-card:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.commodity-card.illegal {
    border-color: #ff4444;
}

.commodity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.commodity-name {
    font-weight: bold;
    color: #00ff88;
    font-size: 16px;
}

.illegal-badge {
    background: #ff4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.commodity-category {
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.commodity-prices {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 5px 0;
}

.price-buy {
    color: #ff8844;
}

.price-sell {
    color: #00ff88;
}

.commodity-profit {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #333;
    color: #00ff88;
    font-weight: bold;
}

.prices-table-container {
    max-height: 600px;
    overflow-y: auto;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    color: #00ff88;
}

.prices-table th {
    background: #1a1a2e;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #00ff88;
    position: sticky;
    top: 0;
}

.prices-table td {
    padding: 8px;
    border-bottom: 1px solid #333;
}

.prices-table tr:hover {
    background: rgba(0, 255, 136, 0.1);
}

.terminal-name {
    font-weight: bold;
}

.price {
    text-align: right;
}

.price-na {
    color: #666;
}

.route-card {
    background: #1a1a2e;
    border: 1px solid #00ff88;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.route-rank {
    background: #00ff88;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.route-commodity {
    color: #00ff88;
    font-weight: bold;
    font-size: 16px;
}

.route-profit {
    color: #00ff88;
    font-weight: bold;
    font-size: 18px;
}

.route-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.route-arrow {
    color: #00ff88;
    font-size: 24px;
    padding: 0 15px;
}

.route-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.route-detail {
    display: flex;
    flex-direction: column;
}

.route-detail .label {
    color: #888;
    font-size: 12px;
}

.route-detail .value {
    color: #00ff88;
    font-weight: bold;
}

.route-detail .value.profit {
    color: #00ff88;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.vehicle-card {
    background: #1a1a2e;
    border: 1px solid #00ff88;
    border-radius: 5px;
    padding: 15px;
}

.vehicle-name {
    color: #00ff88;
    font-weight: bold;
    font-size: 14px;
}

.vehicle-cargo {
    color: #00ff88;
    font-size: 20px;
    text-align: center;
    margin: 10px 0;
}

.market-empty {
    text-align: center;
    padding: 40px;
    color: #888;
}

.market-error {
    text-align: center;
    padding: 40px;
    color: #ff4444;
}

.calculator-form {
    background: #1a1a2e;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #00ff88;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background: #0a0a1a;
    border: 1px solid #00ff88;
    color: #00ff88;
    border-radius: 5px;
}
