/* Modern Container Module Styles */

.container-module {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.container-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.container-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.container-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.container-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.container-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.container-table tr:hover td {
    background-color: #f8f9fa;
}

.container-table tr:last-child td {
    border-bottom: none;
}

/* Status colors */
.status-full {
    background-color: #ffebee !important;
    color: #c62828;
    font-weight: 600;
}

.status-almost-full {
    background-color: #fff3e0 !important;
    color: #ef6c00;
    font-weight: 600;
}

.status-available {
    background-color: #e8f5e8 !important;
    color: #2e7d32;
    font-weight: 600;
}

/* Container icons */
.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.status-icon:hover {
    transform: scale(1.1);
}

/* ETA links */
.eta-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.eta-link:hover {
    color: #1976D2;
    background-color: #e3f2fd;
    text-decoration: none;
}

/* Legend section */
.container-legend {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.legend-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    gap: 10px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.full {
    background-color: #ffcdd2;
}

.legend-color.almost-full {
    background-color: #ffe0b2;
}

.legend-color.available {
    background-color: #c8e6c9;
}

.legend-text {
    color: #666;
    flex: 1;
}

.legend-icons {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.legend-icon-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8em;
    gap: 8px;
}

.legend-icon-item:last-child {
    margin-bottom: 0;
}

.legend-icon-item img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container-header {
        padding: 12px 15px;
    }
    
    .container-header h3 {
        font-size: 1.1em;
    }
    
    .container-table th,
    .container-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .container-legend {
        padding: 12px 15px;
    }
    
    .legend-item,
    .legend-icon-item {
        font-size: 0.8em;
    }
    
    .status-icon {
        width: 20px;
        height: 20px;
    }
}

/* Animation for new data */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-table tr {
    animation: slideIn 0.3s ease-out;
}
