/* These styles are generated from project.scss. */
:root {
  --header-height: 3rem;
  --nav-width: 68px;
  --first-color: #1f2937;
  --first-color-light: #afa5d9;
  --white-color: #f7f6fb;
  --header-text: #333333;
  --nav-color: #1f2937;
  --body-font: "Nunito", sans-serif;
  --normal-font-size: 1rem;
  --z-fixed: 100;
  --card-bg: #ffffff;
  --modal-bg: #ffffff;
  --card-text: #333333;
  --card-border: #eaeaea;
  --header-bg: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
  --item-bg: #f8f9fa;
  --card-bg-hover: #f8f9fa;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --btn-bg-color: rgb(65, 85, 108);
  --mdb-list-group-active-bg: rgb(65, 85, 108);
  --main-navbar:rgb(255 255 255 / 0%);
  --sidenav-bg: #e5e5e5;
  --hub-primary: #4A90E2;
  --hub-primary-dark: #357ABD;
  --hub-primary-light: #6BA3E9;
  --hub-success: #7BB146;
  --hub-success-dark: #6A9A3A;
  --hub-accent: #5AC8FA;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --sidebar-bg: #ffffff;
  --sidebar-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  --sidebar-item-hover: #f8f9fa;
  --sidebar-item-active: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --sidebar-text: #495057;
  --sidebar-text-active: #ffffff;
  --sidebar-border: #e9ecef;
  --transition-speed: 0.3s;
  --text-primary-hover: #1F2937;
}

[data-mdb-theme="dark"] {
  --mdb-body-bg: #202123;
  --header-text: #e2e8f0;
  --card-bg: linear-gradient(
    45deg,
    rgba(86, 88, 105, 0.1) 0%,
    rgba(86, 88, 105, 0.15) 100%
  );
  --modal-bg: #1a1d24;
  --card-text: #e2e8f0;
  --card-border: #353740;
  --header-bg: #303030;
  --item-bg: #3b4046;
  --card-bg-hover: linear-gradient(
    45deg,
    rgba(86, 88, 105, 0.15) 0%,
    rgba(86, 88, 105, 0.25) 100%
  );
  --shadow-color: rgba(0, 0, 0, 0.3);
  --sidenav-bg: #000000;
  --sidebar-bg: #1a1d24;
  --sidebar-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  --sidebar-item-hover: #2d3139;
  --sidebar-text: #adb5bd;
  --sidebar-border: #343a40;
  --text-primary-hover: #006aff;
}

[data-mdb-theme="dark"] .dropdown-menu {
  background: #2d2e34;
}

.modal-content {
  background: var(--modal-bg);
}

.hub-footer {
  --footer-bg: #f8f9fa;
  --footer-bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  --footer-text: #212529;
  --footer-text-muted: #6c757d;
  --footer-link: #495057;
  --footer-link-hover: var(--hub-primary);
  --footer-border: rgba(0, 0, 0, 0.1);
  --footer-card-bg: rgba(255, 255, 255, 0.8);
  --footer-shadow: rgba(0, 0, 0, 0.1);
  
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}


/* Top Border Animation */
.hub-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--hub-primary), 
    var(--hub-success), 
    var(--hub-primary), 
    transparent
  );
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Logo Styles */
.logo-primary {
  fill: var(--hub-primary);
}

.logo-accent {
  fill: var(--hub-success);
}

.logo-line {
  stroke: var(--hub-primary);
  opacity: 0.3;
}

.hub-logo svg {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Footer Links */
.footer-link {
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.footer-link:hover {
  color: var(--footer-link-hover);
  transform: translateX(3px);
}

.footer-link i {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.footer-link:hover i {
  transform: translateX(2px);
}

/* Legal Links */
.footer-legal-link {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--hub-primary);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--footer-link-hover);
}

.footer-legal-link:hover::after {
  width: 100%;
}

/* Social Buttons */
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--footer-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-link);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--footer-card-bg);
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  transform: translateY(-3px);
  background: var(--hub-primary);
  border-color: var(--hub-primary);
  color: white;
  box-shadow: 0 10px 20px var(--footer-shadow);
}

/* Badges Custom */
.badge-primary {
  background: linear-gradient(135deg, var(--hub-primary) 0%, var(--hub-primary-dark) 100%) !important;
  border: none;
  color: white !important;
}

.badge-success {
  background: linear-gradient(135deg, var(--hub-success) 0%, var(--hub-success-dark) 100%) !important;
  border: none;
  color: white !important;
}

.badge {
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px var(--footer-shadow);
}

/* Custom Primary Button */
.hub-btn-primary {
  background: linear-gradient(135deg, var(--hub-primary) 0%, var(--hub-primary-dark) 100%);
  border: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.hub-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(74, 144, 226, 0.5);
  background: linear-gradient(135deg, var(--hub-primary-light) 0%, var(--hub-primary) 100%);
  color: white;
}

/* Icon Colors */
.hub-text-primary {
  color: var(--hub-primary) !important;
}

/* Footer Divider */
.footer-divider {
  border: 0;
  border-top: 1px solid var(--footer-border);
  opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hub-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .company-section {
    text-align: center;
  }
  
  .hub-logo {
    margin: 0 auto;
  }
  
  .social-section {
    text-align: center;
  }
  
  .social-section .d-flex {
    justify-content: center;
  }
  
  .badge {
    font-size: 0.75rem;
  }
  
  h6.small {
    font-size: 0.8rem;
  }
  
  .footer-links {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hub-footer h3 {
    font-size: 1.25rem;
  }
  
  .d-flex.flex-wrap.gap-2 {
    justify-content: center;
  }
  
  .footer-contact .hub-btn-primary {
    width: 100%;
  }
}

/* Hover Animation for Sections */
@media (min-width: 992px) {
  .hub-footer h6 {
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .hub-footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--hub-primary), transparent);
    transition: width 0.3s ease;
  }
  
  .hub-footer .col-lg-3:hover h6::after,
  .hub-footer .col-lg-4:hover h6::after {
    width: 60px;
  }
}

