/* Root and Body Styles */
/* :root {
  --primary-color: #156A94;
  --primary-light: #63B7E0;
  --primary-dark: #146C94;
  --background-start: #19A7CE;
  --background-end: #19A7CE;
} */

@import 'colors.css';

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(-45deg, var(--background-start), var(--background-end));
  position: relative;
  z-index: 0;
}

/* Layout */
.container {
  max-width: 960px;
  flex: 1;
}

/* Stacking Context Base */
.stacking-context-root {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Navigation */
.navbar {
  background-color: var(--primary-dark) !important;
  padding: 10px 20px;
  position: relative;
  z-index: 1030 !important;
}

/* Remove transform and ensure proper stacking */
.chat-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: calc(100vh - 50px); /* Ensure enough height */
  background-color: #ffd000;
  border: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
  overflow:visible;
  display: flex;
  flex-direction: column;
  z-index: 100000;
  padding-top: 20px;
  text-align: left; /* Add this line */
}

.chat-popup.show {
  width: 100%;
  height: 90%;
  right: 0;
  border: radius 50px;
}

.chat-popup-header {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #eb1414;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.chat-popup-footer {
  position: r;
  z-index: 100001;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-popup-body {
  flex: 1;
  overflow: auto !important;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px); /* Adjust for header and padding */
}

.btn-close-custom {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: #ff5e5e;
  color: white;
  border: 2px solid #000;
  font-size: 1.25rem;
  padding: 0.4rem;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 100002;
  margin-right: 10px;
  margin-top: 1px;

  /* New styles for round button */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: top;
}

/* Floating Chat Button */
.float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 1.6rem;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.float-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
  transform: translateY(-3px) scale(1.05);
  color: white;
}

.float-button:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.float-button i {
  font-size: 1.6rem;
  line-height: 1;
}

/* Cards and UI Components */
.card {
  background-color: #F6F1F1 !important;
  color: black !important;
  margin-bottom: 2rem;
}

.transparentcard {
  background-color: var(--primary-color) !important;
  color: black !important;
  position: relative;
}

.logo-outer-container {
  display: inline-block;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;  /* Adjust based on your logo size */
  height: 350px;
  border-radius: 50%;
  background-color: transparent;
  box-shadow: 0 0 100px 10px rgba(255, 253, 241, 0.75);
  z-index: 999;
}

.logo-container {
  display: inline-block;
  background-color: transparent;
  text-align: center;
  line-height: normal;
  position: relative;
  z-index: 1000;
}

.main-logo {
  max-width: 400px;
  height: auto;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1000;
}
/* Button Styles */
.btnLocations-nopress {
  background-color: var(--primary-color) !important;
  border: none !important;
}

.btnLocations-pressed {
  background-color: var(--primary-light) !important;
  border: solid white !important;
  box-shadow: none;
}

/* ==================== Chat Messages ==================== */
#messages {
  list-style-type: none;
  margin: 0;
  padding: 15px;
  flex: 1 1 auto;
  overflow-y: auto !important;
  height: calc(90vh - 180px); /* Adjusted for mobile */
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f9fafb, #e3f2fd); /* Subtle gradient */
  border-radius: 12px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15); /* Floating effect */
  background-size: 200% 200%;
  animation: gradient 3s ease infinite; /* Smooth background animation */
  transition: box-shadow 0.3s ease-in-out; /* Smooth hover effect */
}

#messages:hover {
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2); /* Enhanced hover shadow */
}

#messages .chat-message {
  margin-bottom: 10px;
  padding: 10px 14px; /* Compact padding for mobile */
  background: linear-gradient(135deg, #e9f5fc, #d4ebfa); /* Gradient bubbles */
  border-radius: 10px;
  font-size: 0.9rem; /* Adjusted for readability on mobile */
  word-wrap: break-word; /* Ensure long words wrap */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Depth for messages */
  animation: fadeInUp 0.3s ease both; /* Animated message appearance */
}

/* ==================== Scrollbar Styling ==================== */
#messages::-webkit-scrollbar {
  width: 6px; /* Smaller scrollbar for mobile */
}

