@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

:root {
  --black: black;
  --white: white;
  --gray: rgba(128, 128, 128, 0.625);
  --section: white;
}

body.dark {
  --black: white;
  --white: black;
  --section: #252525;
}
body.home-active .right-sidebar {
    display: none !important;
}

#main-container {
  display: flex;
  position: relative;
}

section {
  flex: 1;
  min-height: 100vh;
  background-color: var(--section);
}

/* Increase Navbar Height */
.navbar {
    height: 80px !important; /* Adjust height as needed */
    display: flex;
    align-items: center; /* Keep items vertically centered */
    padding: 10px 20px; /* Adjust padding if needed */
}

.navbar-nav .btn {
    font-size: 18px !important; /* Adjust the font size as needed */
    font-weight: bold; /* Optional: Make the text bold */
    padding: 10px 15px; /* Optional: Adjust button padding */
}

/* === Navbar === */
.navbar {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.navbar a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #00d1b2;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

 
/* 🌟 Left Sidebar */
.sidebar {
  position: fixed;
  width: 250px;
  height: 720px;
  overflow: hidden !important;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  backdrop-filter: blur(10px);
  padding: 35px 10px 10px 10px;
  border-radius: 20px;
  transition: width 0.3s ease-in-out;
  background-color: transparent; /* No color here */
  color: white; /* Keep readable */
}

/* ✅ Add this for background image with transparency */
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("sidebar.png"); /* Must be in /assets/ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8; /* 🔍 Adjust transparency here */
  z-index: -1;  /* ✅ Send behind content */
  border-radius: 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
   border-radius: 50% !important;
   padding: 0.5em 0.9em !important;
}


.sidebar.shrink_sidebar {
  width: 55px;
  overflow: hidden;
}

.sidebar.shrink_sidebar ul {
  padding-left: 0;
}

.sidebar.shrink_sidebar ul li a span {
  display: none;
}

/* 🌟 Hide Submenu Icons When Sidebar is Collapsed */
.sidebar.shrink_sidebar .submenu {
  display: none !important; /* ❌ Hide submenus completely */
}

.sidebar.shrink_sidebar .sidebar-navlink > li > a i {
  display: inline-block; /* ✅ Keep main menu icons visible */
}

.sidebar.shrink_sidebar .submenu li i {
  display: none !important; /* ❌ Hide submenu icons */
}

/* 🌟 Collapse Button for Left Sidebar */
.collapse-btn {
  position: absolute;
  top: 10px;
  left: 10px; /* Adjusted for right sidebar */
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background-color 0.3s;
}

.collapse-btn:hover {
  background-color: rgba(255, 255, 255, 1);
}

.sidebar.shrink_sidebar .collapse-btn {
  transform: rotate(180deg);
  right: 30px; /* Ensure it remains inside */
}

.sidebar-navlink li a:hover {
  background-color: rgba(255, 255, 255, 0.15); /* Soft hover background */
  border-radius: 10px; /* Rounded corners */
  transition: background-color 0.3s ease;
}

.sidebar-navlink li a.active,
.sidebar-navlink li a:focus {
  background-color: rgba(255, 255, 255, 0.2); /* Highlight current */
  border-radius: 10px;
}

.sidebar-navlink li a:hover i,
.sidebar-navlink li a:hover span {
  color: black; /* Ensures readability */
}


/* Wrapper controls layout */
#page-wrapper {
  display: flex;
  transition: all 0.3s ease-in-out;
}

.database-layout {
  flex-grow: 1;
  margin-left: 270px; /* Full sidebar */
  padding: 20px;
  transition: margin-left 0.3s ease-in-out;
}

/* When sidebar shrinks */
#page-wrapper.sidebar-collapsed .database-layout {
  margin-left: 75px; /* Shrunk sidebar */
}


body.home-active #mysidebar {
  display: none !important;
}



/* 🌟 Menu Items */
.sidebar-navlink {
  list-style-type: none;
  padding: 0;
  margin-top: 15px;
}

/* Make submenu nested under main item */
.sidebar-navlink > li {
  display: block;
  padding: 0;
}

/* Style submenu */
.submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
  margin-top: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.submenu li {
  margin: 2px 0;
}

