body {
  overflow-x: hidden;
  background-color: #f8f9fa;
}

.cursor-pointer { cursor: pointer; }
.card-hover { cursor: pointer; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card-hover:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-2px); }
th[data-col] { cursor: pointer; user-select: none; white-space: nowrap; }

/* focus */
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
  border-color: rgb(222, 226, 230);
  box-shadow: none;
  outline: 0;
}

/************************************************/
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 60px;
  background-color: #212529;
  transition: width 0.3s ease;
  z-index: 1000;
  overflow-x: hidden;
  overflow-y: auto;
}

  .sidebar:hover {
    width: max-content;
    min-width: 200px;
  }

.sidebar-logo {
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  border-bottom: 1px solid #343a40;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

  .sidebar-logo:hover {
    background-color: #343a40;
    color: #fff;
  }

  .sidebar-logo.active {
    background-color: #0d6efd;
    color: #fff;
  }

  .sidebar-logo span {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

.sidebar:hover .sidebar-logo span {
  opacity: 1;
}

.sidebar-item {
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background-color 0.2s;
  cursor: pointer;
}

  .sidebar-item:hover {
    background-color: #343a40;
    color: #fff;
  }

  .sidebar-item.active {
    background-color: #0d6efd;
    color: #fff;
  }

  .sidebar-item i {
    min-width: 20px;
    font-size: 1.1rem;
  }

  .sidebar-item span {
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

.sidebar:hover .sidebar-item span {
  opacity: 1;
}

.sidebar-divider {
  border-color: #343a40;
  margin: 4px 0;
}

/************************************************/
/* Main content */
.main-wrapper {
  margin-left: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 20px;
}

.app-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 8px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #6c757d;
}

/************************************************/
/* loader */
#loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99999;
  animation: rotate 1s linear infinite;
}

  #loader::before, #loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #0d6efd;
    animation: prixClipFix 2s linear infinite;
  }

  #loader::after {
    transform: rotate3d(90, 90, 0, 180deg);
    border-color: #0d6efd;
  }

#layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 99899;
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes prixClipFix {
  0%       { clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0); }
  50%      { clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0); }
  75%, 100%{ clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%); }
}