/* Accessibility */
.hub-footer a:focus-visible {
  outline: 2px solid var(--hub-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print Styles */
@media print {
  .hub-footer {
    background: white !important;
    color: black !important;
  }
  
  .hub-footer a {
    color: black !important;
    text-decoration: underline !important;
  }
}

#main-navbar {
  background: var(--main-navbar);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

#sidebarMenu {
  background-color: var(--sidenav-bg);
}

.list-group-item.active, .btn-primary {
  background-color: var(--btn-bg-color) !important;
  border-color: var(--btn-bg-color) !important;
}

.modal-header {
  background: var(--main-navbar);
}

.btn-primary:hover {
  background-color: var(--btn-bg-color);
}

.btn-check {
  background-color: var(--btn-bg-color);
}

/* Enhanced sidebar styling */
.sidebar .list-group-item {
  transition: all 0.2s ease;
}

.sidebar .list-group-item:hover {
  transform: translateX(5px);
}

.sidebar .list-group-item .active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #fff;
}

.sidebar .rotate-icon {
  transition: transform 0.3s ease;
}

.sidebar a[aria-expanded="true"] .rotate-icon {
  transform: rotate(180deg);
}

.site-header {
  padding: 1.5rem 0;
}

.site-title {
  color: var(--header-text);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.main-section {
  padding: 1rem;
  background: var(--card-bg);
  color: var(--card-text);
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.main-section:hover {
  background: var(--card-bg-hover);
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}


.main-section .card-body {
  background: var(--card-bg);
}

.main-section .table {
  background: var(--card-bg-hover);
}

.mt-sidebar {
  margin-top: 3.5rem !important;
}

.mt-6 {
  margin-top: 4.5rem;
}

@media screen and (min-width: 768px) {
  /* body {
    padding-left: calc(var(--nav-width) + 2rem);
  } */
  #main-content {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
  }
  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
  }
  .header_img {
    width: 40px;
    height: 40px;
  }
  .header_img img {
    width: 45px;
  }
  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }
  .show-nav {
    width: calc(var(--nav-width) + 156px);
  }
  .body-pd {
    padding-left: calc(var(--nav-width) + 188px);
  }
}

.blur-toast {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}

#dropdown-menu-org::-webkit-scrollbar {
  width: 8px;
}

#dropdown-menu-org::-webkit-scrollbar-track {
  background: #f1f1f13b;
  border-radius: 10px;
}

#dropdown-menu-org::-webkit-scrollbar-thumb {
  background-color: #3b3b3b;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

#dropdown-menu-org::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

#dropdown-menu-org {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}
.custom-dropdown-style {
  width: 300px;
  backdrop-filter: blur(5px);
  max-height: 300px;
}
.hidden-btn {
  display: none;
}
.clickable-item {
  cursor: pointer;
}

.btn {
  text-transform: none !important;
}

/* These styles are generated from project.scss. */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f1f1f13b;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #888 #fff4f42b;
}

body {
  scroll-behavior: smooth; /* Scroll suave */
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.main-navbar {
  backdrop-filter: blur(5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.main-navbar.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.home_card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.max-height-300 {
  max-height: 300px;
  overflow-y: auto;
}
.modal-dialog-slide-in {
  transform: translateX(100%) !important;
  transition: transform 0.4s ease-in-out !important;
}

.modal.fade.show .modal-dialog-slide-in {
  transform: translateX(0) !important;
}

.logo-img {
  max-height: 40px;
  width: 150px;
  object-fit: contain;
}

.avatar-img {
  height: 28px;
  width: 28px;
  object-fit: cover;
}

.navbar .fa-bell {
  font-size: 1.2rem;
}

.badge-notification {
  font-size: 0.7rem;
  padding: 3px 6px;
}

@media (max-width: 768px) {
  .navbar-brand {
    margin-right: auto;
  }
}

.nav-pills .nav-link {
  border: none !important;
}

.nav-tabs .nav-link {
  background-color: transparent !important;
}

.modal-content {
  backdrop-filter: blur(35px);
}

.main-content {
  padding: 1rem;
  padding-top: 2.5rem;
  min-height: 100vh;
  transition: all 0.3s ease;
  margin-left: var(--sidebar-width);
  margin-top: 1rem !important;
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 991.98px) {
  .modern-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modern-sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1029;
    display: none;
    transition: opacity 0.3s;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
}

.main-content.iframed {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 991.98px) {
  .main-content {
    margin-left: 0 !important;
  }
}

INPUT:-webkit-autofill, SELECT:-webkit-autofill, TEXTAREA:-webkit-autofill {
  -webkit-box-shadow: 0 0 20px 20px #ffffff00 inset !important;
}
INPUT:-webkit-autofill:hover, INPUT:-webkit-autofill:focus, INPUT:-webkit-autofill:active, SELECT:-webkit-autofill:hover, SELECT:-webkit-autofill:focus, SELECT:-webkit-autofill:active, TEXTAREA:-webkit-autofill:hover, TEXTAREA:-webkit-autofill:focus, TEXTAREA:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 20px 20px #ffffff00 inset !important;
}