/* KostBar POS - Admin Styles */

/* Roboto Font - lokal */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/roboto/Roboto-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto/Roboto-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto/Roboto-Bold.ttf') format('truetype');
}

/* Basis-Reset */
* { box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; }

/* Sidebar */
.sidebar-link {
  transition: all 0.15s ease;
}
.sidebar-link:hover {
  background-color: rgba(156, 40, 177, 0.08);
}
.sidebar-link.active {
  background-color: rgba(156, 40, 177, 0.15);
  color: #9C28B1;
  font-weight: 500;
}

/* Cards */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tables */
.data-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Modal */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notification */
.toast {
  pointer-events: auto;
}
.toast.leaving {
  opacity: 0;
  transform: translateX(100%);
}

/* Badge */
.badge-success { background-color: #6BCA23; color: white; }
.badge-error { background-color: #dc2626; color: white; }
.badge-warning { background-color: #D97706; color: white; }
.badge-info { background-color: #2563EB; color: white; }
.badge-primary { background-color: #9C28B1; color: white; }

/* Form Inputs */
input[type="text"], input[type="number"], input[type="password"],
input[type="email"], input[type="date"], select, textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #9C28B1;
  box-shadow: 0 0 0 3px rgba(156, 40, 177, 0.15);
  outline: none;
}

/* Buttons */
.btn-primary {
  background-color: #9C28B1;
  color: white;
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background-color: #8B23A0; }
.btn-primary:disabled { background-color: #cccccc; cursor: not-allowed; }

.btn-danger {
  background-color: #EC3D9D;
  color: white;
  transition: background-color 0.15s ease;
}
.btn-danger:hover { background-color: #d63590; }

.btn-success {
  background-color: #6BCA23;
  color: white;
  transition: background-color 0.15s ease;
}
.btn-success:hover { background-color: #5cb51d; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999999; }
