html {
    height: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    width: 100%;
    position: absolute;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

code {
    background-color: var(--bs-gray-100, #f8f9fa);
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

#app-content {
    min-height: 100%;
    width: 100%;
    overflow-y: auto;
}

.login-container {
    min-height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}


#scripts-navbar {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    display: flex;
    flex-direction: row;
}

.script-card {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    padding-bottom: 10px;
}

.soft-shadow {
    box-shadow: rgba(0, 0, 0, 0.083) 0px 3px 5px;
}

#main-container {
    display: flex;
    flex-direction: row;
    min-height: 100%;
    width: 100%;
}

#app-sidebar {
    width: 200px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    left: 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}

#app-sidebar-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

#scripts-search-container {
    width: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.zero-height {
    height: 0px;
}

/* DataTables additional styles */
.dataTables_wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.dataTables_wrapper .col-sm-12 {
  padding-left: 0;
  padding-right: 0;
  overflow-x: auto;
}

div.dataTables_wrapper div.dt-row {
  min-height: 300px;
}

div.dataTables_wrapper div.dataTables_processing {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  border: none;
  border-radius: 0;
}

div.dataTables_wrapper div.dataTables_processing>div:last-child {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.dataTable tr td {
  cursor: pointer;
  vertical-align: middle;
}

/* Sortable Styles */
.sortable-container {
    list-style: none;
    padding: 4px;
    margin: 0;
    min-height: 40px;
    border: 1px dashed var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    background-color: var(--bs-gray-100, #f8f9fa);
}

.sortable-container .sortable-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin: 4px;
    background-color: var(--bs-primary, #007bff);
    color: var(--bs-white, white);
    border-radius: 20px;
    font-size: 0.75rem;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.sortable-container .sortable-item:hover {
    background-color: var(--bs-primary-text-emphasis, #0056b3);
    transform: scale(1.05);
}

.sortable-container .sortable-handle {
    cursor: grab;
    font-size: 0.8rem;
    opacity: 0.8;
}

.sortable-container .sortable-handle:active {
    cursor: grabbing;
}

.sortable-container .sortable-remove {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 4px;
}

.sortable-container .sortable-remove:hover {
    opacity: 1;
}

/* jQuery UI Sortable styles */
.sortable-container .ui-sortable-helper {
    background-color: var(--bs-primary, #007bff);
    color: var(--bs-white, white);
    border-radius: 20px;
    box-shadow: var(--bs-box-shadow, 0 4px 8px rgba(0,0,0,0.2));
    transform: rotate(5deg);
}

.sortable-container .ui-sortable-helper:hover {
  background-color: var(--bs-primary, #007bff);
}

.sortable-container .ui-sortable-placeholder {
    background-color: var(--bs-gray-200, #e9ecef) !important;
    border: 1px dashed var(--bs-gray-600, #6c757d);
    border-radius: 20px;
    height: 28px;
    min-width: 70px;
    display: inline-block;
    opacity: 0.7;
    margin: 4px;
}

.sortable-container.vertical {
    display: flex;
    flex-direction: column;
}

.sortable-container.vertical .sortable-item {
    display: flex;
    flex-basis: 100%;
    margin: 2px 0;
    background: var(--bs-white, white);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    color: var(--bs-body-color, #212529);
    font-size: 1rem;
}

.sortable-container.vertical .sortable-item:hover {
    background: var(--bs-gray-200, #e9ecef);
    transform: none;
}

.sortable-container.vertical .ui-sortable-helper {
    background: var(--bs-gray-200, #e9ecef);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 10px;
    color: var(--bs-body-color, #212529);
}

.sortable-container.vertical .ui-sortable-placeholder {
    border-radius: 10px;
    height: 40px;
}
.sortable-container.vertical .ui-sortable-helper:hover {
    background: var(--bs-gray-200, #e9ecef);
    transform: none;
}