body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}

/* body > *:not(.modal) {
  filter: blur(0px);
  transition: filter 0.1s ease;
} */

body.modal-open > *:not(.modal) {
  filter: blur(5px);
  transition: filter 0.1s ease;
}

.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 64px;
  padding: 0 24px;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Sidebar styles */
.sidebar {
  width: 280px;
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 0;
}

.sidebar::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(0deg, #49ba80 8.12%, #009abb 34.85%, #344da1 76.73%, #b03c96 93%);
  /* background-color: #293257; */
  z-index: -1;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  padding-left: 36px;
}

.sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: white;
}

.sidebar .section-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 32px;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* Main content */
.main-content {
  margin-left: 280px;
  padding: 32px;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}

/* User avatar */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.user-details {
  line-height: 1.3;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.user-role {
  font-size: 12px;
  color: #6c757d;
}

/* Dropdown */
.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
}

.dropdown-item {
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  color: #495057;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f1f3f5;
  color: #212529;
}

/* Card styles */
.card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

/* .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      } */

/* Responsive */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: -280px;
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  }

  .sidebar::before {
    content: "";
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(0deg, #49ba80 8.12%, #009abb 34.85%, #344da1 76.73%, #b03c96 93%, #ffffff 93%);
    z-index: -1;
    transition: left 0.3s ease-in-out;
  }

  .sidebar.show {
    left: 0;
  }

  .sidebar.show::before {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px;
  }

  .user-details {
    display: none;
  }
}

.icon-placeholder {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* Backdrop con blur */
.modal-backdrop.show {
  /* backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); */
  background-color: rgba(0, 0, 0, 0.25);
}

.modal-content {
  background: rgb(255, 255, 255);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
