@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');
          @import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600&display=swap');
    * { box-sizing: border-box; margin: 0; padding: 0; }
 
        body {
            font-family: 'Noto Sans Bengali', sans-serif;
            background-color: #fff5f5;            
             background: #f5f5f5;
              min-height: 100vh;
        }
  .modal-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center; /* flex-start করলে modal উপরে থাকবে */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
  z-index: 9999;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal {
  opacity: 1;
  transform: translateY(0);
}

.modal h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #d32f2f;
  line-height: 1.3;
}

.modal p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

    .highlight {
      display: inline-block;
      background: #fff3cc;
      padding: 0.5em 0.75em;
      border-radius: 6px;
      font-weight: 600;
    }
    .warning {
      background: #ffe0e0;
      color: #b00020;
      padding: 0.5em 0.75em;
      border-radius: 6px;
      font-weight: 600;
      display: inline-block;
    }
    .modal button {
      margin-top: 1rem;
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(135deg, #e53935, #d32f2f);
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s ease, transform 0.2s ease;
    }
    .modal button:hover {
      background: linear-gradient(135deg, #d32f2f, #c62828);
      transform: translateY(-2px);
    }
        .header-bg {
            background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
        }
        
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;    
}


.popup-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    max-height: 90vh;   
    overflow-y: auto;    
}

        
        .close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            font-weight: bold;
            color: #c53030;
            cursor: pointer;
        }
        
        .blood-drop {
            position: relative;
            width: 20px;
            height: 30px;
            background-color: #c53030;
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
            transform: rotate(45deg);
            display: inline-block;
            margin-right: 10px;
        }
        
        .compatibility-cell-yes {
            background-color: #c6f6d5;
            color: #276749;
            font-weight: bold;
        }
        
        .compatibility-cell-no {
            background-color: #fed7d7;
            color: #9b2c2c;
            font-weight: bold;
        }
        
        .btn-primary {
            background-color: #c53030;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            background-color: #9b2c2c;
        }
        
        .success-message {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
      
table.dataTable thead {
  background: linear-gradient(90deg, #dc2626, #dc2626 );
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  color: white;
}



table.dataTable tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}
table.dataTable tbody tr:nth-child(even) {
  background-color: #ffffff;
}


table.dataTable tbody tr:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}


table.dataTable thead th.sorting:after {
  content: '⇅';
  margin-left: 6px;
  font-size: 0.8em;
  opacity: 0.5;
}
table.dataTable thead th.sorting_asc:after {
  content: '↑';
  opacity: 1;
}
table.dataTable thead th.sorting_desc:after {
  content: '↓';
  opacity: 1;
}


.new-donor-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  background-color: #dc2626;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background-color 0.2s;
}
.new-donor-btn:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
}

#donorsTable_wrapper::-webkit-scrollbar {
  height: 4px;
}
#donorsTable_wrapper::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 2px;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}
.search-toggle i {
  margin-right: 0.5rem;
}
.search-toggle.active {
  background: #dc2626;
  color: #fff;
}

.info-blue {
      background-color: #e3f2fd;
      color: #0d47a1;
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 20px;
      font-weight: bold;
      font-size: 15px;
      line-height: 1.6;
    }

    .messenger-button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background-color: #0084ff;
      color: white;
      text-decoration: none;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: bold;
      margin-top: 10px;
      transition: background-color 0.3s ease;
    }

    .messenger-button:hover {
      background-color: #006fd6;
    }

    .messenger-icon {
      width: 20px;
      height: 20px;
      vertical-align: middle;
      fill: white;
    }

@media (max-width: 640px) {
  #donorsTable_wrapper {
    padding: 0.25rem !important;
  }
}