* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('images/bg1.jpg') center/cover no-repeat, #f4f4f4;
  color: #333;
  height: auto;
  min-height: 100%;
}
 .container {
  max-width: 100%;
  min-height: 100%;
  margin: auto;
  padding: 10px 15px;
}

/* Header */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 5px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.title-box {
  background: #08180f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  font-size: 24px;
  font-weight: bold;
}

.logo-box img {
  height: 40px;
}

.social-icons {
  display: flex;
  gap: 15px;
  background: #fff;
  padding: 5px 15px;
  border-radius: 5px;
}

.social-icons a i {
  color: #08180f;
  font-size: 18px;
}

/* Navigation */
.second-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 5px 15px;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.menu-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.menu-bar a {
  color: #08180f;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.menu-bar a:hover,
.menu-bar a.active,
#sidebar a.active {
  background: lightgray;
  color: black !important;
  padding: 5px 10px;
  border-radius: 5px;
}

.search-box input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-box button {
  padding: 5px 10px;
  margin-left: 5px;
  background: #08180f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Content Row */
.third-row {
  display: flex;
  margin-top: 10px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.left-panel1 {
  width: 230px;
  height: 500px;
  background: #08180f;
  color: #fff;
  padding: 10px 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
}

#sidebar ul li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}

#sidebar ul li a:hover {
  background-color: lightgray;
  color: black;
}

.right-panel1 {
  flex: 1;
  width: 100%;
  background: #153e27;
  padding: 5px;
}

iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

#hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  margin-left: 10px;
}

/* Footer */
.footer-desktop {
  text-align: center;
  padding: 10px;
  background: #08180f;
  color: white;
  border-radius: 10px;
  margin-top: 10px;
}

/* Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.popup-buttons button {
  padding: 8px 15px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  background: #08180f;
  color: #fff;
  cursor: pointer;
}

.error-msg {
  color: red;
}

.popup-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-form h2 {
  color: #08180f;
}

.popup-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.popup-form input, .popup-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.popup-form button {
  margin-top: 15px;
  padding: 10px;
  background: #08180f;
  color: white;
  border: none;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.popup-form .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}

.popup-form .close-btn:hover {
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .header-row,
  .second-row,
  .third-row {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    display: none !important;
  }

  .left-panel1 {
    width: 100%;
  }

  .header-row {
    flex-direction: row;
    align-items: left;
  }

  .search-box {
    display: none !important;
  }

  .menu-bar {
    flex-direction: row;
    align-items: left;
  }

  #hamburger {
    display: block;
  }

  #sidebar {
    display: none;
  }

  #sidebar.open {
    display: block;
  }
}

/* Chat */
#chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: blue;
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#chat-box {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}

#chat-header {
  background: #08180f;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  border-radius: 10px 10px 0 0;
}

#chat-body {
  padding: 10px;
}

#chat-body input[type="text"],
#chat-body input[type="email"] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#chat-body button {
  width: 100%;
  padding: 8px;
  background: #08180f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#message-container {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.message {
  margin-bottom: 8px;
}

.message.user {
  text-align: right;
  color: blue;
}

.message.agent {
  text-align: left;
  color: green;
}

.message.system {
  text-align: center;
  color: gray;
  font-style: italic;
}

#user-message {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
