/* ===== MOBILE NAVIGATION APP STYLES ===== */
#debug-terminal {
    display: flex !important;
    flex-direction: column-reverse !important;
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 10000 !important; /* Wyższy z-index */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.mobile-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 70px; /* space for bottom menu */
}

.status-bar {
    margin: 0 8px 8px 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.main-nav {
    margin: 0 8px 8px 8px;
    padding: 18px 16px 16px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}
.nav-logo {
    font-size: 2rem;
}
.nav-title {
    font-size: 1.3rem;
}
.nav-info {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 8px;
}
.nav-route {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 1rem;
}
.nav-loading {
    text-align: center;
    margin-top: 10px;
}
.bottom-menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 100;
}
.menu-btn {
    flex: 1;
    margin: 0 8px;
    padding: 14px 0;
    font-size: 1.2rem;
    border: none;
    background: none;
    color: #667eea;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.menu-btn.active, .menu-btn:active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.settings-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 50vw;
    height: 50vh;
    background: rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.settings-modal.show {
    display: flex;
}
.settings-panel {
    background: #fff;
    border-radius: 18px;
    padding: 14px 10px 10px 10px;
    min-width: 50vw;
    max-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.settings-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #667eea;
}
.settings-section {
    font-size: 1rem;
    margin-bottom: 8px;
}
.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}
.settings-logout, .settings-end {
    flex: 1;
    padding: 12px 0;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: #fff;
    font-weight: 600;
    margin: 0 2px;
    transition: background 0.2s;
}
.settings-logout:hover, .settings-end:hover {
    background: #764ba2;
}
.session-actions {
    display: none;
}

/* User Management Styles */
.badge-operator {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pending-section {
    border: 2px solid #17a2b8;
}

.admin-section {
    border: 2px solid #dc3545;
}

.master-section {
    border: 2px solid #ffc107;
}

@media (max-width: 600px) {
    .settings-panel {
        min-width: 98vw;
        max-width: 98vw;
    }
}
/* ===== STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding-bottom: 90px; /* Przestrzeń dla sticky navbar na dole */
}

.app-container {
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
}

.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== CARD & LAYOUT ===== */

/* STARY KONTENER ZAKŁADEK - ZAKOMENTOWANY (usunięto z app.js render)
.tab-container {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 8px;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
*/

/* STARE STYLE TAB-BUTTON - ZAKOMENTOWANE (konflikty z HeaderTab.js)
.tab-button {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tab-button:hover::before {
    transform: translateX(100%);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tab-button.active {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
*/

/* STARE KOLORY ZAKŁADEK - ZAKOMENTOWANE
.tab-button[data-tab="dashboard"]:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tab-button[data-tab="dashboard"].active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.tab-button[data-tab="orbits"]:hover {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tab-button[data-tab="orbits"].active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.tab-button[data-tab="routes"]:hover {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tab-button[data-tab="routes"].active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.tab-button[data-tab="edit"]:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tab-button[data-tab="edit"].active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}
*/

/* Animacja mrugania dla orbit w ruchu */
@keyframes blinkOrbit {
    0%, 50% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    25% { 
        opacity: 0.7; 
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.3);
    }
    75% { 
        opacity: 0.9; 
        transform: scale(1.02);
        box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.5);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
}

/* Animacja mrugania dla markerów orbit na mapie */
@keyframes blinkOrbitMarker {
    0%, 50% { 
        opacity: 1; 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.8));
    }
    25% { 
        opacity: 0.6; 
        transform: scale(1.2);
        filter: drop-shadow(0 0 12px rgba(255, 152, 0, 1));
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.9));
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.8));
    }
}

.blinking-orbit:hover {
    animation-play-state: paused;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6) !important;
}

.blinking-orbit-marker {
    animation: blinkOrbitMarker 2s ease-in-out infinite !important;
}

.blinking-orbit-marker:hover {
    animation-play-state: paused !important;
    transform: scale(1.3) !important;
    filter: drop-shadow(0 0 15px rgba(255, 152, 0, 1)) !important;
}

/* ===== BUTTONS ===== */
.button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-primary {
    background: #667eea;
    color: white;
}

.bg-success {
    background: #28a745;
    color: white;
}

.bg-danger {
    background: #dc3545;
    color: white;
}

.bg-warning {
    background: #ffc107;
    color: #212529;
}

.bg-purple {
    background: #6f42c1;
    color: white;
}

.bg-danger {
    background: #dc3545;
    color: white;
}

.bg-danger:hover {
    background: #c82333;
}

.bg-secondary {
    background: #6c757d;
    color: white;
}

.bg-secondary:hover {
    background: #5a6268;
}

.bg-warning {
    background: #ffc107;
    color: #212529;
}

.bg-warning:hover {
    background: #e0a800;
}

.bg-success {
    background: #28a745;
    color: white;
}

.bg-success:hover {
    background: #218838;
}

.bg-info {
    background: #17a2b8;
    color: white;
}

.bg-info:hover {
    background: #138496;
}

.bg-purple {
    background: #6f42c1;
    color: white;
}

