
label > input[type="file"] {
    display: none;
}

span[validation-for]:empty {
    display: none;
}

span[validation-for] {
    background-color: var(--bs-warning);
    padding: 2px 12px;
    display: inline-block;
    border-radius: 4px;
    font-size: .75rem;
    color: var(--bs-body);
    margin-top: .25rem;
    text-align: left;
    text-wrap: inherit;
}

.ar-1-1 {
    aspect-ratio: 1/1 !important;
}

.ar-16-9 {
    aspect-ratio: 16/9 !important;
}

.ar-16-75 {
    aspect-ratio: 16/7.5 !important;
}

table.dataTable tbody td.sorting_1 {
    background-color: unset !important;
}

.flex-gap-05 {
    gap: 0.5rem !important;
}

.flex-gap-1 {
    gap: 1rem !important;
}

.datepicker {
    padding: 4px !important;
}

.datepicker td, .datepicker th {
    padding: .4rem;
}

.img-cover-center {
    object-fit: cover !important;
    object-position: center !important;
}

.text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.form-group {
    margin-bottom: .75rem;
}

footer {
    color: var(--bs-body) !important;
    background-color: var(--bs-white) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.card-title {
    margin-bottom: 0 !important;
    font-weight: bold;
}

.select2-container--default .select2-selection--single {
    border-radius: var(--bs-radius) !important;
}

.skeleton {
    background-color: var(--bs-secondary-dark);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, transparent 0%, var(--bs-gray-400) 50%, transparent 100%);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* Variasi skeleton */
.skeleton.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}
.skeleton.skeleton-input {
  height: 2.2rem;
  width: 100%;
  border-radius: var(--bs-radius);
  -webkit-border-radius: var(--bs-radius);
  -moz-border-radius: var(--bs-radius);
  -ms-border-radius: var(--bs-radius);
  -o-border-radius: var(--bs-radius);
}

.skeleton.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton.skeleton-line {
  height: 0.75rem;
  margin-bottom: 0.5rem;
}

.skeleton.skeleton-title {
  height: 1.5rem;
  width: 80%;
  margin-bottom: 0.75rem;
}

.skeleton.skeleton-thumbnail {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton.skeleton-button {
  height: 2.2rem;
  width: 120px;
  border-radius: 25px;
}

.skeleton.skeleton-badge {
  height: 1rem;
  width: 60px;
  border-radius: 6px;
}

.skeleton.skeleton-icon {
  height: 24px;
  width: 24px;
  border-radius: 4px;
}

.skeleton.skeleton-card {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nuxt-progress {
    background-color: var(--bs-primary) !important;
    height: 3px !important;
}

.text-prewrap {
  white-space: pre-wrap;
  word-break: break-word;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flex-1 {
  flex: 1 1 0;
}

#side-menu > li > a.nuxt-link-active,
#side-menu > li > a.nuxt-link-active > i {
  color: var(--bs-white) !important;
}

#side-menu > li > a.nuxt-link-active {
  background: linear-gradient(to right, var(--bs-primary-darken), var(--bs-primary-light));
  border-top-right-radius: var(--bs-radius);
  border-bottom-right-radius: var(--bs-radius);
}