:root {
    --primary-color: #4361ee;
    --primary-light: #e0e7ff;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-500: #6c757d;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Base Styles */
  body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
  }
  
  /* Enhanced Nav Pills Navigation */
.nav-pills {
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .nav-item {
    position: relative;
  }
  
  .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
  }
  
  .nav-link:hover, 
  .nav-link:focus {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
  }
  
  .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
  }
  
  .nav-link.dropdown-toggle {
    padding-right: 2rem;
  }
  
  .nav-link.dropdown-toggle::after {
    content: "▾";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-size: 1.1em;
  }
  
  .dropdown-menu {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-lg);
    padding: 0.5rem 0;
    min-width: 220px;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .dropdown-item:hover, 
  .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .nav-pills {
      flex-direction: column;
      align-items: flex-start;
      padding: 1rem;
    }
    
    .nav-link {
      width: 100%;
      justify-content: space-between;
    }
    
    .dropdown-menu {
      position: static;
      box-shadow: none;
      border-left: 3px solid var(--primary-light);
      margin-top: 0;
      margin-left: 1rem;
    }
  }
  
  /* Animation for dropdown */
  .dropdown-menu {
    animation: fadeIn 0.2s ease-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Icons for menu items (optional) */
  .nav-link[href="student_register.php"]::before,
  .dropdown-item[href="student_register.php"]::before {
    content: "🎓";
    margin-right: 0.5rem;
  }
  
  .nav-link[href="staff_register.php"]::before,
  .dropdown-item[href="staff_register.php"]::before {
    content: "👨‍🏫";
    margin-right: 0.5rem;
  }
  
  .nav-link[href="form_create.php"]::before {
    content: "📝";
    margin-right: 0.5rem;
  }
  
  .nav-link[href="assign_staff_class_program.php"]::before {
    content: "👥";
    margin-right: 0.5rem;
  }
  
  .nav-link[href="reports.php"]::before {
    content: "📊";
    margin-right: 0.5rem;
  }
  
  /* Container */
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
  }
  
  /* Header */
  h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 2rem;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
  }
  
  /* Cards */
  .card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition);
    height: 100%;
    background: white;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
  }
  
  .card-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
  }
  
  .btn-secondary {
    background-color: var(--gray-500);
    color: white;
  }
  
  .btn-secondary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
  }
  
  /* Alert */
  .alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    font-weight: 500;
  }
  
  .alert-danger {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
  }
  
  /* Table */
  .table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: 2rem;
  }
  
  .table thead {
    background-color: var(--primary-color);
    color: white;
  }
  
  .table th {
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
  
  .table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
  }
  
  .table tbody tr:last-child td {
    border-bottom: none;
  }
  
  .table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
  }
  
  /* Chart Container */
  canvas {
    max-height: 400px;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
  }
  
  /* Action Buttons */
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  /* Responsive Grid */
  .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
  }
  
  .col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  /* Responsive Adjustments */
  
  @media (max-width: 992px){}
    .col-md-4 {
      flex: 0 0 50%;
      max-width: 50%;
    }
    
    
    

    
    
  
  @media (max-width: 768px) {
    .container {
      padding: 1.5rem;
    }
    
    h2 {
      font-size: 1.75rem;
    }
    
    h3 {
      font-size: 1.25rem;
    }
    
    .col-md-4 {
      flex: 0 0 100%;
      max-width: 100%;
    }
    
    .action-buttons .btn {
      width: 100%;
      text-align: center;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .container {
    animation: fadeIn 0.4s ease-out;
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
  }
  
  /* Status Indicators */
  .status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
  }
  
  .status-active {
    background-color: var(--success-color);
  }
  
  .status-pending {
    background-color: var(--warning-color);
  }
  
  .status-inactive {
    background-color: var(--danger-color);
  }
  
  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
  }
  
  .empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }