* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif; 
  }  

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: #f4e8f1;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
    
    /* Header Base Styling */
header {
  background-color: #573054;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Left Section - Logo */
.header-left .logo {
  height: 60px;
  width: auto;
}

/* Center Section - Title */
.header-center {
  flex: 1;
  text-align: left;
}


/* Right Section - Navigation */
.header-right nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.header-right a {
  text-decoration: none;
  color: whitesmoke;
  font-weight: 500;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-left,
  .header-center,
  .header-right {
    width: 100%;
    margin: 5px 0;
  }

  .header-right nav {
    justify-content: center;
  }

  .site-title {
    font-size: 1.3rem;
  }
}


    /*header {
      background-color: #573054;
      color: white;
      padding: 20px;
      text-align: center;
      flex-shrink: 0;
    }

    header nav {
      margin-top: 10px;
    }

    header nav a {
      color: white;
      margin: 0 15px;
      text-decoration: none;
    }*/

    /* Alphabet filter bar */
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.alpha-filter button {
  border: none;
  background-color: #e6e6e6;
  color: #333;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.alpha-filter button:hover,
.alpha-filter button.active {
  background-color: #8b4d7f;
  color: white;
}

/* Content wrapper for sidebar + main */
.content-wrapper {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 10px auto 40px auto;
  padding: 0 20px;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar styles */
.left-pane {
  width: 220px;
  /*background: #f1f5f9;*/
  background: #f4e8f1;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  height: fit-content;
  flex-shrink: 0;
}

.left-pane label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 7px;
  display: block;
}

.left-pane input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 2px solid #0073e6;
  border-radius: 4px;
  margin-bottom: 10px;
}

#typeCheckboxes label, 
#publisherCheckboxes label {
font-weight: normal !important;
font-size: 13px;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 4px;
}


/* Main container */
.container {
  flex: 1;
  margin: 0;
  padding: 0;
  width: 100%;
}

section {
  margin-bottom: 50px;
}

/* Table styles */
.table-wrapper {
  flex: 1;
  width: 97%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

thead {
  /*background-color: #0073e6;*/
  background-color: #8b4d7f;
  color: white;
}

td {
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

th {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}


td a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    margin: 10px 10px 40px 10px;
  }
  .left-pane {
    width: 100%;
    margin-bottom: 20px;
  }
  .container {
    width: 100%;
  }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    font-size: 14px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left p {
    margin: 0;
}

.footer-right ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.footer-right li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right li a:hover {
    color: #f39c12;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-right ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    .footer-left {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 15px 0;
    }
    .footer-container {
        padding: 0 15px;
    }
    .footer-left p {
        font-size: 12px;
    }
    .footer-right ul {
        gap: 8px;
    }
}


.pagination {
  margin-top: 10px;
  text-align: center;
}

.pagination button {
  margin: 0 3px;
  padding: 5px 10px;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

      
/* Search Bar Styling */
.search-bar {
  width: 80%;
  max-width: 1100px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.search-bar label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.search-bar input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.search-wrapper {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }

  table {
    width: 100%;
    display: block;
  }

  table thead {
    display: none;
  }

  table tbody tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 10px;
  }

  table tbody td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
  }
}

/* Hamburger button styles */
.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* Sidebar visibility */
.left-pane {
  transition: transform 0.3s ease;
}

/* Hidden sidebar (for small screens) */
.left-pane.hidden {
  transform: translateX(-100%);
  position: absolute;
  z-index: 10;
  background-color: white;
  height: 100vh;
  top: 0;
  left: 0;
  width: 250px;
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Media query for small screens */
@media (max-width: 768px) {
  .hamburger {
    display: inline-block;
  }

  .left-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    background-color: white;
    z-index: 1000;
    height: 100%;
    padding: 1rem;
    transform: translateX(-100%);
  }

  .left-pane.visible {
    transform: translateX(0);
  }

  .content-wrapper {
    flex-direction: column;
  }
}

#clearFiltersBtn{
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 7px;
}

p{
  font-weight: bold;
}

.about-us {
  text-align: center;
  max-width: 800px; /* You can adjust this width as needed */
  padding: 20px;

  /* Remove the background, border-radius, and box-shadow */
  background-color: #f4e8f1;
  border-radius: 0;
  box-shadow: none;

  /* Centering the content on the page */
  margin: 20px auto;  /* Reduces top margin to move it higher */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh; /* Reduces height to make space for footer */
}

/* Dropdown Styles for Nav */
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #573054;
  color: white;
  font-size: 15px;
  border: none;
  cursor: pointer;
  margin-top: 2px;
}

.dropbtn:hover,
.dropdown:hover .dropbtn {
  background-color: #77416f;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
}

.dropdown-content a {
  color: #333;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f4e8f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.header-right .dropdown {
  margin-top: -3px; /* Adjust this value as needed */
}

/* Login form */ 
.login-container{
  max-width: 400px;
  margin:  auto;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
      margin-bottom: 20px;
    }

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
}

.form-group input:focus {
  border-color: #0056b3;
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-check input {
  width: auto;
  margin-right: 10px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #004494;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer a {
  color: #0056b3;
  text-decoration: none;
  font-size: 14px;
}

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

.contact{
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64vh;
}

.contact p{
  font-weight: normal;
}

.terms {
  max-width: 800px;
  width: 90%;
  margin: 30px auto;
  padding: 20px;
  border: 3px solid #573054;
  text-align: justify;
  box-sizing: border-box;
}

.privacy {
  max-width: 800px;
  width: 90%;
  margin: auto;
  padding: 15px;
  text-align: justify; 
}

.privacy p{
  font-weight: normal;
}

/* Floating Chat Ring */
#chatbot-ring {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #6f42c1;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: transform 0.2s ease-in-out;
}

#chatbot-ring:hover {
  transform: scale(1.1);
}

/* #chatbot-notification {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: red;
  border-radius: 50%;
} */

/* Chat Box */
#chatbot-container {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1000;
  flex-direction: column;
  
}

/* Header */
#chatbot-header {
  background: #6f42c1;
  color: white;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Messages */
#chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  background: #f9f9f9;
  overflow-y: auto;
  font-size: 14px;
}

/* Chat bubbles */
.chat-message {
  background: #e0e0e0;
  color: #333;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  max-width: 80%;
  width: fit-content;
}

.chat-message:nth-child(odd) {
  background: #d6d6ff;
  align-self: flex-start;
}

.chat-message:nth-child(even) {
  background: #e3f4e8;
  align-self: flex-end;
}

/* Input */
#chatbot-input {
  border: none;
  border-top: 1px solid #ddd;
  padding: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 500px;
  margin: 15% auto;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.modal-content h2 {
  margin-top: 0;
}
.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #5548d9;
}