* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.nav-bar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: white;
    color: #2c3e50;
}

.login-btn {
    background-color: #27ae60;
    color: white;
}

.login-btn:hover {
    background-color: #229954;
    color: white;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
}

.logout-btn:hover {
    background-color: #c0392b;
    color: white;
}

.nav-btn.active {
    background-color: #3498db;
    border-color: #3498db;
}

/* Screen Management */
.screen {
    display: none;
    min-height: calc(100vh - 80px);
}

.screen.active {
    display: block;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100vh - 60px);
}

.floor-selector {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.floor-selector h2 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.floor-buttons {
    display: flex;
    gap: 1rem;
}

.floor-btn {
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.floor-btn:hover {
    background-color: #d5dbdb;
}

.floor-btn.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.floor-map-container {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#current-floor-title {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Table Map Styles */
.table-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background-color: #ecf0f1;
    border-radius: 8px;
    min-height: 400px;
    flex: 1;
    overflow-y: auto;
}

.table-map.dashboard-map-view {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    min-height: 0;
    overflow: auto;
}

.table {
    background-color: white;
    border: 3px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.table:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.table.occupied {
    background-color: #e74c3c;
    border-color: #c0392b;
    color: white;
}

.table.occupied::after {
    content: '✕';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.table-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.table-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.table-capacity {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
    color: #7f8c8d;
}

/* Admin Styles */
.admin-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
}

.admin-header {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}


.admin-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-selection-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-width: 600px;
}

.map-selection-section h3 {
    color: #495057;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.map-selection-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.map-dropdown {
    flex: 1;
    min-width: 250px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
}

.map-dropdown:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.load-map-btn, .refresh-btn {
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.load-map-btn {
    background: #3498db;
}

.load-map-btn:hover:not(:disabled) {
    background: #2980b9;
}

.load-map-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.refresh-btn {
    background: #27ae60;
}

.refresh-btn:hover {
    background: #229954;
}

.admin-mode {
    display: block;
}

.dashboard-table-component {
    transition: all 0.3s ease;
}

.loading-placeholder,
.no-map-placeholder,
.error-placeholder {
    width: 100%;
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.no-map-placeholder h3,
.error-placeholder h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* UPDATED --- Map Generator Layout --- */
.map-generator-container {
    display: grid;
    /* Changed from 3 columns to 2 */
    grid-template-columns: 250px 1fr; 
    gap: 1rem;
    height: calc(100vh - 220px);
}

.map-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto; /* Add scroll for smaller screens */
}

.map-main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

/* Upload & Tools (Left Sidebar) */
.floor-settings, .upload-section, .component-tools, .component-properties {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.floor-settings {
    margin-bottom: 1rem;
}

.floor-settings h3, .upload-section h3, .component-tools h3, .component-properties h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-hint {
    display: block;
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #3498db;
    background-color: #e8f4fd;
}

.upload-placeholder p {
    margin: 0.25rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #95a5a6;
}

.tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.tool-btn:hover {
    background-color: #d5dbdb;
}

.tool-btn.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.tool-icon {
    font-size: 1.2rem;
}

/* Map Canvas (Main Content) */
.map-canvas-container {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
    flex-shrink: 0;
}

.canvas-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.fullscreen-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}

.fullscreen-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.map-canvas {
    position: relative;
    flex-grow: 1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-placeholder {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.map-canvas img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Fullscreen mode */
.map-canvas-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    padding: 2rem;
    border-radius: 0;
}

.map-canvas-container.fullscreen .canvas-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
}

.map-component {
    position: absolute;
    background-color: rgba(52, 152, 219, 0.8);
    border: 2px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.map-component:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-component.selected {
    border-color: #f39c12;
    background-color: rgba(243, 156, 18, 0.8);
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 30;
}

.map-component.occupied {
    background-color: rgba(231, 76, 60, 0.8);
    border-color: #c0392b;
}

/* Delete X button for components */
.component-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background-color: #e74c3c;
    border: 1px solid #c0392b;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 15;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.map-component:hover .component-delete-btn {
    opacity: 1;
    transform: scale(1.1);
}

.component-delete-btn:hover {
    background-color: #c0392b;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Component Properties (Left Sidebar) */
.property-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.save-btn {
    background-color: #27ae60;
    color: white;
}
.save-btn:hover {
    background-color: #229954;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}
.delete-btn:hover {
    background-color: #c0392b;
}

/* Map Actions (Bottom Panel) */
.map-actions {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.save-map-btn {
    background-color: #3498db;
    color: white;
}
.save-map-btn:hover {
    background-color: #2980b9;
}

.reset-btn {
    background-color: #e67e22;
    color: white;
    margin-left: auto;
}
.reset-btn:hover {
    background-color: #d35400;
}

.sync-btn {
    background-color: #16a085;
    color: white;
}
.sync-btn:hover {
    background-color: #138d75;
}

.download-btn {
    background-color: #f39c12;
    color: white;
}
.download-btn:hover {
    background-color: #e67e22;
}

.upload-map-btn {
    background-color: #8e44ad;
    color: white;
}
.upload-map-btn:hover {
    background-color: #9b59b6;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .map-generator-container {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-generator-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .map-main-content {
        order: -1; /* Move map to top on mobile */
        min-height: 60vh;
    }

    .map-actions {
        justify-content: center;
    }
    
    .reset-btn {
        margin-left: 0;
    }

    .admin-container {
        padding: 0.5rem;
    }

    .admin-header {
        padding: 1rem;
    }
}

/* NFC Writer Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.nfc-modal {
    min-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.nfc-assignment-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.nfc-assignment-info p {
    margin: 0.25rem 0;
    color: #555;
}

.nfc-config-section {
    margin-bottom: 1.5rem;
}

.nfc-config-section h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.nfc-status {
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.status-message p {
    margin: 0.25rem 0;
    color: #0c5460;
}

.device-info {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d !important;
}

.nfc-status.writing {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.nfc-status.writing p {
    color: #856404;
}

.nfc-status.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.nfc-status.success p {
    color: #155724;
}

.nfc-status.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.nfc-status.error p {
    color: #721c24;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form styling for NFC modal */
.nfc-modal .form-group {
    margin-bottom: 1rem;
}

.nfc-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.nfc-modal .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.nfc-modal .form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Button styling for NFC modal */
.nfc-modal .action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
}

.nfc-modal .primary-btn {
    background-color: #3498db;
    color: white;
}

.nfc-modal .primary-btn:hover {
    background-color: #2980b9;
}

.nfc-modal .primary-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.nfc-modal .secondary-btn {
    background-color: #95a5a6;
    color: white;
}

.nfc-modal .secondary-btn:hover {
    background-color: #7f8c8d;
}

/* Mobile responsive styles for NFC modal */
@media (max-width: 768px) {
    .nfc-modal {
        min-width: 90%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .nfc-modal .action-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nfc-modal .action-btn:last-child {
        margin-bottom: 0;
    }
}

/* Maps Overview Styles */
.maps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.maps-header {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.maps-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.maps-header p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.maps-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.create-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.create-btn:hover {
    background-color: #229954;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.map-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.map-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    position: relative;
}

.map-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-card-floor {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.map-card-id {
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.map-card-body {
    padding: 1.5rem;
}

.map-preview {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.map-preview-placeholder {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
}

.map-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.map-stat {
    text-align: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.map-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.map-stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.map-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-action-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.map-action-btn.primary {
    background-color: #3498db;
    color: white;
}

.map-action-btn.primary:hover {
    background-color: #2980b9;
}

.map-action-btn.secondary {
    background-color: #95a5a6;
    color: white;
}

.map-action-btn.secondary:hover {
    background-color: #7f8c8d;
}

.map-action-btn.danger {
    background-color: #e74c3c;
    color: white;
}

.map-action-btn.danger:hover {
    background-color: #c0392b;
}

.map-card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
}

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

.map-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.map-status.active {
    background-color: #d4edda;
    color: #155724;
}

.map-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive design for maps overview */
@media (max-width: 768px) {
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .maps-header {
        padding: 1.5rem;
    }
    
    .maps-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-stats {
        grid-template-columns: 1fr;
    }
}