* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: #010d1a;
  color: #00f6ff;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -1;
}
.container {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

.sidebar {
  width: 220px;
  background: rgba(0, 40, 70, 0.15);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(0, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar h2 {
  font-size: 18px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar h2 img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.menu-item {
  margin-bottom: 18px;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.menu-item:hover { color: #00f6ff; opacity: 1; }
.footer {
  font-size: 12px;
  opacity: 0.4;
  text-align: center;
}
.main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  min-width: 0;
}

.login-prompt {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 246, 255, 0.25);
  background: rgba(0, 30, 48, 0.55);
  color: #d5f7ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-prompt p {
  margin: 0;
  font-size: 0.92rem;
}

.login-prompt button {
  margin: 0;
  background: #00d6ff;
  color: #00111c;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.header {
  font-size: 22px;
  margin-bottom: 20px;
}
.section { display: none; }
.section.active { display: block; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}
.card {
  background: rgba(0, 90, 120, 0.15);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 246, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.2);
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; opacity: 0.85; }
.card .value {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  word-break: break-word;
}
input, textarea {
  width: 100%;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.2);
  color: #00f6ff;
  margin-top: 10px;
  border-radius: 6px;
}
button {
  margin-top: 15px;
  background: #00f6ff;
  color: #000;
  padding: 10px 16px;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { background: #00e6ee; }

#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0,255,255,0.25);
  backdrop-filter: blur(12px);
  color: #00f6ff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 10px;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 12px rgba(0,255,255,0.3);
  transition: opacity 0.3s ease;
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  animation: fadeIn 0.3s ease;
  pointer-events: auto;
}

.modal-box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  pointer-events: auto;
}

.modal-content {
  background: #121212;
  color: #eee;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
  text-align: center;
  min-width: 320px;
  max-width: 400px;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons button {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  background-color: #03dac6;
  color: #000;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hidden {
  display: none !important;
}

.modal-buttons button:hover {
  background-color: #00b3a6;
}

.warning {
  color: #ff6f61;
  font-size: 0.9em;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


@media (max-width: 768px) {
.container {
flex-direction: column;
}



.menu-item {
flex: 1;
text-align: center;
margin-bottom: 0;
padding: 10px 6px;
white-space: nowrap;
}

.main {
padding: 16px;
}
}







/* ========== Splash ========== */

/* Splash screen */
.splash-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #111, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  animation: fadeIn 1.5s ease-out;
  }
  
  .splash-screen h1 {
  font-size: 2.5rem;
  color: #00f6ff;
  text-shadow: 0 0 25px #00f6ff;
  animation: pulseGlow 2s infinite alternate;
  }
  
  #splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
  }
  
  .splash-logo {
  width: 250px;
  height: auto;
  animation: pulseGlow 1.5s infinite alternate;
  filter: drop-shadow(0 0 20px #00f6ff);
  }
  
  /* Animations */
  @keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 10px #00fcff); }
  100% { filter: drop-shadow(0 0 25px #00fcff); }
  }
  
  @keyframes pulseGlow {
  from {
    text-shadow: 0 0 10px #00f6ff;
    transform: scale(1);
  }
  to {
    text-shadow: 0 0 25px #00f6ff;
    transform: scale(1.08);
  }
  }
  
  .fade-out {
  animation: fadeOut 1s ease forwards;
  }
  
  @keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
  }
  




  #welcome-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1), rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeInSplash 0.6s ease-out forwards;
  }
  
  #welcome-splash.hidden {
    display: none;
  }
  
  .splash-circle {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .splash-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: zoomIn 1.2s ease-out;
  }
  
  .loading-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border: 6px solid transparent;
    border-top: 6px solid #00ffff;
    border-radius: 50%;
    animation: spin 2s linear infinite;
  }
  
  .splash-text {
    color: #0ff;
    margin-top: 20px;
    font-size: 1.5em;
    animation: fadeInText 1.2s ease-in-out;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  @keyframes fadeInSplash {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  @keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  


  @keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
  }
  

  .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ccff;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    z-index: 999999;
    box-shadow: 0 0 12px rgba(0,255,255,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  .toast.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .toast.error {
    background: #ff0033;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
  }
  

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  button {
    border: none;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.15);
    color: #00f6ff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }
  button:hover {
    background: rgba(0, 255, 255, 0.3);
  }
  


  .tab-content iframe {
    width: 100%;
    height: 100%;
    min-height: 500px; /* يمكن تعديله حسب الحد الأدنى */
    border: none;
    }
    
    @media (max-width: 768px) {
    #tabContainer {
      padding: 10px;
      margin-top: 10px;
    }
    
    .tab-content iframe {
      min-height: 300px;
    }
}

.user-card {
  position: absolute;
  top: 80px;
  right: 20px;
  left: auto;
  background: #0e1b2a;
  color: #00f6ff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00f6ff77;
  z-index: 999999;
  font-size: 0.85rem;
  animation: fadeIn 0.4s ease-in-out;
}
    
    
      
  #auth-step-icon {
    animation: glowPulse 1.2s ease-in-out infinite;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.05);
  }
  
  #auth-step-text {
    animation: fadeInUp 0.5s ease;
  }
  

  .fade-in-trigger {
    animation: fadeInUp 0.4s ease;
  }
  




/* mq.notifications.css */

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-card {
  min-width: 260px;
  padding: 15px 20px;
  background-color: #2d2d2d;
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: slideFadeIn 0.4s forwards;
  position: relative;
}

/* ألوان الإشعارات */
.notification-success { background-color: #28a745; }
.notification-error { background-color: #dc3545; }
.notification-info { background-color: #007bff; }
.notification-warning { background-color: #ffc107; color: #000; }

/* زر الإغلاق */
.notification-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  color: inherit;
  border: none;
  font-size: 16px;
  cursor: pointer;
}




#menu-toggle {
  background: #00f6ff;
  color: #000;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: none;
  width: 100%;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 60;
    left: -100%;
    width: 75%;
    height: 100%;
    background: rgba(0, 40, 70, 0.95);
    transition: left 0.3s ease;
    z-index: 999;
    flex-direction: column;
  }

  .sidebar.open {
    left: 0;
  }

  .main {
    padding: 20px;
  }
}

.close-sidebar {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #00f6ff;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .close-sidebar {
    display: block;
  }
}


.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 40, 70, 0.95);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.topbar .top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.topbar .logo-title {
  font-weight: bold;
  font-size: 16px;
  color: #00f6ff;
}

.topbar .top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #00f6ff;
}

@media (max-width: 768px) {
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}