#messages::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light gray background */
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #888, #555); /* Gradient scrollbar */
  border-radius: 4px;
}

#messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #555, #333); /* Hover effect */
}

/* ==================== Footer Styling ==================== */
.footer {
  position: relative;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--text-light);
  text-align: center;
  padding: 5px 0;
  font-size: 0.85rem;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

/* ==================== Chat Popup Styling ==================== */
.chat-popup {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff, #f9fafb); /* Clean background */
  border-radius: 0; /* No rounded corners for mobile */
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  display: flex;
  flex-direction: column;
  z-index: 1050; /* Ensures it appears above other content */
  overflow: hidden;
  animation: fadeInUp 0.5s ease; /* Smooth pop-up animation */
}

.chat-popup-header {
  background: linear-gradient(135deg, #004aad, #007bff); /* Professional header gradient */
  color: #fff; /* Contrast for text */
  padding: 10px 15px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.chat-popup-body {
  flex: 1 1 auto;
  padding: 15px;
  overflow-y: auto;
  background-color: #f9fafb; /* Light background for readability */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
}

.chat-popup-footer {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ddd;
  background-color: #ffffff; /* Clean footer background */
}

.chat-popup-footer input {
  flex: 1;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem; /* Adjusted for smaller screens */
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-popup-footer button {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Button gradient */
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.chat-popup-footer button:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f); /* Hover gradient */
  transform: scale(1.05); /* Slight scaling effect */
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  #messages {
    height: calc(90vh - 180px); /* Optimized height */
    padding: 10px;
    border-radius: 8px; /* Slightly less rounded for mobile */
  }

  .chat-popup-header {
    font-size: 1rem; /* Adjusted font size */
    padding: 8px;
  }

  .chat-popup-footer {
    padding: 8px;
  }

  .chat-popup-footer input {
    font-size: 0.85rem; /* Smaller input text size */
    padding: 8px;
  }

  .chat-popup-footer button {
    font-size: 0.85rem; /* Smaller button text size */
    padding: 8px 10px;
  }

  .footer {
    font-size: 0.8rem; /* Smaller footer text size */
    padding: 2px 0;
  }
}

/* ==================== Animations ==================== */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Pop-up Massage*/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out;
}

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

.popup-content {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 20px;
  color: white;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
  }
  to {
    transform: translateY(0);
  }
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.5;
}

.popup.hidden {
  display: none;
}

.popup-content button {
  background-color: white;
  color: #4e73df;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin: 10px;
}

.popup-content button:hover {
  background-color: #1cc88a;
  color: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


/* Donation Page */
/* General Reset */
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  /* background: linear-gradient(to bottom, #f5faff, #dceefa); */
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

header {
  background-color: #003366;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 2rem;
}

header nav {
  margin-top: 10px;
}

header .home-button {
  background-color: #fff;
  color: #003366;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

header .home-button:hover {
  background-color: #f0f0f0;
}

.donation-section, .leaderboard-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 20px 0;
  text-align: center;
}

.donation-section h2, .leaderboard-section h2 {
  color: #003366;
  margin-bottom: 20px;
}

.donation-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.donation-options button {
  background-color: #003366;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.donation-options button:hover {
  background-color: #00509e;
}

form {
  margin-top: 20px;
}

form input[type="number"], form button {
  padding: 10px;
  font-size: 1rem;
  margin: 5px 0;
}

form input[type="number"] {
  width: calc(100% - 22px);
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  width: 100%;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #00509e;
}

.leaderboard-section p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.leaderboard-section ol {
  padding-left: 20px;
  text-align: left;
}

footer {
  text-align: center;
  padding: 15px;
  background-color: #003366;
  color: white;
  margin-top: 20px;
}


    /* nav {
        margin-left: auto;
    } */

    .home-button {
        background-color: white;
        color: #003366;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .home-button:hover {
        background-color: #00509e;
        color: white;
    }

    .text-light {
      color: var(--text-light) !important;
    }
    
    .contact-link {
      color: var(--link-color) !important;
      transition: color 0.3s ease;
    }
    
    .contact-link:hover {
      color: var(--link-hover-color) !important;
      text-decoration: none;
    }