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



.container {
  max-width: 90%;
  margin: 20px auto;
  padding: 20px;
  border-radius: 5px;
}

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

.logo-container {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.animated-logo {
  width: 100%;
  height: auto;
  animation: logo-spin 4s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.animated-logo:hover {
  transform: scale(1.1);
}


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;
}

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;
}
.bg-dark {
    background-color: #212529 !important;
}

.bg-light {
    background-color: #343a40 !important;
}

.btn {
  border-radius: 50px;
  padding: 10px 20px;
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid #007BFF;
  color: #007BFF;
}

.btn-outline-primary:hover {
  background-color: #007BFF;
  color: #fff;
}

.btn-primary {
  background-color: #007BFF;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.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;
  }
}

.btn-animate {
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.btn-animate:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.4s;
}

.btn-animate:hover:before {
  left: 100%;
}

/*END: GENERAL */


/*START: FORM*/
.form-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #373b3e;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-control-file {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating label {
    color: #6c757d;
}

.was-validated .form-control:valid, 
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2328a745' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='8' stroke-width='2'/%3e%3cpath stroke='%2328a745' d='M6 8.5l1.5 1.5 3.5-3.5' stroke-width='2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(1.5em + 0.75rem) calc(1.5em + 0.75rem);
}

.was-validated .form-control:invalid, 
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23dc3545' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='8' stroke-width='2'/%3e%3cpath stroke='%23dc3545' d='M6 6l4 4m0-4l-4 4' stroke-width='2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(1.5em + 0.75rem) calc(1.5em + 0.75rem);
}
/*END: FORM */


.form-control {
    margin-bottom: 1rem;
}
.spinner-border {
    display: none;
}
.btn-success .spinner-border {
    display: inline-block;
}

.btn-success:disabled {
    cursor: not-allowed;
}

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


/* START: BLOG */
pre {
    margin: 20px 0; /* Adjust the margin as needed */
    padding: 10px;  /* Optional: Add padding inside the <pre> block */
    background-color: #7B7B7B; /* Change this color to your preferred background color */
    border: 1px solid #7B7B7B; /* Optional: Add a border to make the code block more distinct */
    border-radius: 5px; /* Optional: Round the corners of the border */
    overflow-x: auto; /* Optional: Add horizontal scrolling if the code is too wide */
    color: black;
}
/* END: BLOG */

/* 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 */


/* START: CARD */
.card-img-top {
    width: 100%;
    height: 400px;
    margin: 0 auto;
    object-fit: cover;
}

.card {
  border: none;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.card-header {
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.card-title {
  font-size: 2rem;
  margin: 0;
}

.card-text {
  font-size: 1.2rem;
  color: #666;
}
/* END: CARD */


.error {
    color: red;
    font-weight: bold;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.active {
    display: block;
}

.actions button {
    margin-right: 10px;
}

.results-table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}



/* Sidebar */
#sidebar {
    background-color: #1a1a1a;
    color: #fff;
    height: 100vh;
    position: fixed;
    width: 250px;
    padding: 1.5rem;
}

#sidebar h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

#sidebar a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

#sidebar a:hover {
    color: #fff;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

/* Metrics Section */
.metrics-card {
    background-color: #2c2c2c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.metrics-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-preview {
    max-height: 100px;
    object-fit: cover;
}

/* Activity Log */
.activity-log {
    max-height: 200px;
    overflow-y: auto;
    background: #2c2c2c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
}

.results-table {
    animation: fadeIn 0.8s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-download {
    transition: transform 0.2s ease;
}

.btn-download:hover {
    transform: scale(1.1);
}

bottom-links {
    margin-top: auto; /* Pushes the bottom links to the bottom of the sidebar */
}

.results-container {
    max-height: 400px; /* Adjust as needed */
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

.result-item:hover {
    background-color: #2c2c2c;
}

.result-item img {
    max-width: 80px;
    margin-right: 15px;
    border-radius: 5px;
}

.result-info {
    flex-grow: 1;
}

.result-actions {
    margin-left: 15px;
}

.result-item .btn-download {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.result-item .btn-download:hover {
    background-color: #2c2c2c;
}