@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: white;
  box-shadow: 2px 2px 7px 0 rgb(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::root {
  view-transition-name: none;
}

@keyframes slide-in {
  from {
    opacity: 0;
    /* transform: translateY(-100%); */
  }

  to {
    opacity: 1;
    /* transform: translateY(0%); */
  }
}

* {
  font-family: "Roboto", sans-serif !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ...and then apply it: */
.animation__opacity {
  animation: slide-in 500ms;
}

[x-cloak] {
  display: none !important;
}

.table-static {
  width: 100%;
  height: 50vh;
  background-color: transparent;
}

.component-input {
  width: 100%;
  padding: 5px;
  /* margin-bottom: 20px; */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  outline: none;
}

.component-input:focus {
  box-shadow: 0 0 10px #007bff;
}

.modal-height {
  max-height: 700px;
  overflow-y: auto;
  padding: 0px 10px;
  padding-bottom: 4px;
}

@media (max-width: 1366px) {
  .modal-height {
    max-height: 500px;
  }
}

/* desain sistem */
/* button */
.button-primary-lg {
  background-color: #027dfe;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.button-outline-lg {
  background-color: transparent;
  color: #027dfe;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 2px solid #027dfe;
  padding: calc(0.75rem - 1px) calc(1.5rem - 1px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.button-primary-lg:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.button-primary-lg:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button-outline-lg:hover {
  background-color: rgba(2, 125, 254, 0.1);
  border-color: #0056b3;
  color: #0056b3;
}

.button-outline-lg:active {
  background-color: rgba(2, 125, 254, 0.2);
}

.button-outline-sm {
  background-color: transparent;
  color: #027dfe;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
}

/* input */
.input-primary-lg {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a202c;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-primary-lg:hover {
  border-color: #cbd5e0;
}

.input-primary-lg:focus {
  outline: none;
  border-color: #027dfe;
  box-shadow: 0 0 0 3px rgba(2, 125, 254, 0.1);
}

.input-primary-lg::placeholder {
  color: #a0aec0;
}

/* Disabled states */
.button-primary-lg:disabled,
.button-outline-lg:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.input-primary-lg:disabled {
  background-color: #f7fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.input-primary-sm {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.label-form {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  color: #1a202c;
}
.input-form {
  border: none;
  width: 100%;
  border-bottom: 2px solid #e2e8f0;
  outline: none;
  padding: 0.2rem 0.2rem;
  /* font-size: 0.875rem; */
  line-height: 1.5;
  color: #1a202c;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-form:focus {
  outline: none;
  border-color: #027dfe;
}

.input-form::placeholder {
  color: #a0aec0;
}

.search-input-icon {
  position: absolute;
  bottom: 10px;
  right: 2px;
}

.sticky-column-one {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}

.table-container {
  overflow-x: auto; /* atau overflow: auto; jika ingin scroll horizontal dan vertikal */
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  height: 200px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-text {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.loading-spinner {
  position: relative;
  width: 40px;
  height: 40px;
}

.circular {
  animation: rotate 2s linear infinite;
  height: 100%;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.path {
  stroke: #027dfe;
  stroke-dasharray: 89, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

/* table */

th {
  padding: 3px 10px !important;
  margin: 0 !important;
}

td {
  padding: 3px 10px !important;
  margin: 0 !important;
}

tr {
  /* transisi */
  transition: all 0.3s ease;
  font-size: 13px;
}

tr:hover {
  background-color: #ffffff;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

/* Skeleton Loading (Optional) */
.skeleton-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.skeleton-cell {
  height: 20px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Jika ingin menggunakan skeleton loading */
.skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .loading-container {
    height: 150px;
  }

  .loading-spinner {
    width: 32px;
    height: 32px;
  }

  .loading-text {
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 450px) {
  .table-size {
    font-size: 10px !important;
  }
}

/* Modern Table Style */
.table-default {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: none !important;
}

.table-default thead {
  background-color: #f8fafc !important;
  border-bottom: 2px solid #f1f5f9;
}

.table-default thead th {
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px !important;
  border: none !important;
  white-space: nowrap;
}

.table-default tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.table-default tbody tr:hover {
  background-color: #f8fafc !important;
}

.table-default tbody td {
  padding: 4px 8px !important;
  color: #475569;
  font-size: 13px;
  border: none !important;
  vertical-align: middle;
}

/* .table-default .sticky-column-one {
  background-color: #f8fafc !important;
  font-weight: 500;
  color: #334155;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
} */

.table-default .btn-sm.icon-size-custom {
  background-color: #f1f5f9;
  border-radius: 4px;
  padding: 6px;
  transition: all 0.2s ease;
  color: #475569;
}

.table-default .btn-sm.icon-size-custom:hover {
  background-color: #e2e8f0;
  color: #334155;
}

.table-default .text-danger {
  color: #ef4444 !important;
}

.table-default .text-warning {
  color: #f59e0b !important;
}

.table-default .table-container {
  border-radius: 4px;
  background-color: #ffffff;
}

/* Responsive table */
@media (max-width: 768px) {
  .table-default thead th,
  .table-default tbody td {
    padding: 10px 12px !important;
    font-size: 12px;
  }
}
