/* Custom styles for ShipUniverse Fuel Cost Calculator */

/* Map container styling */
#mapContainer, #fleetMapContainer {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.ship-route-legend {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    color: #333;
    width: 150px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.map-info-box {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    max-width: 200px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.info-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.close-info-button {
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    padding: 0 5px;
    line-height: 1;
    font-weight: bold;
}

.map-controls {
    margin-bottom: 1rem;
}

.map-marker-popup {
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
}

.map-marker-popup-total {
    min-width: 200px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Header styling */
header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Card styling */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    background-color: #fff;
}

.card-header {
    font-weight: 500;
    background-color: #f8f9fa;
    color: #333;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

.table th {
    font-weight: 600;
}

/* Results section styling */
#singleShipResults, #fleetResults {
    transition: all 0.3s ease;
}

/* Chart container */
canvas {
    max-height: 300px;
}

/* Fleet table styling */
.ship-name, .ship-distance, .ship-fuel-consumption,
.ship-fuel-price, .ship-speed, .ship-port-delays {
    min-width: 80px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .table-responsive {
        margin-bottom: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Button styling */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    margin-right: 0.5rem;
}

/* Animation for results appearance */
.card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.d-none {
    opacity: 0;
    transform: translateY(20px);
}
