/* style.css */
#portType, #portTypeBadge {
    display: none !important;
}

.leaflet-control-fullscreen {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-control-fullscreen:hover {
    background-color: #f4f4f4;
}

.leaflet-container:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
}

/* A4 Container Styles */
.olt-container-a4 {
    width: 250mm; /* A4 width */
    min-height: 280mm; /* A4 height */
    margin: 0 auto;
    padding: 15px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Slot Container Styles - Vertical Layout */
.slot-container {
    width: 100%;
    max-width: 220mm;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slot-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    height: auto;
    margin-bottom: 20px;
}

.slot-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
}

/* Port Columns - Horizontal Layout */
.port-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.port-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 120px;
}

.port-item {
    display: flex;
    align-items: center;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.port-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.port-circle {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.port-used .port-circle {
    background-color: #1eebeb;
    color: white;
}

.port-unused .port-circle {
    background-color: #5e6e62;
    color: white;
}

.port-RFS .port-circle {
    background-color: #28a745;
    color: white;
}

.port-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.port-label {
    font-weight: 500;
    margin-right: 10px;
}

/* Badge Styles */
.badge-merk {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    background-color: #17a2b8;
    margin-left: 0.5rem;
}

.fdt-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 150px;
    text-align: center;
}

.fdt-badge.RFS {
    background-color: #28a745;
}

.fdt-badge.Construction {
    background-color: #ffc107;
    color: #212529;
}

.fdt-badge.Design {
    background-color: #2b66cd;
}

.fdt-badge.Unused {
    background-color: #6c757d;
}

/* Select2 Customization */
.select2-container--disabled .select2-selection {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.select2-results__option--loading {
    color: #6c757d;
    font-style: italic;
}

/* Card Styles */
#summaryContainer .card {
    height: 100%;
    transition: transform 0.2s;
}

#summaryContainer .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#summaryContainer .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#summaryContainer .card-text {
    font-weight: bold;
    margin-bottom: 0;
}

/* Port Status Badges */
.port-status-badge {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    color: white;
    font-size: 0.65rem;
}

.card-header.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.port-status-badge.RFS {
    background-color: #28a745;
}

.port-status-badge.Construction {
    background-color: #ffc107;
    color: #212529;
}

.port-status-badge.Planning {
    background-color: #6f42c1;
}

.port-status-badge.Design {
    background-color: #2b66cd;
}

.port-status-badge.Unused {
    background-color: #6c757d;
}

.port-status-badge.Used {
    background-color: #dc3545;
}

/* Rectangular Port Indicator Styles */
.port-rect {
    width: 20px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
    background-color: #e9ecef; /* Default color */
}

/* Status Colors */
.port-rect.port-used {
    background-color: #dc3545; /* Red for used ports */
}

.port-rect.port-unused {
    background-color: #787d7a; 
}

.port-rect.RFS {
    background-color: #28a745; /* Green for RFS */
}

.port-rect.Construction {
    background-color: #ffc107; /* Yellow for Construction */
}

.port-rect.Planning {
    background-color: #6f42c1; /* Blue for Design */
}

.port-rect.Design {
    background-color: #2b66cd; /* Blue for Design */
}

/* Layout Styles */
.d-flex.flex-column.ms-3 {
    width: auto;
    flex: 1;
    min-width: 180px;
}

/* Map Styles */
#oltMap {
    height: 200px;
}

/* Select2 Custom Styles */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    border: 1px solid #ced4da !important;
    height: 38px !important;
    padding: 6px 12px !important;
}

.select2-selection__arrow {
    height: 36px !important;
}

.select2-selection, .select2-dropdown {
    border-radius: 4px !important;
}

@media (min-width: 768px) {
    .col-md-5 {
        max-width: 450px;
    }
}