/* General styles */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #1d246f;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.wrapper {
  position: relative;
}

.wrapper .top_navbar {
  width: 100%;
  height: 60px; /* Adjusted height */
  display: flex;
  position: fixed;
  top: 0;
  z-index: 1;
  background: #1d246f; /* Changed background color to white */
  justify-content: space-between; /* Ensure proper alignment */
  align-items: center;
  box-shadow: 0 2px 4px rgba(119, 112, 112, 0.1); /* Added shadow for better visibility */
}

.wrapper .top_navbar .hamburger {
  width: 60px; /* Adjusted width */
  height: 100%; /* Adjusted to full height of the navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.wrapper .top_navbar .hamburger div {
  width: 30px; /* Adjusted width */
  height: 4px; /* Adjusted height */
  background: #e8e8e8;
  margin: 5px 0; /* Adjusted margin */
  border-radius: 5px;
}

.wrapper .top_navbar .top_menu {
  flex-grow: 1;
  height: 100%; /* Adjusted to full height of the navbar */
  background: #1d246f; /* Ensuring the same background color */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Adjusted padding */
}

.wrapper .top_navbar .top_menu .logo {
  display: flex;
  align-items: center;
}

.wrapper .top_navbar .top_menu .logo .logo-img {
  height: 40px; /* Adjust the size as needed */
}

.wrapper .top_navbar .top_menu ul {
  display: flex;
}

.wrapper .top_navbar .top_menu ul li a {
  display: block;
  margin: 0 10px; /* Adjusted margin */
  width: 35px; /* Adjusted width */
  height: 35px; /* Adjusted height */
  line-height: 35px; /* Adjusted line-height */
  text-align: center;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
}

.wrapper .top_navbar .top_menu ul li a:hover {
  background: #4360b5;
  color: #ffffff;
}

.wrapper .top_navbar .top_menu ul li a:hover i {
  color: #ffffff;
}

.wrapper .sidebar {
  position: fixed;
  top: 60px; /* Adjusted to be below the top bar */
  left: 0;
  background: #1d246f;
  width: 50%; /* Adjusted width */
  height: calc(100% - 60px); /* Adjusted to account for top bar height */
  transition: transform 0.3s ease;
  z-index: 1;
}

.wrapper .sidebar.hidden {
  transform: translateX(-100%);
}

.wrapper .sidebar .close-btn {
  font-size: 30px; /* Adjusted font size */
  color: #fff;
  text-align: right;
  padding: 10px;
  cursor: pointer;
}

.wrapper .sidebar ul li a {
  display: block;
  padding: 20px; /* Adjusted padding */
  color: #fff;
  position: relative;
  margin-bottom: 1px;
  color: #92a6e2;
  white-space: nowrap;
}

.wrapper .sidebar ul li a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #92a6e2;
  display: none;
}

.wrapper .sidebar ul li a span.icon {
  margin-right: 10px; /* Adjusted margin */
  display: inline-block;
  font-size: 15px; /* Adjusted font size */
}

.wrapper .sidebar ul li a span.title {
  display: inline-block;
  font-size: 14px; /* Adjusted font size */
}

.wrapper .sidebar ul li a:hover,
.wrapper .sidebar ul li a.active {
  background: #2660ac;
  color: #ffffff;
}

.wrapper .sidebar ul li a:hover:before,
.wrapper .sidebar ul li a.active:before {
  display: block;
}

.wrapper .main_container {
  width: 100%;
  margin-top: 60px; /* Adjusted to be below the top bar */
  padding: 0;
  transition: all 0.3s ease;
}

.wrapper .main_container iframe {
  border: none;
  width: 100%;
  height: calc(100vh - 60px); /* Adjusted to account for top bar height */
}

.hidden {
  display: none;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .wrapper .sidebar {
    width: 50%; /* 50% width for mobile */
  }
}

/* Popup styles */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px; /* Ensuring a rectangle shape */
}

.popup.hidden {
  display: none;
}

.popup-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.popup-content button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.popup-content button#not-now {
  background-color: #6c757d;
}

.popup-content button:hover {
  background-color: #0056b3;
}

.popup-content button#not-now:hover {
  background-color: #5a6268;
}
