/*START: GENERAL*/
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  text-align: center;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 90%;
  margin: 20px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h5 {
  text-align: center;
  color: #333;
}

a {
  color: #007BFF;
  font-size: 18px;
}

td, thead {
   text-align: center;   
}

td, th {
    vertical-align: middle;   
    text-align: center;
    padding: 10px;
}

.table-striped tbody tr {
    height: 50px; /* Ensure minimum row height for better appearance */
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"] {
    width: 97%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.ul-div {
    margin: 10px;
}

ul, li, label {
  text-align: center;
}

.btn-primary {
  background-color: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.centered-ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.centered-ul .ul-div {
  margin: 10px;
}

.text-muted {
  color: #6c757d !important;
}

@media only screen and (max-width: 767px) {
  .container {
    padding: 10px;
  }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    input[type="text"],
    input[type="number"] {
        padding: 8px;
        margin-bottom: 8px;
    }
}

@media (max-width: 767px) {
  .dark-mode {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    margin-bottom: 20px;
    width: 100%;
  }

  .main-content {
    width: 100%;
  }

  .ul-div {
    text-align: center;
  }

  .ul-div h5,
  .ul-div p {
    margin-bottom: 5px;
  }

  .container {
    max-width: 100%;
    padding: 10px;
    max-width: none;
  }

  .centered-ul {
    flex-wrap: wrap;
  }

  .centered-ul .ul-div {
    flex: 0 0 100%;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .messaging-container {
    flex-direction: column;
  }

  .user-list, .chat-container {
    width: 100%;
  }

  .message-list {
    height: 300px;
  }

  #sidebar {
    display: none;
  }
  #content {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .navbar-nav.ml-auto {
    flex-direction: row;
  }
  .navbar-nav.ml-auto .nav-item {
    margin-left: 5px;
  }
}
/*END: GENERAL */


/*START: DARK MODE*/
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}
/*END: DARK MODE */


/* START: Insight Engine (Frontend Platform For Various Services on adult data link) */
#main {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    flex-grow: 1;
}

.btn {
    border-radius: 5px;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #ffffff;
}

.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

#spinner {
    display: none;
    text-align: center;
    margin-top: 20px;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: #007bff transparent transparent transparent;
}
.btn-group {
    margin-top: 20px;
}
.col-md-6 {
    margin-bottom: 20px;
}
.text-end {
    text-align: end;
}
.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.input-group label {
    color: #e0e0e0;
    margin-right: 10px;
}
.input-group input {
    border-radius: 5px;
    border: 1px solid #444;
    padding: 10px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    flex: 1;
}

.input-group button {
    border-radius: 5px;
    margin-left: 10px;
}

#log {
    background-color: #2c2c2c;
    border-radius: 5px;
    padding: 10px;
    color: #e0e0e0;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensures left alignment */
}

#log p {
    margin: 0;
    padding: 0;
    white-space: pre-wrap; /* Preserve whitespace and formatting */
}

#log .error {
    color: #ff4d4d;
}

#sidebar {
    background-color: #2b2b2b;
    width: 250px; /* Fixed width for sidebar */
    padding: 20px;
    position: fixed; /* Fixed positioning */
    height: 100vh; /* Full height */
    overflow-y: auto; /* Scrollable sidebar */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

#sidebar h3 {
    color: #3498db;
    font-size: 20px;
    margin-bottom: 20px;
}

#sidebar a {
    color: #d1d1d1;
    display: block;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#sidebar a:hover {
    background-color: #3b3b3b;
}

.input-group {
    display: flex;
    align-items: center;
}

.form-label {
    margin-right: 0.5rem;
}

.form-control {
    margin-right: 0.5rem;
}

.btn-group {
    margin-top: 0.5rem;
}

.dropdown-menu {
    background-color: #2c2c2c;
    color: #e0e0e0;
    max-height: 300px; /* Set the max height */
    overflow-y: auto; /* Enable scrolling */
    max-width: 700px; /* Set the max width */
    width: auto; /* Allow for automatic width adjustment */
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
}

.dropdown-content {
    white-space: pre-wrap; /* Preserve whitespace and formatting */
}
/* END: Insight Engine */


/* START: NAVBAR */
.navbar-nav .nav-item {
    margin-left: 5px; /* Space out the items */
}

.navbar-container {
  max-width: 90%;
  margin: 20px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    padding: 10px 20px;
    border-radius: 25px;
    color: black; 
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 5px;
    color: #0d6efd;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.d-flex .btn-outline-primary {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.d-flex .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.navbar-brand {
  font-size: 1.4rem; /* Adjust brand size slightly */
}

.custom-navbar {
  color: grey;
  background-color: #1a1a1a; /* Darker background for elegance */
  padding: 5px 15px; /* Comfortable spacing */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.custom-navbar .navbar-brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f8f9fa;
  transition: color 0.3s ease;
}

.custom-navbar .navbar-brand:hover {
  color: red; /* Red hover effect */
}

.custom-navbar .brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%; /* Rounded logo for consistency */
}

.custom-navbar .nav-link {
  color: #f8f9fa;
  font-size: 0.95rem;
  padding: 8px 12px;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
}

.custom-navbar .nav-link:hover {
  background-color: rgba(255, 0, 25, 0.1); /* Red glow hover */
  color: #ff0019; /* Red hover */
  transform: translateY(-2px); /* Slight hover lift */
}

.custom-navbar .nav-item .cta {
  background-color: #ff4500; /* CTA button standout color */
  color: #fff;
  font-weight: bold;
  border-radius: 25px;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
}

.custom-navbar .nav-item .cta:hover {
  background-color: #e03d00; /* Slightly darker for hover */
  color: #fff;
  transform: translateY(-3px) scale(1.05); /* Pop effect */
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3); /* Glow effect */
}

/* Animations */
.navbar-toggler-icon {
  border: 1px solid #f8f9fa; /* Custom toggle icon */
  border-radius: 5px;
}

.navbar-toggler-icon:hover {
  background-color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .custom-navbar .nav-link {
    margin: 5px 0;
  }

  .custom-navbar .cta {
    margin-top: 10px;
  }
}
/* END: NAVBAR */

