/* Global Styles */
:root {
    --primary-blue: #0d6efd;
    --success-green: #28a745;
    --info-blue: #17a2b8;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Logo Styles */
.logo-box {
    display: flex;
    flex-wrap: wrap;
    width: 20px;
    height: 20px;
}

.logo-square {
    width: 10px;
    height: 10px;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 500px;
    margin-bottom: 2rem;
}

  /* Hero background via local asset */
  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('{{ asset("images/hero-medical.jpg") }}');
    background-size: cover;
    background-position: center;
    z-index: -2;
  }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    background-color: rgba(255, 254, 254, 0.658) !important; /* 50% شفاف */
    /* background-color: transparent !important; */       /* كامل الشفافيّة */
  }

.min-vh-50 {
    min-height: 50vh;
}

/* Exam Categories Styles */
.exam-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.exam-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Question Preview Styles */
.no-copy {
    /* Disable copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.question-item {
    position: relative;
}

.answer-explanation {
    margin-top: 15px;
    border-left: 4px solid var(--success-green);
}

/* Dashboard Styles */
.dashboard-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid #e3e3e3;
}

/* Stats Section Styles */
.stats-section .card {
    transition: transform 0.3s ease;
}

.stats-section .card:hover {
    transform: translateY(-5px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-gray);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .exam-card-img {
        height: 140px;
    }
}

/* Copy Protection Styles */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.question-item img {
    pointer-events: none;
}



/* شعار أكبر */
.logo-box {
    display: flex;
    flex-wrap: wrap;
    width: 30px;
    height: 30px;
  }
  
  .logo-square {
    width: 10px;
    height: 10px;
  }
  
  /* تباعد وتحجيم للروابط */
  .navbar-nav .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
  }
  
  /* تحسين أزرار Navbar */
  .navbar .btn {
    font-size: 0.9rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  
  /* ظل خفيف */
  .navbar.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Fixed, full-height sidebar at left */
.app-sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  top: 0;               /* pin to top */
  left: 0;              /* pin to very left */
  background: #2c3e50;
  overflow-y: auto;
  z-index: 1030;        /* above content but below any modals */
}

/* Push the main content right by exactly the sidebar’s width */
.app-container {
  display: flex;
}
.app-container > main {
  margin-left: 250px;
  padding: 2rem;        /* your normal page padding */
}

/* Sidebar header */
.app-sidebar .sidebar-header {
  background: #1a252f;
}
.app-sidebar .brand {
  color: #ecf0f1;
  text-decoration: none;
}
.app-sidebar .brand:hover {
  color: #fff;
}

/* Section headings */
.app-sidebar .sidebar-section {
  font-size: .75rem;
  letter-spacing: .05em;
  margin-top: 1rem;
  margin-bottom: .5rem;
  padding-left: 1rem;
}

/* Nav links */
.app-sidebar .sidebar-nav .nav-link {
  color: #ecf0f1;
  padding: .625rem 1rem;
  transition: background .2s;
}
.app-sidebar .sidebar-nav .nav-link:hover {
  background: rgba(236, 240, 241, .1);
  text-decoration: none;
}

/* Collapsible submenu caret */
.app-sidebar .sidebar-nav .fa-chevron-down {
  font-size: .75rem;
}

/* Indent submenu items */
.app-sidebar .sidebar-nav .collapse .nav-link {
  padding-left: 2.5rem;
  font-size: .85rem;
}

/* Optional: slim scroll-bar styling */
.app-sidebar::-webkit-scrollbar {
  width: 6px;
}
.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
}




  /* استجابة أفضل عند التكبير */
  @media (max-width: 992px) {
    .navbar .btn {
      width: 100%;
      margin-bottom: 0.5rem;
    }
    .navbar .d-flex {
      flex-direction: column;
      width: 100%;
    }
  }
  