* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --basic-1: #3498db;
    --basic-2: #2ecc71;
}

body {
    font-family: Roboto, Arial, sans-serif;
    background-color: #fff;
    color: #212529;
    overflow: hidden
}

a {
    text-decoration: none;
}

label {
    margin-bottom: .2rem;
    font-size: 15px;
    font-weight: 500;
}

th, td {
    vertical-align: middle;
}

tr {
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    text-align: center;
    color: #333;
}

.spinner {
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    color: #007bff;
    font-size: 50px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Sidebar mặc định */
#sidebar-wrapper {
  width: 250px;
  transition: margin 0.3s ease;
}

/* Khi toggled (ẩn sidebar trên desktop hoặc bật lại trên mobile) */
#wrapper.toggled #sidebar-wrapper {
  margin-left: -250px;
}

/* Trên mobile: sidebar tự ẩn */
@media (max-width: 1199.98px) {
  #sidebar-wrapper {
    margin-left: -250px;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
  }
}

/* Sidebar mặc định */
#sub-menu {
    min-width: 250px;
    position: absolute;
    z-index: 20000;
    right: 0;
    top: 48px;
    bottom: 52px;
    width: 250px;
    transition: margin 0.3s ease;
    margin-right: -250px;
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;;
}

/* Khi hide (ẩn sidebar trên desktop hoặc bật lại trên mobile) */
#wrapper.hide #sub-menu {
  margin-right: 0px;
}

.main-content {
    width: 100%;
    padding: 0 20px;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
    overflow: auto;
    height: calc(100vh - 115px)
}

.container-fluid {
    padding: 0;
}

.hook {
    background: #f1f4f6;
    height: 100%;
    padding: 30px;
    border-radius: 20px;
    overflow: auto;
}

.sidebar-heading {
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editable-note {
  display: inline-block;
  min-width: 100px;
  padding: 2px 5px;
  border: 1px dashed transparent;
}
.editable-note:focus {
  outline: none;
  border-color: #0d6efd;
  background: #f8f9fa;
}

.custom-option:hover {
  background-color: #f8f9fa;
}

.icon-style {
    width: 22px;
    text-align: center;
    margin-right: 8px
}
.list-group-item {
    border: 0;
    margin: 2px 0;
}

.list-group-item-action:focus, .list-group-item-action:hover {
    border-radius: 50px;
}

.list-group-item.active {
    background: linear-gradient(to right, var(--basic-1), var(--basic-2))!important;
    color: white !important;
    border-color: #fff !important;
    border-radius: 50px;
}

.list-group-item.active .icon-style {
    color: white !important;
}

.cursor {
    cursor: pointer;
}
.checkNowStatus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}