.submenu li a {
  font-size: 14px;
  font-weight: normal;
  color: #cccccc;
  padding: 6px 8px;
  display: block;
  border-radius: 6px;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}


/* Show submenu when menu-item is active */
li.open > .submenu {
  display: block;
}


.sidebar-navlink li i {
  margin-right: 6px;
}

.Select-control {
  background-color: white !important; /* Background color */
  color: gray !important; /* Text color */
}

.VirtualizedSelectOption {
  color: gray !important;
  background-color: white !important;
}

.VirtualizedSelectFocusedOption {
  background-color: gray !important;
  color: white !important;
}

/* 🌟 General List Styles */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 0;
  padding: 0;
}

ul li a {
  padding: 8px 12px;
  color: #4C5159;         /* 🎨 Set your desired text color */
  font-size: 16px;
  font-weight: bold;      /* ✅ Make the text bold */
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

ul li a:hover {
  color: #00bfff;         /* 🌟 Hover color */
}

ul li a.active {
  color: #2870D1;               /* Text color when active */
  font-weight: bold;
  background-color: rgba(0, 255, 127, 0.1); /* Subtle green background */
  border-radius: 10px;
}

ul li a.active i {
  color: #2870D1; /* Match active text color */
}



ul li a span {
  margin-left: 5px;
}

/* 🌟 Submenus */
.submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

li.open > .submenu {
  max-height: 500px; /* Adjust as needed depending on your submenu size */
  opacity: 1;
}


.submenu li {
  padding: 0 !important;
  margin: 0 !important;
}

.submenu li a {
  font-size: 14px;
  font-weight: normal;
  color: #4C5159;
  padding: 6px 8px;
  display: block;
  border-radius: 6px;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: black;
}



/* 🌟 When Right Sidebar is Collapsed */
.right-sidebar.collapse .submenu {
  display: block;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.image-slide {
  animation: slideIn 1.5s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-zoom {
  animation: zoomIn 1.2s ease-in-out;
}

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

.image-slide-down {
  animation: slideDown 1.5s ease-out;
}


@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.fade-in {
  animation: fadeIn 1.5s ease-in-out;
}

.bounce-arrow {
  animation: bounce 1s infinite;
  font-size: 100px;
  color: #3498db;
  text-align: center;
  margin-top: 10px;
}


/* Section wrapper to align with your white info boxes */
.team-section-wrapper {
  max-width: 1100px;
  margin: 20px auto 0 auto;
  padding: 10px 0 40px 0;
}

/* Title */
.team-section-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 20px 0 16px 0;
  color: #003366;
}

/* Responsive grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Card */
.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}

/* Hover micro-interaction */
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Photo */
.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #f2f5f9; /* nice placeholder tone while loading */
}

/* Text block */
.team-meta {
  padding: 14px 16px 18px 16px;
}

.team-name {
  font-size: 1.05rem;
  margin: 0 0 6px 0;
  color: #102a43;
}

.team-role {
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #335;
}

.team-focus {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.5;
  text-align: justify;   /* scientific/clean look */
}

/* Small screens */
@media (max-width: 420px) {
  .team-photo { height: 180px; }
}

/* Optional: tiny styles for the details panel */
.country-details {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(2,6,23,.08);
  max-height: 260px;
  overflow: auto;
  line-height: 1.5;
}
.country-details h4 { margin: 0 0 8px; font-size: 14px; color:#0f172a; }
.country-details ul { margin: 0; padding-left: 18px; }
.country-details .muted { color:#64748b; font-size:12px; }


/* Radial charts: enforce a real drawing area */




/* === Footer === */
.footer {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #ecf0f1;
  padding: 40px 20px;
  font-size: 15px;
  margin-top: 40px;
  font-family: 'Segoe UI', sans-serif;
  border-top: 4px solid #00d1b2;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
}

.footer-left p,
.footer-right p {
  margin: 10px 0;
  line-height: 1.6;
}

.footer-left strong {
  font-size: 1.1rem;
  color: #ffffff;
}

.footer a {
  color: #00d1b2;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-left p i {
  margin-right: 10px;
  color: #00d1b2;
}
