/* Modern Tabbed Mobile Menu UI */

/* Mobile Menu Container */
.mobile-menu-tabs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-tabs.active {
  transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.mobile-menu-logo {
  font-family: 'Racing Sans One', cursive;
  font-size: 1.5rem;
  background: linear-gradient(45deg, #3b82f6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:active {
  transform: scale(0.9);
  background: rgba(239, 68, 68, 0.4);
}

/* Tab Navigation */
.mobile-menu-tabs-nav {
  display: flex;
  padding: 0.5rem;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 2px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 73px;
  z-index: 9;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-tabs-nav::-webkit-scrollbar {
  height: 3px;
}

.mobile-menu-tabs-nav::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.5);
  border-radius: 10px;
}

.mobile-tab-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-tab-btn.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24;
  color: #0f172a;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.mobile-tab-btn:active {
  transform: scale(0.98);
}

/* Tab Content */
.mobile-tab-content {
  display: none;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.mobile-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card-based Navigation Items */
.mobile-nav-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-nav-card:active {
  transform: scale(0.98);
  background: rgba(30, 41, 59, 0.8);
}

.mobile-nav-card.highlight {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
}

.mobile-nav-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mobile-nav-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mobile-nav-card-icon.yellow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.mobile-nav-card-icon.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.mobile-nav-card-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.mobile-nav-card-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

/* Driver Submenu Grid */
.driver-submenu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.driver-submenu-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.driver-submenu-item:active {
  transform: scale(0.95);
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
}

.driver-submenu-item-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.driver-submenu-item-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Simple Link Items */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-nav-link:active {
  transform: scale(0.98);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.5);
}

.mobile-nav-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

/* User Profile Section */
.mobile-menu-user {
  margin: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
}

.mobile-menu-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-menu-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.mobile-menu-user-details {
  flex: 1;
}

.mobile-menu-user-name {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.mobile-menu-user-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

.mobile-menu-user-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 0.25rem;
}

.mobile-menu-user-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Logout Button */
.mobile-menu-logout {
  width: 100%;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 12px;
  color: #ef4444;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-logout:active {
  transform: scale(0.98);
  background: rgba(239, 68, 68, 0.3);
}

/* Section Headers */
.mobile-section-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem 0;
  padding-left: 0.5rem;
}