.bg-purple:hover {
    background: #5a32a3;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== LISTS ===== */
.route-point {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.route-point:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.point-number {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== PROGRESS ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

/* ===== UTILITIES ===== */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

/* ===== LOADING ===== */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    /* STARY KONTENER - responsive (zakomentowany)
    .tab-container {
        flex-direction: column;
    }
    */

    .grid-two {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .enhanced-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== ENHANCED DASHBOARD STYLES ===== */

.real-time-status-bar {
    animation: statusGlow 3s ease-in-out infinite alternate;
}

@keyframes statusGlow {
    0% { box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5); }
}

.enhanced-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card.enhanced {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.stat-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trend-indicator {
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.monitoring-panel {
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.monitoring-panel:hover {
    border-left: 4px solid #764ba2;
    transform: translateX(2px);
}

.activity-feed::-webkit-scrollbar,
.alerts-container::-webkit-scrollbar {
    width: 4px;
}

.activity-feed::-webkit-scrollbar-thumb,
.alerts-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.enhanced-map-container {
    transition: all 0.3s ease;
}

.map-overlay-controls,
.map-legend {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.map-overlay-controls:hover,
.map-legend:hover {
    transform: scale(1.02);
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

.button-small:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.status-indicator {
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.alert-count {
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced transitions for smooth interactions */
.enhanced-dashboard-grid .stat-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.enhanced-dashboard-grid .stat-card.enhanced:hover::before {
    left: 100%;
}

/* Map fullscreen styles */
.enhanced-map-container[style*="position: fixed"] {
    background: white !important;
    padding: 20px;
}

.enhanced-map-container[style*="position: fixed"] #dashboard-map {
    height: calc(100vh - 100px) !important;
}

/* ===== ORBIT MANAGEMENT STYLES ===== */

.orbit-card {
    transition: all 0.3s ease;
    position: relative;
}

.orbit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.orbit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orbit-card:hover::before {
    opacity: 1;
}

.route-selector {
    transition: all 0.2s ease;
}

.route-selector:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.route-selector option {
    padding: 8px;
}

/* Orbit status indicators */
.orbit-card[data-status="active"] {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.orbit-card[data-status="moving"] {
    border-left-color: #FF9800;
    background: linear-gradient(135deg, #fff8f0, #ffffff);
}

.orbit-card[data-status="idle"] {
    border-left-color: #9E9E9E;
    background: linear-gradient(135deg, #f8f8f8, #ffffff);
}

.orbit-card[data-status="error"] {
    border-left-color: #F44336;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.orbit-card[data-status="offline"] {
    border-left-color: #607D8B;
    background: linear-gradient(135deg, #f5f7f9, #ffffff);
}

/* Orbit map modal */
#orbit-map-modal {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#orbit-map-modal > div {
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Button states for orbit actions */
.button-small[data-action="assign-route"] {
    background: linear-gradient(135deg, #10B981, #059669);
    transition: all 0.2s ease;
}

.button-small[data-action="assign-route"]:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.button-small[data-action="unassign-route"] {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.button-small[data-action="unassign-route"]:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-1px);
}

.button-small[data-action="start-orbit"] {
    background: linear-gradient(135deg, #10B981, #059669);
    position: relative;
    overflow: hidden;
}

.button-small[data-action="start-orbit"]:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.button-small[data-action="stop-orbit"] {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.button-small[data-action="stop-orbit"]:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
}

/* Loading states */
.orbit-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.orbit-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress bar enhancements */
.orbit-card .progress-fill {
    transition: width 0.5s ease;
    background: linear-gradient(90deg, currentColor, rgba(255,255,255,0.2));
    border-radius: 8px;
    position: relative;
}

.orbit-card .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
    border-radius: 8px;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive orbit grid */
@media (max-width: 768px) {
    .orbit-card {
        margin-bottom: 16px;
    }
    
    #orbit-map-modal > div {
        width: 95%;
        height: 90%;
    }
}

/* ===== ORBIT STATUS BUTTONS ===== */

.orbit-status-btn {
    position: relative;
    overflow: visible;
}

.orbit-status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Enhanced tooltip styling */
.orbit-status-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#routeOptimizerModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
}

.orbit-status-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Route preview button styling */
button[data-action="preview-route"] {
    transition: all 0.2s ease;
}

button[data-action="preview-route"]:hover {
    background: #2563EB !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3);
}

/* ===== DRIVER REQUEST NOTIFICATIONS ===== */
/* Blinking animation for pending driver requests */
@keyframes blink {
    0% { 
        background: linear-gradient(45deg, #fee2e2, #fecaca);
        border-left-color: #EF4444;
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(45deg, #dc2626, #ef4444);
        border-left-color: #dc2626;
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    100% { 
        background: linear-gradient(45deg, #fee2e2, #fecaca);
        border-left-color: #EF4444;
        transform: scale(1);
    }
}

/* Ensure blinking cards have proper z-index and visibility */
div[id*="orbit-"][id*="-pending"] {
    position: relative;
    z-index: 10;
}

/* Style for driver request action buttons */
div[id*="orbit-"][id*="-pending"] button {
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

div[id*="orbit-"][id*="-pending"] button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Approve button hover effect */
div[id*="orbit-"][id*="-pending"] button[onclick*="approveDriverToOrbit"]:hover {
    background: #059669 !important;
}

/* Reject button hover effect */
div[id*="orbit-"][id*="-pending"] button[onclick*="rejectDriverRequest"]:hover {
    background: #dc2626 !important;
}

/* Alternatywnie - jeśli powyższe nie działa */
#debug-terminal {
    position: relative;
    z-index: 1;
}

#debug-terminal-container {
    display: flex !important;
    flex-direction: column-reverse !important;
}

.card {
    margin-top: 0px !important;
    position: relative;
    z-index: 2;
}