html {
    font-size: 14px;
  }
  
  @media (min-width: 768px) {
    html {
      font-size: 16px;
    }
  }
  
  .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
  }
  
  html {
    position: relative;
    min-height: 100%;
  }
  
  body {
    margin-bottom: 60px;
  }
  
  /* --- Donation, Payment, and Success Pages Custom Styles --- */
  
  .hero-section {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      position: relative;
      overflow: hidden;
  }
  
  .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
      animation: float 20s ease-in-out infinite;
  }
  
  @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
  }
  
  .hero-content {
      position: relative;
      z-index: 2;
  }
  
  .text-gradient {
      background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
      background-size: 400% 400%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradient 3s ease infinite;
  }
  
  @keyframes gradient {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
  }
  
  .animate-fade-in {
      animation: fadeIn 1s ease-out;
  }
  
  .animate-slide-up {
      animation: slideUp 1s ease-out;
  }
  
  @keyframes fadeIn {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes slideUp {
      from { opacity: 0; transform: translateY(50px); }
      to { opacity: 1; transform: translateY(0); }
  }
  
  .hero-stats {
      display: flex;
      gap: 2rem;
      margin-top: 2rem;
  }
  
  .stat-item {
      text-align: center;
  }
  
  .stat-number {
      font-size: 2.5rem;
      font-weight: bold;
      color: #fff;
      margin-bottom: 0.5rem;
  }
  
  .stat-label {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.9rem;
  }
  
  .donation-card {
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 20px;
  }
  
  .bg-gradient {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .btn-gradient {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      color: white;
      transition: all 0.3s ease;
  }
  
  .btn-gradient:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
      color: white;
  }
  
  .payment-methods {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
  }
  
  .payment-option {
      flex: 1;
      min-width: 200px;
  }
  
  .payment-radio {
      display: none;
  }
  
  .payment-label {
      display: block;
      padding: 1rem;
      border: 2px solid #e9ecef;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-align: center;
  }
  
  .payment-label:hover {
      border-color: #667eea;
      background: #f8f9ff;
  }
  
  .payment-radio:checked + .payment-label {
      border-color: #667eea;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
  }
  
  .payment-label i {
      font-size: 1.5rem;
      display: block;
      margin-bottom: 0.5rem;
  }
  
  .payment-label span {
      display: block;
      font-weight: 600;
      margin-bottom: 0.25rem;
  }
  
  .payment-label small {
      opacity: 0.8;
  }
  
  .impact-section {
      background: #f8f9fa;
  }
  
  .section-title {
      font-size: 2.5rem;
      font-weight: bold;
      color: #333;
      margin-bottom: 3rem;
  }
  
  .impact-card {
      text-align: center;
      padding: 2rem;
      background: white;
      border-radius: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      height: 100%;
  }
  
  .impact-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }
  
  .impact-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 1.5rem;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 2rem;
  }
  
  .impact-card h4 {
      color: #333;
      margin-bottom: 1rem;
  }
  
  .impact-card p {
      color: #666;
      line-height: 1.6;
  }
  
  .recent-donations {
      background: #f8f9fa;
  }
  
  .donation-item {
      background: white;
      border-radius: 10px;
      padding: 1rem;
      margin-bottom: 1rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
  }
  
  .donation-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  }
  
  @media (max-width: 768px) {
      .hero-stats {
          flex-direction: column;
          gap: 1rem;
      }
      .payment-methods {
          flex-direction: column;
      }
      .payment-option {
          min-width: auto;
      }
  }
  
  .form-control, .form-select {
      border: 2px solid #e9ecef;
      border-radius: 10px;
      transition: all 0.3s ease;
  }
  
  .form-control:focus, .form-select:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  }
  
  .form-control-lg, .form-select-lg {
      padding: 0.75rem 1rem;
      font-size: 1rem;
  }
  
  .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: #fff;
      animation: spin 1s ease-in-out infinite;
  }
  
  @keyframes spin {
      to { transform: rotate(360deg); }
  }
  
  /* Manual Payment Instructions */
  .donation-summary {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 10px;
      border-left: 4px solid #007bff;
  }
  
  .summary-item {
      margin-bottom: 0.75rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid #dee2e6;
  }
  
  .summary-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
  }
  
  .payment-method-card .card {
      transition: all 0.3s ease;
  }
  
  .payment-method-card .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .bank-details p, .mobile-details p {
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
  }
  
  .important-notice ul {
      padding-left: 1.5rem;
  }
  
  .important-notice li {
      margin-bottom: 0.5rem;
  }
  
  @media (max-width: 768px) {
      .donation-summary, .payment-methods {
          margin-bottom: 2rem;
      }
  }
  
  /* SSLCommerz Payment */
  .payment-info {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 10px;
      border-left: 4px solid #28a745;
  }
  
  .info-item {
      margin-bottom: 1rem;
      padding: 0.5rem;
      background: white;
      border-radius: 5px;
      border-left: 3px solid #007bff;
  }
  
  .info-item:last-child {
      margin-bottom: 0;
  }
  
  .security-notice ul {
      padding-left: 1.5rem;
  }
  
  .security-notice li {
      margin-bottom: 0.5rem;
  }
  
  .loading-spinner {
      animation: fadeIn 0.5s ease-in;
  }
  
  @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
  }
  
  @media (max-width: 768px) {
      .donation-summary, .payment-info {
          margin-bottom: 2rem;
      }
  }
  
  /* Donation Success */
  .success-card {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      color: white;
      padding: 3rem 2rem;
      border-radius: 20px;
      margin-bottom: 2rem;
      animation: slideDown 0.8s ease-out;
  }
  
  @keyframes slideDown {
      from {
          opacity: 0;
          transform: translateY(-50px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  .success-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
      animation: bounce 1s ease-in-out;
  }
  
  @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
          transform: translateY(0);
      }
      40% {
          transform: translateY(-20px);
      }
      60% {
          transform: translateY(-10px);
      }
  }
  
  .success-title {
      font-size: 2.5rem;
      font-weight: bold;
      margin-bottom: 1rem;
  }
  
  .success-message {
      font-size: 1.2rem;
      opacity: 0.9;
  }
  
  .receipt-details, .donor-details {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 10px;
      border-left: 4px solid #007bff;
  }
  
  .detail-item {
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid #dee2e6;
  }
  
  .detail-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
  }
  
  .donor-message .message-box {
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 8px;
      border-left: 4px solid #28a745;
  }
  
  .impact-section {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 10px;
  }
  
  .impact-item {
      text-align: center;
      padding: 1rem;
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
  }
  
  .impact-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }
  
  .impact-item i {
      font-size: 2rem;
      display: block;
      margin-bottom: 0.5rem;
  }
  
  .impact-item span {
      font-weight: 600;
      color: #333;
  }
  
  .action-buttons .btn {
      transition: all 0.3s ease;
  }
  
  .action-buttons .btn:hover {
      transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
      .success-card {
          padding: 2rem 1rem;
      }
      .success-title {
          font-size: 2rem;
      }
      .receipt-details, .donor-details {
          margin-bottom: 1rem;
      }
      .action-buttons .btn {
          display: block;
          width: 100%;
          margin-bottom: 1rem;
      }
      
      .mobile-layout .btn {
          display: block;
          width: 100%;
          margin-bottom: 0.5rem;
      }
      
      .share-buttons .btn {
          display: block;
          width: 100%;
          margin-bottom: 0.5rem;
      }
      
      .donation-amount {
          flex-direction: column;
          gap: 0.5rem;
      }
      
      .amount-value {
          font-size: 1.5rem;
      }
  }
  
  /* Enhanced responsive styles for donation success page */
  .donation-amount {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-top: 1rem;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      backdrop-filter: blur(10px);
  }
  
  .amount-label {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.9);
  }
  
  .amount-value {
      font-size: 2rem;
      font-weight: bold;
      color: #fff;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .social-share {
      margin-top: 2rem;
  }
  
  .share-buttons {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.5rem;
  }
  
  .share-buttons .btn {
      transition: all 0.3s ease;
  }
  
  .share-buttons .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Enhanced detail styling */
  .detail-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 0;
      border-bottom: 1px solid #f0f0f0;
      transition: all 0.3s ease;
  }
  
  .detail-item:hover {
      background: #f8f9fa;
      padding-left: 0.5rem;
      border-radius: 5px;
  }
  
  .detail-item:last-child {
      border-bottom: none;
  }
  
  .detail-item strong {
      color: #495057;
      font-weight: 600;
      min-width: 120px;
  }
  
  .detail-item span {
      color: #6c757d;
      text-align: right;
      word-break: break-word;
  }
  
  /* Enhanced receipt styling */
  .receipt-number, .transaction-id, .amount, .payment-method, .date-time,
  .donor-name, .donor-email, .donor-phone, .donation-type, .donor-address {
      font-weight: 500;
      color: #495057;
  }
  
  .amount {
      color: #28a745 !important;
      font-weight: bold !important;
  }
  
  /* Animation for sections */
  .receipt-details, .donor-details, .next-steps, .social-share {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Impact section should be visible by default */
  .impact-section {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .receipt-details.animate, .donor-details.animate, .impact-section.animate, 
  .next-steps.animate, .social-share.animate {
      opacity: 1;
      transform: translateY(0);
  }
  
  /* Enhanced button styling */
  .action-buttons .btn {
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
  }
  
  .action-buttons .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
  }
  
  .action-buttons .btn:hover::before {
      left: 100%;
  }
  
  /* Enhanced message box */
  .message-box {
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border-left: 4px solid #007bff;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Enhanced impact items */
  .impact-item {
      background: white;
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      border: 1px solid #e9ecef;
  }
  
  .impact-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      border-color: #007bff;
  }
  
  .impact-item i {
      font-size: 2rem;
      margin-bottom: 1rem;
      display: block;
  }
  
  .impact-item span {
      font-weight: 600;
      color: #495057;
  }
  
  /* Success card enhancements */
  .success-card {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      color: white;
      padding: 3rem 2rem;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
      margin-bottom: 2rem;
      position: relative;
      overflow: hidden;
  }
  
  .success-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
      animation: rotate 20s linear infinite;
  }
  
  @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
  }
  
  .success-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
      animation: bounce 2s infinite;
  }
  
  .success-title {
      font-size: 3rem;
      font-weight: bold;
      margin-bottom: 1rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .success-message {
      font-size: 1.2rem;
      opacity: 0.9;
      margin-bottom: 1rem;
  }
  
  @media print {
      .action-buttons, .success-card {
          display: none;
      }
      .card {
          box-shadow: none;
          border: 1px solid #dee2e6;
      }
  }
  
  /* --- End Donation, Payment, and Success Pages Custom Styles --- */
  
  @keyframes fall {
      to {
          transform: translateY(100vh) rotate(360deg);
      }
  }
  
  /* Receipt template styles for print/download */
  .receipt-template {
      max-width: 350px;
      margin: 0 auto;
      background: white;
      border: 2px solid #333;
      padding: 20px;
      font-family: Arial, sans-serif;
      font-size: 12px;
      line-height: 1.4;
  }
  
  .receipt-header {
      text-align: center;
      border-bottom: 2px solid #333;
      padding-bottom: 15px;
      margin-bottom: 15px;
  }
  
  .receipt-logo {
      font-size: 24px;
      font-weight: bold;
      color: #28a745;
      margin-bottom: 5px;
  }
  
  .receipt-org-name {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 3px;
  }
  
  .receipt-title {
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 5px;
  }
  
  .receipt-number {
      font-size: 12px;
      color: #666;
  }
  
  .receipt-section {
      margin-bottom: 15px;
  }
  
  .receipt-section-title {
      font-size: 12px;
      font-weight: bold;
      border-bottom: 1px solid #ccc;
      padding-bottom: 5px;
      margin-bottom: 8px;
  }
  
  .receipt-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 11px;
  }
  
  .receipt-label {
      font-weight: bold;
      min-width: 80px;
  }
  
  .receipt-value {
      text-align: right;
  }
  
  .receipt-amount {
      background: #f0f0f0;
      padding: 8px;
      text-align: center;
      margin: 10px 0;
      border: 1px solid #ccc;
  }
  
  .receipt-amount-value {
      font-size: 16px;
      font-weight: bold;
      color: #28a745;
  }
  
  .receipt-footer {
      text-align: center;
      margin-top: 20px;
      padding-top: 15px;
      border-top: 1px solid #ccc;
      font-size: 10px;
      color: #666;
  }
  
  .receipt-signature {
      margin-top: 15px;
      text-align: center;
  }
  
  .receipt-signature-line {
      width: 120px;
      height: 1px;
      background: #000;
      margin: 20px auto 5px;
  }
  
  /* Confetti animation */
  @keyframes fall {
      0% {
          transform: translateY(-10px) rotate(0deg);
          opacity: 1;
      }
      100% {
          transform: translateY(100vh) rotate(360deg);
          opacity: 0;
      }
  }
  
  /* Responsive design for mobile */
  @media (max-width: 768px) {
      .action-buttons .btn {
          width: 100%;
          margin-bottom: 0.5rem;
      }
      
      .receipt-details, .donor-details {
          margin-bottom: 1.5rem;
      }
      
      .success-card {
          padding: 2rem 1rem;
      }
      
      .success-title {
          font-size: 2rem;
      }
  }
  
  /* --- Dashboard Layout Styles --- */
body { min-height: 100vh; display: flex; flex-direction: column; }
.dashboard-wrapper { display: flex; flex: 1; min-height: 0; }

/* Sidebar Styles */
.sidebar { 
    width: 240px; 
    background: linear-gradient(180deg, #ede9fe 0%, #f8fafc 100%);
    color: #5b3fa2; 
    min-height: 100vh; 
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 100; 
    transition: all 0.3s ease;
    box-shadow: 2px 0 8px rgba(91,63,162,0.04);
}

/* Mobile sidebar specific styles */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header { 
    padding:0.8rem; 
    font-size: 1.3rem; 
    font-weight: 700; 
    text-align: center; 
    border-bottom: 1px solid #e0e7ff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.sidebar-logo {
    width:50%;
    background-color:transparent;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(91,63,162,0.08);
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    width: 40px;
    margin-bottom: 0;
}

.sidebar-title {
    transition: all 0.3s ease;
    opacity: 1;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: #5b3fa2;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-toggle-btn:hover {
    background: #f3e8ff;
    color: #7c3aed;
}

.sidebar.collapsed .sidebar-toggle-btn {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-menu { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.sidebar-menu li { 
    margin: 0.5rem 0; 
}

.sidebar-menu li a { 
    color: #5b3fa2; 
    text-decoration: none; 
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem; 
    border-radius: 6px; 
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-menu li a .menu-text {
    transition: all 0.3s ease;
    opacity: 1;
}

.sidebar.collapsed .sidebar-menu li a .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-menu li a i {
    margin-right: 0;
    font-size: 1.1rem;
}

.sidebar-menu li a.active, 
.sidebar-menu li a:hover { 
    background: #f3e8ff; 
    color: #7c3aed; 
}

/* Mainbar Styles */
.mainbar { 
    margin-left: 240px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    transition: all 0.3s ease;
}

.mainbar.collapsed {
    margin-left: 60px;
}

/* Topbar Styles */
.topbar { 
    height: 60px; 
    background: linear-gradient(90deg, #f8fafc 60%, #e3e6f3 100%);
    border-bottom: 1px solid #e5e5e5; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 1rem; 
    position: fixed; 
    left: 240px; 
    right: 0; 
    top: 0; 
    z-index: 101;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(91,63,162,0.04);
}

.mainbar.collapsed .topbar {
    left: 60px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: #5b3fa2;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-toggle-mobile:hover {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Mobile overlay for sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(91,63,162,0.08);
}

.brand-text {
    font-family: 'Li Shadhinata', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5b3fa2;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 0.5rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-content { 
    margin-top: 60px; 
    padding: 1rem; 
    flex: 1; 
    background: #f8f9fa; 
    min-height: 0; 
}

.main-footer { 
    background: linear-gradient(90deg, #ede9fe 0%, #f8fafc 100%);
    color: #5b3fa2; 
    padding: 1rem 2rem; 
    text-align: center; 
    border-top: 1px solid #e0e7ff; 
    margin-left: 240px;
    transition: all 0.3s ease;
}

.mainbar.collapsed .main-footer {
    margin-left: 60px;
}
  /* Responsive Styles */
@media (max-width: 991px) {
    .sidebar-toggle-mobile {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        z-index: 1000;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 240px;
        transform: translateX(-100%);
    }
    
    .mainbar, .main-footer {
        margin-left: 0;
    }
    
    .topbar {
        left: 0;
    }
    
    .topbar-center {
        display: none;
    }
    
    .manubar-options {
        display: none !important;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        display: none;
    }
    
    .sidebar.show {
        display: block;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar.collapsed {
        width: 280px;
    }
    
    .brand-text {
        display: none;
    }
    
    .topbar-right {
        gap: 0.5rem;
    }
    
    .manubar-link span {
        display: none !important;
    }
    
    /* Ensure sidebar is properly positioned on mobile */
    .sidebar.show {
        transform: translateX(0);
        display: block;
    }
}
  
  /* Additional Element Styles */
.user-avatar {
    height: 36px;
    width: 36px;
    object-fit: cover;
    
    border: 2px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(91,63,162,0.08);
    border-radius: 50%;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 0.95rem;
    opacity: 0.9;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    display: inline-block;
}

.notifications-btn {
    background: none;
    border: none;
    color: #5b3fa2;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.notifications-btn:hover {
    background: #f3e8ff;
    color: #7c3aed;
}

.notifications-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.notification-header {
    font-weight: 600;
    color: #5b3fa2;
    margin-bottom: 0.5rem;
}

.notification-item {
    font-size: 0.98rem;
    color: #333;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    margin-bottom: 0;
}

/* --- Dashboard Manubar & Sidebar Soft Branding --- */
  .manubar-link {
      color: #5b3fa2;
      font-weight: 600;
      font-size: 1.08rem;
      letter-spacing: 0.5px;
      padding: 8px 18px;
      border-radius: 6px;
      transition: background 0.2s, color 0.2s;
      text-decoration: none;
      background: transparent;
  }
  .manubar-link:hover, .manubar-link.donate {
      background: #f3e8ff;
      color: #7c3aed;
  }
  .manubar-link.donate {
      background: linear-gradient(100deg, #24fbc2 0%, #ff0000 100%);
      color: #fff;
      font-weight: 700;
      box-shadow: 0 2px 8px rgba(251,191,36,0.08);
      transition: all 0.3s ease;
  }
  .manubar-link.donate:hover {
    background: linear-gradient(100deg, #01a87c 0%, #a20101 100%);
    color: #fff;
  }
  

  .sidebar {
      background: linear-gradient(180deg, #ede9fe 0%, #f8fafc 100%);
      color: #5b3fa2;
      box-shadow: 2px 0 8px rgba(91,63,162,0.04);
  }
  .sidebar ul li a {
      color: #5b3fa2;
      font-weight: 600;
      background: transparent;
  }
  .sidebar ul li a.active, .sidebar ul li a:hover {
      background: #f3e8ff;
      color: #7c3aed;
  }
  .main-footer {
      background: linear-gradient(90deg, #ede9fe 0%, #f8fafc 100%);
      color: #5b3fa2;
      font-weight: 500;
      letter-spacing: 0.5px;
  }
  
  .theme-switcher { margin-left: 1rem; }
  .search-bar { min-width: 220px; border-radius: 6px; border: 1px solid #e0e7ff; padding: 6px 12px; }
  .profile-completeness-bar { height: 8px; border-radius: 6px; background: #e0e7ff; margin-bottom: 8px; }
  .profile-completeness-bar-inner { height: 100%; border-radius: 6px; background: linear-gradient(90deg,#5b3fa2,#7c3aed); transition: width 0.4s; }
  .settings-link { color: #5b3fa2; font-size: 1.05rem; display: block; margin: 0.5rem 0; }
  .security-tip { font-size: 0.95rem; color: #7c3aed; margin: 0.3rem 0; }
  .footer-links a { color: #5b3fa2; margin: 0 0.7rem; text-decoration: none; font-weight: 500; }
  .footer-links a:hover { text-decoration: underline; color: #7c3aed; }
  @media (max-width: 600px) {
      .search-bar { min-width: 120px; }
  }
  
  /* --- Improved Light Theme Colors --- */
  body {
      background: #f4f6fb;
      color: #232946;
  }
  .topbar, .main-footer {
      background: linear-gradient(90deg, #f4f6fb 60%, #e3e6f3 100%);
      color: #232946;
  }
  .sidebar {
      background: linear-gradient(180deg, #e3e6f3 0%, #f4f6fb 100%);
      color: #232946;
  }
  .sidebar ul li a {
      color: #5b3fa2;
  }
  .sidebar ul li a.active, .sidebar ul li a:hover {
      background: #e0e7ff;
      color: #232946;
  }
  .card, .card-header, .card-body {
      background: #fff !important;
      color: #232946 !important;
  }
  .btn, .btn-outline-primary, .btn-outline-danger {
      background: #5b3fa2;
      color: #fff;
      border-color: #5b3fa2;
  }
  .btn:hover, .btn-outline-primary:hover, .btn-outline-danger:hover {
      background: #7c3aed;
      color: #fff;
  }
  .search-bar {
      background: #fff;
      color: #232946;
      border: 1px solid #5b3fa2;
  }
  /* Modern Profile Dropdown Styles */
  .profile-dropdown {
      display: none;
      position: absolute;
      right: 0;
      top: 48px;
      width: 280px;

      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      z-index: 9999;
      overflow: hidden;
      transform: translateY(-10px);
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .profile-dropdown.show {
      transform: translateY(0);
      opacity: 1;
  }
  
  .profile-header {
      padding: 20px;
   
      color: white;
      text-align: center;
  }
  
  .profile-avatar {
      margin-bottom: 12px;
  }
  
  .profile-avatar img {
      width: 60px;
      height: 60px;
      border: 3px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .profile-name {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0 0 4px 0;
      color: white;
  }
  
  .profile-role {
      font-size: 0.9rem;
      opacity: 0.9;
      color: rgba(255, 255, 255, 0.9);
  }
  
  .profile-actions {
      padding: 12px 0;
  }
  
  .profile-action-item, .profile-action-item:visited, .profile-action-item:active {
      display: flex;
      align-items: center;
      padding: 12px 20px;
      color: #374151;
      text-decoration: none;
      transition: all 0.2s ease;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      font-size: 0.95rem;
      cursor: pointer;
      outline: none;
  }
  
  .profile-action-item:focus {
      outline: none;
      box-shadow: 0 0 0 2px #e0e7ff;
  }
  
  .profile-action-item:hover {
      background: #f3f4f6;
      color: #5b3fa2;
      text-decoration: none;
  }
  
  .profile-action-item i {
      width: 20px;
      margin-right: 12px;
      font-size: 1rem;
      color: #6b7280;
  }
  
  .profile-action-item:hover i {
      color: #5b3fa2;
  }
  
  .profile-action-item.logout-btn {
      color: #dc2626;
  }
  
  .profile-action-item.logout-btn:hover {
      background: #fef2f2;
      color: #dc2626;
  }
  
  .profile-action-item.logout-btn i {
      color: #dc2626;
  }
  
  .profile-divider {
      height: 1px;
      background: #e5e7eb;
      margin: 8px 0;
  }
  
  /* Responsive Profile Dropdown */
  @media (max-width: 768px) {
      .profile-dropdown {
          width: 260px;
          right: -10px;
      }
      
      .profile-header {
          padding: 16px;
      }
      
      .profile-avatar img {
          width: 50px;
          height: 50px;
      }
      
      .profile-name {
          font-size: 1rem;
      }
      
      .profile-role {
          font-size: 0.85rem;
      }
      
      .profile-action-item {
          padding: 10px 16px;
          font-size: 0.9rem;
      }
  }
  
  @media (max-width: 480px) {
      .profile-dropdown {
          width: 240px;
          right: -20px;
      }
      
      .profile-header {
          padding: 14px;
      }
      
      .profile-avatar img {
          width: 45px;
          height: 45px;
      }
      
      .profile-action-item {
          padding: 8px 14px;
          font-size: 0.85rem;
      }
  }
  .footer-links a {
      color: #5b3fa2;
  }
  .footer-links a:hover {
      color: #7c3aed;
  }
  .theme-switcher {
      background: #fff;
      color: #5b3fa2;
      border-color: #5b3fa2;
  }
  .theme-switcher:hover {
      background: #5b3fa2;
      color: #fff;
  }
  
  /* --- Improved Dark Theme Colors --- */
  body.dark-theme {
      background: #181825;
      color: #f4f6fb;
  }
  body.dark-theme .dashboard-wrapper,
  body.dark-theme .mainbar,
  body.dark-theme .main-content {
      background: #181825;
      color: #f4f6fb;
  }
  body.dark-theme .topbar {
      background: linear-gradient(90deg, #232946 60%, #181825 100%);
      color: #f4f6fb;
      box-shadow: 0 2px 8px rgba(36,34,62,0.12);
  }
  body.dark-theme .sidebar {
      background: linear-gradient(180deg, #232946 0%, #181825 100%);
      color: #f4f6fb;
      box-shadow: 2px 0 8px rgba(36,34,62,0.10);
  }
  body.dark-theme .sidebar ul li a {
      color: #f4f6fb;
  }
  body.dark-theme .sidebar ul li a.active,
  body.dark-theme .sidebar ul li a:hover {
      background: #393a5a;
      color: #fbbf24;
  }
  body.dark-theme .main-footer {
      background: linear-gradient(90deg, #232946 0%, #181825 100%);
      color: #f4f6fb;
  }
  body.dark-theme .card,
  body.dark-theme .card-header,
  body.dark-theme .card-body {
      background: #232946 !important;
      color: #f4f6fb !important;
  }
  body.dark-theme .btn,
  body.dark-theme .btn-outline-primary,
  body.dark-theme .btn-outline-danger {
      background: #7c3aed;
      color: #fff;
      border-color: #fbbf24;
  }
  body.dark-theme .btn:hover,
  body.dark-theme .btn-outline-primary:hover,
  body.dark-theme .btn-outline-danger:hover {
      background: #fbbf24;
      color: #232946;
  }
  body.dark-theme .search-bar {
      background: #232946;
      color: #f4f6fb;
      border: 1px solid #fbbf24;
  }
  body.dark-theme .profile-dropdown {
      background: #232946;
      color: #f4f6fb;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  body.dark-theme .profile-header {
      background: linear-gradient(135deg, #7c3aed 0%, #5b3fa2 100%);
  }
  
  body.dark-theme .profile-action-item {
      color: #f4f6fb;
  }
  
  body.dark-theme .profile-action-item:hover {
      background: #393a5a;
      color: #fbbf24;
  }
  
  body.dark-theme .profile-action-item i {
      color: #a1a1aa;
  }
  
  body.dark-theme .profile-action-item:hover i {
      color: #fbbf24;
  }
  
  body.dark-theme .profile-divider {
      background: #393a5a;
  }
  body.dark-theme .footer-links a {
      color: #fbbf24;
  }
  body.dark-theme .footer-links a:hover {
      color: #fff;
  }
  body.dark-theme .theme-switcher {
      background: #232946;
      color: #fbbf24;
      border-color: #fbbf24;
  }
  body.dark-theme .theme-switcher:hover {
      background: #fbbf24;
      color: #232946;
  }
  
  /* Dark theme styles for manubar-link */
body.dark-theme .manubar-link {
    color: #f4f6fb;
}

body.dark-theme .manubar-link:hover, 
body.dark-theme .manubar-link.donate {
    background: #393a5a;
    color: #fbbf24;
}

body.dark-theme .manubar-link.donate {
    background: linear-gradient(100deg, #24fbc2 0%, #ff0000 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251,191,36,0.2);
}

body.dark-theme .logo-img {
    filter: brightness(0) invert(1);
    background: #4362ff33;
    border-radius: 50%;
}

/* Dark theme styles for new sidebar elements */
body.dark-theme .sidebar {
    background: linear-gradient(180deg, #232946 0%, #181825 100%);
    color: #f4f6fb;
    box-shadow: 2px 0 8px rgba(36,34,62,0.10);
}

body.dark-theme .sidebar-header {
    border-bottom: 1px solid #393a5a;
}

body.dark-theme .sidebar-toggle-btn {
    color: #f4f6fb;
}

body.dark-theme .sidebar-toggle-btn:hover {
    background: #393a5a;
    color: #fbbf24;
}

body.dark-theme .sidebar-menu li a {
    color: #f4f6fb;
}

body.dark-theme .sidebar-menu li a.active,
body.dark-theme .sidebar-menu li a:hover {
    background: #393a5a;
    color: #fbbf24;
}

body.dark-theme .sidebar-toggle-mobile {
    color: #f4f6fb;
}

body.dark-theme .sidebar-toggle-mobile:hover {
    background: #393a5a;
    color: #fbbf24;
}

body.dark-theme .brand-text {
    color: #f4f6fb;
}

body.dark-theme .notifications-btn {
    color: #f4f6fb;
}

body.dark-theme .notifications-btn:hover {
    background: #393a5a;
    color: #fbbf24;
}

body.dark-theme .notifications-dropdown {
    background: #232946;
    color: #f4f6fb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .notification-header {
    color: #fbbf24;
}

body.dark-theme .notification-item {
    color: #f4f6fb;
}

body.dark-theme .notification-item:hover {
    background: #393a5a;
}

body.dark-theme .user-avatar {
    border-color: #393a5a;
    box-shadow: 0 2px 8px rgba(251,191,36,0.1);
}
.uprofileDropdownBtn{
    background-color: transparent;
}
body.dark-theme .uprofileDropdownBtn{
    background-color: #fffffff9;
    border-radius: 50%;
}

/* Dark theme for mobile overlay */
body.dark-theme .sidebar-overlay {
    background: rgba(0, 0, 0, 0.7);
}
body.dark-theme .sidebar-logo{
    background-color: #ffffff;
    border-radius: 15px;
}
  
  /* Force pointer events for dropdown and children */
  .profile-dropdown, .profile-dropdown * {
      pointer-events: auto !important;
  }
  
@media (max-width: 991px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 70px !important; /* below topbar */
        left: 50 !important;
        right: 0 !important;
        min-width: unset !important;
        width: 70vw !important;
        border-radius: 0 0 16px 16px !important;
        z-index: 2000 !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 1.2rem 1rem 1rem 1rem;
        display: none; /* will be toggled by JS */
    }
    .notifications-dropdown.show {
        display: block !important;
    }
}
  
/* Sub Committees Page Custom Styles */
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
}
.list-group-item {
    font-size: 1.08rem;
}
@media (max-width: 768px) {
    .card-title { font-size: 1rem; }
}
  
/* Emergency Hotline Floating Button */
.emergency-hotline-btn {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.emergency-hotline-btn button {
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
    outline: none;
}
.emergency-hotline-btn button:hover {
    background: #b0060f;
}
.emergency-hotline-btn span {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #e50914;
    text-shadow: 0 1px 2px #fff;
}

/* Emergency Hotline Modal */
.emergency-hotline-modal {
    display: none;
    position: fixed;
    z-index: 1300;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    align-items: center;
    justify-content: center;
}
.emergency-hotline-modal.active {
    display: flex !important;
}
.emergency-hotline-modal .hotline-modal-content {
    background: #fff;
    padding: 32px 24px 24px 24px;
    border-radius: 16px;
    max-width: 340px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}
.emergency-hotline-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e50914;
    cursor: pointer;
}
@media (max-width: 600px) {
    .emergency-hotline-btn {
        right: 12px;
        bottom: 80px;
    }
    .emergency-hotline-modal .hotline-modal-content {
        padding: 20px 8px 16px 8px;
        max-width: 95vw;
    }
}
  
  /* Force pointer events for dropdown and children */
  .profile-dropdown, .profile-dropdown * {
      pointer-events: auto !important;
  }
  
@media (max-width: 991px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 70px !important; /* below topbar */
        left: 50 !important;
        right: 0 !important;
        min-width: unset !important;
        width: 70vw !important;
        border-radius: 0 0 16px 16px !important;
        z-index: 2000 !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 1.2rem 1rem 1rem 1rem;
        display: none; /* will be toggled by JS */
    }
    .notifications-dropdown.show {
        display: block !important;
    }
}
  
  /* Sub Committees Page Custom Styles */
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
}
.list-group-item {
    font-size: 1.08rem;
}
@media (max-width: 768px) {
    .card-title { font-size: 1.1rem; }
}
  

/* Sub-Committees Tree Styles */
.tree-root-node, .committee-node, .member-node {
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 7px;
    margin-bottom: 6px;
    background: #f8f9fa;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}
.tree-root-node.active, .committee-node.active {
    background: #e9ecef;
    font-weight: 600;
}
.tree-children {
    margin-left: 32px;
    border-left: 2px dashed #d1d5db;
    padding-left: 18px;
    animation: expandFade 0.4s;
}
.member-photo:hover {
    box-shadow: 0 0 0 4px #5b3fa2;
}
@keyframes expandFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  

/* Sub-Committees Modern Tree Styles */
.tree {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 0 auto;
}
.tree .tree-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 7px;
    background: #f8f9fa;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    user-select: none;
    gap: 10px;
}
.tree .tree-toggle.open {
    background: #e9ecef;
    font-weight: 600;
}
.tree .tree-children {
    list-style: none;
    margin-left: 32px;
    border-left: 2px dashed #d1d5db;
    padding-left: 18px;
    display: none;
    animation: expandFade 0.4s;
}
.tree .tree-children.open {
    display: block;
    animation: expandFade 0.4s;
}
.member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.member:hover {
    background: #f0f4ff;
}
.member-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5b3fa2;
    background: #fff;
}
@keyframes expandFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  

.ltr-tree-wrapper {
    position: relative;
    overflow-x: auto;
    padding: 2rem 0;
    min-height: 500px;
    width: 100%;
}
.ltr-tree-root {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.ltr-tree-level {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-left: 2.5rem;
    position: relative;
}
.ltr-tree-node {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2rem 1.2rem;
    min-width: 260px;
    max-width: 340px;
    position: relative;
    transition: box-shadow 0.2s;
    margin-bottom: 0.5rem;
}
.ltr-tree-node:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ltr-root-node {
    background: #1976d2;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 180px;
    text-align: center;
    padding: 2rem 1.2rem;
    box-shadow: 0 4px 16px rgba(25,118,210,0.15);
}
.ltr-committee-node {
    border-left: 5px solid #90caf9;
    margin-left: 0;
}
.ltr-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ltr-desc {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    white-space: pre-line;
    line-height: 1.7;
}
.ltr-members-level {
    margin-left: 2.5rem;
    gap: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .ltr-members-level {
        flex-direction: column;
        margin-left: 0.5rem;
    }
}
@media (max-width: 600px) {
    .ltr-members-level {
        flex-direction: column;
        margin-left: 0.2rem;
    }
}
.ltr-member-node {
    border-left: 4px solid #bdbdbd;
    background: #f5faff;
    margin-left: 0;
    min-width: 220px;
    max-width: 300px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
}
.ltr-member {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 1.05rem;
}
.ltr-member img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #90caf9;
    background: #fff;
}
.ltr-tree-svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 1200px) {
    .ltr-tree-root { gap: 1.2rem; }
    .ltr-tree-level { gap: 1.2rem; }
}
@media (max-width: 900px) {
    .ltr-tree-root { flex-direction: column; gap: 2rem; }
    .ltr-tree-level { flex-direction: row; gap: 1.2rem; margin-left: 0.5rem; }
    .ltr-tree-node, .ltr-member-node { min-width: 90vw; max-width: 98vw; }
}
@media (max-width: 600px) {
    .ltr-tree-root { flex-direction: column; gap: 1rem; }
    .ltr-tree-level { flex-direction: column; gap: 1rem; margin-left: 0.2rem; }
    .ltr-tree-node, .ltr-member-node { min-width: 98vw; max-width: 99vw; }
}
  
  /* Force pointer events for dropdown and children */
  .profile-dropdown, .profile-dropdown * {
      pointer-events: auto !important;
  }
  
@media (max-width: 991px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 70px !important; /* below topbar */
        left: 50 !important;
        right: 0 !important;
        min-width: unset !important;
        width: 70vw !important;
        border-radius: 0 0 16px 16px !important;
        z-index: 2000 !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 1.2rem 1rem 1rem 1rem;
        display: none; /* will be toggled by JS */
    }
    .notifications-dropdown.show {
        display: block !important;
    }
}
  
/* Sub Committees Page Custom Styles */
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
}
.list-group-item {
    font-size: 1.08rem;
}
@media (max-width: 768px) {
    .card-title { font-size: 1.1rem; }
}
  

/* Sub-Committees Tree Styles */
.tree-root-node, .committee-node, .member-node {
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 7px;
    margin-bottom: 6px;
    background: #f8f9fa;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}
.tree-root-node.active, .committee-node.active {
    background: #e9ecef;
    font-weight: 600;
}
.tree-children {
    margin-left: 32px;
    border-left: 2px dashed #d1d5db;
    padding-left: 18px;
    animation: expandFade 0.4s;
}
.member-photo:hover {
    box-shadow: 0 0 0 4px #5b3fa2;
}
@keyframes expandFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  

/* Sub-Committees Modern Tree Styles */
.tree {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 0 auto;
}
.tree .tree-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 7px;
    background: #f8f9fa;
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    user-select: none;
    gap: 10px;
}
.tree .tree-toggle.open {
    background: #e9ecef;
    font-weight: 600;
}
.tree .tree-children {
    list-style: none;
    margin-left: 32px;
    border-left: 2px dashed #d1d5db;
    padding-left: 18px;
    display: none;
    animation: expandFade 0.4s;
}
.tree .tree-children.open {
    display: block;
    animation: expandFade 0.4s;
}
.member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.member:hover {
    background: #f0f4ff;
}
.member-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5b3fa2;
    background: #fff;
}
@keyframes expandFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  
