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

body {
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #334155
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url(../img/background.webp) no-repeat center center/cover;
  position: relative;
  overflow: hidden
}

.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / .6);
  backdrop-filter: blur(6px);
  pointer-events: none
}

.login-box {
  background: rgb(255 255 255 / .95);
  border-radius: 24px;
  box-shadow: 0 15px 50px rgb(0 0 0 / .2);
  width: 100%;
  max-width: 850px;
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  backdrop-filter: blur(10px)
}

.login-left {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff;
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center
}

.login-brand-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px
}

.login-brand-text {
  text-align: left
}

.login-logo {
  width: 80px;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / .2))
}

.login-right {
  padding: 50px 40px;
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.analog-clock {
  width: 120px;
  height: 120px;
  border: 4px solid rgb(255 255 255 / .3);
  border-radius: 50%;
  position: relative;
  margin-bottom: 15px;
  background: rgb(255 255 255 / .1);
  box-shadow: inset 0 0 10px rgb(0 0 0 / .1)
}

.clock-face {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateY(-3px)
}

.clock-face .number {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgb(255 255 255 / .9);
  padding-top: 2px
}

.clock-face .number span {
  display: inline-block
}

.clock-face .number1 {
  transform: rotate(30deg)
}

.clock-face .number1 span {
  transform: rotate(-30deg)
}

.clock-face .number2 {
  transform: rotate(60deg)
}

.clock-face .number2 span {
  transform: rotate(-60deg)
}

.clock-face .number3 {
  transform: rotate(90deg)
}

.clock-face .number3 span {
  transform: rotate(-90deg)
}

.clock-face .number4 {
  transform: rotate(120deg)
}

.clock-face .number4 span {
  transform: rotate(-120deg)
}

.clock-face .number5 {
  transform: rotate(150deg)
}

.clock-face .number5 span {
  transform: rotate(-150deg)
}

.clock-face .number6 {
  transform: rotate(180deg)
}

.clock-face .number6 span {
  transform: rotate(-180deg)
}

.clock-face .number7 {
  transform: rotate(210deg)
}

.clock-face .number7 span {
  transform: rotate(-210deg)
}

.clock-face .number8 {
  transform: rotate(240deg)
}

.clock-face .number8 span {
  transform: rotate(-240deg)
}

.clock-face .number9 {
  transform: rotate(270deg)
}

.clock-face .number9 span {
  transform: rotate(-270deg)
}

.clock-face .number10 {
  transform: rotate(300deg)
}

.clock-face .number10 span {
  transform: rotate(-300deg)
}

.clock-face .number11 {
  transform: rotate(330deg)
}

.clock-face .number11 span {
  transform: rotate(-330deg)
}

.clock-face .number12 {
  transform: rotate(360deg)
}

.clock-face .number12 span {
  transform: rotate(-360deg)
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  background: #fff;
  border-radius: 4px;
  transition: all 0.05s;
  transition-timing-function: cubic-bezier(.1, 2.7, .58, 1)
}

.hour-hand {
  width: 4px;
  height: 35px;
  margin-left: -2px
}

.min-hand {
  width: 3px;
  height: 45px;
  margin-left: -1.5px
}

.second-hand {
  width: 2px;
  height: 50px;
  background: #fcd34d;
  margin-left: -1px
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%)
}

.login-date {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  opacity: .9
}

.login-brand {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 2px
}

.login-subbrand {
  font-size: 15px;
  opacity: .9
}

.login-welcome {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 5px
}

.login-instruction {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 30px
}

.password-wrapper {
  position: relative
}

.password-wrapper input {
  padding-right: 45px
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  font-size: 16px;
  padding: 5px
}

.btn-toggle-password:hover {
  color: #3B82F6
}

.login-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px
}

.btn-login-submit {
  padding: 12px 30px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px
}

.login-error-msg {
  color: #EF4444;
  margin-top: 15px;
  text-align: right;
  font-size: 13px;
  display: none
}

.login-header i {
  font-size: 48px;
  color: #00008B;
  display: block;
  margin-bottom: 15px
}

.login-header h1 {
  color: #00008B;
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 700
}

.login-header p {
  color: #FFC107;
  font-size: 13px;
  margin-bottom: 0;
  font-weight: 600
}

#loginForm .form-group {
  margin-bottom: 20px
}

#loginForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #00008B;
  font-size: 14px
}

#loginForm input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E0E0E0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s
}

#loginForm input:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgb(0 0 139 / .1);
  background: #F0F4FF
}

.dashboard-hidden {
  display: none
}

.container {
  max-width: 1400px;
  margin: 0 auto
}

.header-date-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px
}

.header-day-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2
}

.header-date-text {
  font-size: 14px;
  opacity: .9;
  line-height: 1.2
}

.admin-profile-card {
  display: flex;
  align-items: center;
  gap: 12px
}

.admin-profile-card img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .5);
  object-fit: cover
}

.admin-info-text {
  text-align: left
}

.admin-info-text .greeting {
  color: rgb(255 255 255 / .8);
  font-size: 14px;
  margin-bottom: 2px
}

.admin-info-text .admin-name {
  font-weight: 700;
  color: #fff;
  font-size: 18px
}

.btn-logout-icon {
  background: rgb(255 255 255 / .15);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px)
}

.btn-logout-icon:hover {
  background: #EF4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(239 68 68 / .4)
}

header .status {
  background: #28A745;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  box-shadow: 0 2px 8px rgb(0 0 0 / .15)
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  background: rgb(255 255 255 / .8);
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgb(0 0 0 / .03);
  flex-wrap: wrap;
  backdrop-filter: blur(10px)
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: #fff0;
  color: #64748B;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px
}

.tab-btn:hover {
  background: rgb(255 255 255 / .5);
  color: #3B82F6;
  transform: translateY(-1px)
}

.tab-btn.active {
  background: #fff;
  color: #3B82F6;
  box-shadow: 0 4px 12px rgb(0 0 0 / .05)
}

.tab-content,
.tab-pane {
  display: none
}
.tab-content.active,
.tab-pane.active {
  display: block
}

.scanner-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgb(0 0 0 / .1);
  flex: 1
}

.scanner-section h2 {
  margin-bottom: 15px;
  font-size: 20px
}

.scanner-process-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px
}

.scanner-process-row .card {
  margin-bottom: 0
}

#reader {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: 0;
  margin: 0;
  border: none;
  background: #fff0;
  z-index: 5;
  overflow: hidden
}

#reader video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important
}

#reader.scanner-inactive {
  background: transparent !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: none !important
}

#reader.scanner-inactive video {
  display: none !important
}

.scanner-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 280px;
  margin: 0 auto 20px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 35px rgb(0 0 0 / .08)
}

.scan-area {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 10;
  pointer-events: none
}

.corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 12px solid #3b82f6;
  z-index: 12
}

.corner-top-left {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none
}

.corner-top-right {
  top: -6px;
  right: -6px;
  border-left: none;
  border-bottom: none
}

.corner-bottom-left {
  bottom: -6px;
  left: -6px;
  border-right: none;
  border-top: none
}

.corner-bottom-right {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none
}

#qrCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
  z-index: 2
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #ff1e1e;
  box-shadow: 0 0 10px #ff1e1e, 0 0 18px rgb(255 30 30 / .7);
  z-index: 10;
  animation: scanMovement 2.4s ease-in-out infinite alternate
}

.scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -12px;
  width: 100%;
  height: 25px;
  background: linear-gradient(to bottom, rgb(255 30 30 / .2), transparent);
  pointer-events: none
}

@keyframes scanMovement {
  0% {
    top: 0%
  }

  100% {
    top: calc(100% - 2.5px)
  }
}

.scanner-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgb(255 255 255 / .95);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  backdrop-filter: blur(8px);
  z-index: 5;
  box-shadow: 0 4px 15px rgb(0 0 0 / .1);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all 0.3s ease
}

.scanner-status.scanner-off {
  background: rgb(241 245 249 / .95);
  color: #64748B;
  opacity: .9
}

.status-light {
  width: 12px;
  height: 12px;
  background: #28A745;
  border-radius: 50%;
  animation: statusPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgb(40 167 69 / .8)
}

.status-light.status-inactive {
  background: #6B7280;
  animation: none;
  opacity: .5;
  box-shadow: 0 0 4px rgb(107 114 128 / .5)
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgb(40 167 69 / .8)
  }

  50% {
    opacity: .7;
    transform: scale(1.2);
    box-shadow: 0 0 15px #28a745
  }
}

.scanner-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgb(0 0 0 / .04)
}

.card h2 {
  color: #1E293B;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.label {
  color: #64748B;
  font-weight: 500;
  font-size: 14px;
  min-width: 150px
}

.value {
  color: #1E293B;
  font-weight: 600;
  text-align: right;
  font-size: 14px;
  word-break: break-word
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgb(0 0 0 / .08)
}

.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgb(59 130 246 / .3)
}

.btn-success {
  background: #28A745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px
}

.btn-success:hover {
  background: #218838;
  box-shadow: 0 4px 12px rgb(40 167 69 / .2)
}

.btn-danger {
  background: #DC3545;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px
}

.btn-danger:hover {
  background: #C82333;
  box-shadow: 0 4px 12px rgb(220 53 69 / .2)
}

.btn-warning {
  background: #FFC107;
  color: #00008B;
  padding: 10px 20px;
  border-radius: 6px
}

.btn-warning:hover {
  background: #FFB300;
  box-shadow: 0 4px 12px rgb(255 193 7 / .3)
}

.btn-secondary {
  background: #6B7280;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px
}

.btn-secondary:hover {
  background: #4B5563
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px
}

button:disabled {
  opacity: .5;
  cursor: not-allowed
}

.form-group {
  margin-bottom: 16px
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #666;
  font-size: 14px
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea,
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  color: #334155;
  transition: all 0.3s ease
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: none;
  border-color: #3B82F6;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(59 130 246 / .15)
}

input[readonly] {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
  border-color: #ccc
}

input[readonly]:focus {
  border-color: #ccc;
  box-shadow: none
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00008B
}

input[type="checkbox"]:hover {
  transform: scale(1.1)
}

.stat-widget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px
}

.stat-widget {
  background: #fff;
  border-radius: 20px;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgb(0 0 0 / .03);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease
}

.stat-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgb(0 0 0 / .08)
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0
}

.stat-info {
  display: flex;
  flex-direction: column
}

.stat-info .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.stat-info .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #1E293B;
  line-height: 1
}

.widget-primary .stat-icon-wrapper {
  background: #EFF6FF;
  color: #3B82F6
}

.widget-success .stat-icon-wrapper {
  background: #ECFDF5;
  color: #10B981
}

.widget-warning .stat-icon-wrapper {
  background: #FFFBEB;
  color: #F59E0B
}

.widget-danger .stat-icon-wrapper {
  background: #FEF2F2;
  color: #EF4444
}

.table-container {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed
}

th {
  background: #f8fafc;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0
}

td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155
}

tr:hover {
  background: #f8fafc
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px
}

.badge-dipinjam {
  background: #EFF6FF;
  color: #3B82F6
}

.badge-kembali {
  background: #ECFDF5;
  color: #10B981
}

.badge-overdue {
  background: #FEF2F2;
  color: #EF4444
}

.filter-section {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end
}

.filter-section.column {
  flex-direction: column;
  gap: 12px
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.filter-group label {
  margin-bottom: 0
}

.filter-group input,
.filter-group select {
  margin: 0
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px
}

.search-result-info small {
  color: #999;
  display: block;
  margin-top: 4px
}

.settings-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 25px;
  align-items: start
}

.profile-overview-card {
  text-align: center;
  padding: 30px 20px
}

.profile-photo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 25px
}

.profile-photo-wrapper img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgb(59 130 246 / .2)
}

.photo-placeholder {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 50px
}

.btn-upload-photo {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #3B82F6;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgb(59 130 246 / .4);
  transition: all 0.3s ease
}

.btn-upload-photo i {
  font-size: 18px
}

.btn-upload-photo:hover {
  background: #2563EB;
  transform: scale(1.05)
}

.profile-details-list {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  text-align: left
}

.detail-item {
  margin-bottom: 15px
}

.detail-item:last-child {
  margin-bottom: 0
}

.detail-label {
  display: block;
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: .5px
}

.detail-value {
  display: block;
  font-size: 14px;
  color: #1E293B;
  font-weight: 500;
  word-break: break-all
}

.settings-main {
  display: flex;
  flex-direction: column;
  gap: 25px
}

.settings-card {
  padding: 30px
}

.settings-title {
  font-size: 18px;
  color: #1E293B;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px
}

.settings-title i {
  color: #3B82F6
}

.settings-form .form-group {
  margin-bottom: 20px
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgb(0 0 0 / .5)
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgb(0 0 0 / .15)
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0
}

.modal-header h2 {
  color: #1E293B
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999
}

.modal-close:hover {
  color: #333
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.alert-success {
  background: #ECFDF5;
  color: #10B981
}

.alert-error {
  background: #FEF2F2;
  color: #EF4444
}

.alert-warning {
  background: #FFFBEB;
  color: #F59E0B
}

.alert-info {
  background: #EFF6FF;
  color: #3B82F6
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.text-center {
  text-align: center
}

.mt-20 {
  margin-top: 20px
}

.hidden {
  display: none
}

.loading {
  display: inline-block;
  animation: spin 1s linear infinite
}

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

  to {
    transform: rotate(360deg)
  }
}

.filter-bar-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #f1f5f9
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.filter-item label {
  font-size: 13px;
  font-weight: 600;
  color: #64748B
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-left: auto
}

.flex-grow-1 {
  flex-grow: 1
}

.btn-dark {
  background: #1E293B;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn-dark:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(15 23 42 / .2)
}

.stats-pastel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px
}

.stat-pastel {
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease
}

.stat-pastel:hover {
  transform: translateY(-3px)
}

.stat-pastel.green {
  background: #ECFDF5;
  border: 1px solid #D1FAE5
}

.stat-pastel.green .stat-label {
  color: #059669
}

.stat-pastel.green .stat-value {
  color: #10B981
}

.stat-pastel.orange {
  background: #FFFBEB;
  border: 1px solid #FEF3C7
}

.stat-pastel.orange .stat-label {
  color: #D97706
}

.stat-pastel.orange .stat-value {
  color: #F59E0B
}

.stat-pastel.purple {
  background: #F5F3FF;
  border: 1px solid #EDE9FE
}

.stat-pastel.purple .stat-label {
  color: #7C3AED
}

.stat-pastel.purple .stat-value {
  color: #8B5CF6
}

.stat-pastel .stat-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px
}

.stat-pastel .stat-value {
  font-size: 36px;
  font-weight: 700
}

.print-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 5px
}

.print-action-btn {
  background: #fff;
  border: 2px solid #fff0;
  border-radius: 16px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1E293B;
  font-weight: 600;
  box-shadow: 0 4px 15px rgb(0 0 0 / .03);
  font-family: inherit
}

.print-action-btn i {
  font-size: 28px
}

.print-action-btn.primary {
  border-color: #E0E7FF
}

.print-action-btn.primary i {
  color: #3B82F6
}

.print-action-btn.primary:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  transform: translateY(-3px)
}

.print-action-btn.warning {
  border-color: #FEF3C7
}

.print-action-btn.warning i {
  color: #F59E0B
}

.print-action-btn.warning:hover {
  background: #FFFBEB;
  border-color: #F59E0B;
  transform: translateY(-3px)
}

.print-action-btn.success {
  border-color: #D1FAE5
}

.print-action-btn.success i {
  color: #10B981
}

.print-action-btn.success:hover {
  background: #ECFDF5;
  border-color: #10B981;
  transform: translateY(-3px)
}

.mt-4 {
  margin-top: 25px
}

.table-header-luxury {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f5f9
}

.table-header-luxury h2 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1E293B
}

.table-header-luxury h2 i {
  color: #3B82F6
}

.table-actions {
  display: flex;
  gap: 10px
}

.table-actions button {
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: .5
}

.stok-available {
  color: #10b981
}

.stok-unavailable {
  color: #ef4444
}

.status-overdue {
  color: #ef4444;
  font-weight: 700
}

.status-overdue-days {
  color: #ef4444;
  font-weight: 700
}

.print-result-section {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.print-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px
}

.table-transaksi th:nth-child(1) {
  width: 6%
}

.table-transaksi th:nth-child(2) {
  width: 18%
}

.table-transaksi th:nth-child(3) {
  width: 15%
}

.table-transaksi th:nth-child(4) {
  width: 30%
}

.table-transaksi th:nth-child(5) {
  width: 31%
}

.qr-code-preview {
  width: 70px;
  height: 70px;
  border: 1px solid #333
}

.detail-table {
  border-collapse: collapse;
  margin: 0;
  width: 100%;
  font-family: "Courier New", Courier, monospace
}

.detail-table td {
  padding: 2px 4px;
  font-size: 12px;
  vertical-align: top;
  border: none
}

.detail-table td:first-child {
  width: 85px;
  text-align: left
}

.detail-table td:nth-child(2) {
  width: 8px;
  text-align: center
}

.detail-table td:nth-child(3) {
  text-align: left
}

.admin-section {
  margin-bottom: 20px
}

.admin-section h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px
}

.admin-section .info-row {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  padding: 10px;
  background: #f9fafb;
  border-radius: 6px
}

.admin-section .label {
  font-weight: 600;
  color: #667eea;
  width: 150px;
  min-width: 150px
}

.admin-section .value {
  color: #333;
  flex: 1
}

#adminPhotoPreview {
  display: block !important
}

#changePasswordForm,
#updateProfileForm {
  max-width: 500px
}

.mb-0 {
  margin-bottom: 0 !important
}

.mb-10 {
  margin-bottom: 10px !important
}

.mb-15 {
  margin-bottom: 15px !important
}

.mb-20 {
  margin-bottom: 20px !important
}

.mt-0 {
  margin-top: 0 !important
}

.mt-10 {
  margin-top: 10px !important
}

.mt-15 {
  margin-top: 15px !important
}

.mt-25 {
  margin-top: 25px !important
}

.p-0 {
  padding: 0 !important
}

.px-15 {
  padding-left: 15px !important;
  padding-right: 15px !important
}

.py-10 {
  padding-top: 10px !important;
  padding-bottom: 10px !important
}

.pl-20 {
  padding-left: 20px !important
}

.m-0 {
  margin: 0 !important
}

.gap-10 {
  gap: 10px !important
}

.gap-20 {
  gap: 20px !important
}

.w-100 {
  width: 100% !important
}

.min-w-150 {
  min-width: 150px !important
}

.hide {
  display: none !important
}

.no-shadow {
  box-shadow: none !important
}

.no-bg {
  background: transparent !important
}

.no-border {
  border: none !important
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center
}

.flex-center-left {
  display: flex;
  align-items: center;
  justify-content: flex-start
}

.flex-1 {
  flex: 1
}

.wrap-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.form-inline {
  display: flex;
  align-items: center;
  gap: 10px
}

.nowrap {
  white-space: nowrap
}

.input-small {
  width: 80px;
  padding: 6px;
  height: auto
}

.text-sm {
  font-size: 13px
}

.text-md {
  font-size: 1rem !important
}

.text-lg {
  font-size: 1.1rem !important
}

.text-right {
  text-align: right !important
}

.text-primary {
  color: #3B82F6 !important
}

.text-purple {
  color: #8B5CF6 !important
}

.text-danger {
  color: #EF4444 !important
}

.text-warning-dark {
  color: #d97706 !important
}

.text-muted {
  color: #64748b !important
}

.text-dark {
  color: #1e293b !important
}

.fw-500 {
  font-weight: 500 !important
}

.fw-600 {
  font-weight: 600 !important
}

.line-height-17 {
  line-height: 1.7 !important
}

.bg-gray {
  background-color: #f1f5f9 !important
}

.btn-rounded {
  border-radius: 20px !important
}

.form-container-light {
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0
}

.detail-section-title {
  font-size: .95rem;
  color: #3B82F6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 4px
}

.detail-item .detail-label {
  margin: 0;
  color: #475569
}

.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f0f4f8
}

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #1e3a5f 0%, #1a2f4a 100%);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 1000
}

.sidebar-brand {
  padding: 15px 8px 15px 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgb(255 255 255 / .08)
}

.sidebar-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / .3))
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3
}

.sidebar-subtitle {
  font-size: 10px;
  color: rgb(255 255 255 / .55);
  white-space: nowrap
}

.status-badge-sidebar {
  font-size: 9px;
  font-weight: 600;
  color: #4ade80;
  background: rgb(74 222 128 / .1);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 2px
}

.status-badge-sidebar i {
  font-size: 6px
}

.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: hidden;
  flex: 1
}

.sidebar-nav.tabs {
  background: #fff0;
  box-shadow: none;
  margin: 0;
  backdrop-filter: none;
  border-radius: 0;
  flex-wrap: nowrap
}

.sidebar-nav .tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgb(255 255 255 / .6);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: #fff0;
  cursor: pointer
}

.sidebar-nav .tab-btn:hover {
  background: rgb(255 255 255 / .08);
  color: rgb(255 255 255 / .95);
  transform: none;
  box-shadow: none
}

.sidebar-nav .tab-btn.active {
  background: rgb(59 130 246 / .3);
  color: #fff;
  box-shadow: none
}

.sidebar-nav .tab-btn i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.topbar {
  height: 60px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgb(37 99 235 / .15)
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px
}

.topbar-page-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px
}

.sidebar-bottom {
  margin-top: auto;
  padding: 12px 12px 20px;
  border-top: 1px solid rgb(255 255 255 / .08)
}

.sidebar-clock {
  color: rgb(255 255 255 / .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px
}

.sidebar-analog-clock {
  width: 75px;
  height: 75px;
  border-width: 3px;
  border-color: rgb(255 255 255 / .4);
  margin: 0;
  background: rgb(255 255 255 / .1)
}

.sidebar-analog-clock .clock-face {
  transform: translateY(0)
}

.sidebar-analog-clock .clock-face .number {
  color: rgb(255 255 255 / .85);
  font-size: 10px;
  padding-top: 2px
}

.sidebar-analog-clock .hour-hand {
  height: 18px;
  width: 3px;
  margin-left: -1.5px;
  background: #fff
}

.sidebar-analog-clock .min-hand {
  height: 25px;
  width: 2px;
  margin-left: -1px;
  background: #fff
}

.sidebar-analog-clock .second-hand {
  height: 32px;
  width: 1.5px;
  margin-left: -.75px;
  background: #fcd34d
}

.sidebar-analog-clock .clock-center {
  width: 6px;
  height: 6px;
  background: #fff
}

.sidebar-date-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center
}

.sidebar-day-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px
}

.sidebar-date-text {
  color: rgb(255 255 255 / .75);
  font-size: 12px
}

.header-digital-text {
  color: rgb(255 255 255 / .9)
}

.topbar .admin-profile-card {
  color: #fff;
  flex-direction: row;
  gap: 8px
}

.topbar .admin-name {
  color: #fff;
  font-size: 16px
}

.topbar .greeting {
  color: rgb(255 255 255 / .75);
  font-size: 12px
}

.topbar .admin-profile-card img {
  width: 48px;
  height: 48px;
  border: 2px solid rgb(255 255 255 / .3)
}

.btn-logout-icon {
  color: #fff;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  background: rgb(255 255 255 / .15);
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: none;
  border-radius: 50%;
  transition: 0.3s
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0
}

.container-fluid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px
}

.seamless-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: block;
  width: 100%
}

.seamless-marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: seamless-scroll 6s linear infinite
}

.seamless-marquee-content span {
  display: inline-block;
  padding-right: 30px
}

@keyframes seamless-scroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.d-none {
  display: none
}

.topbar-separator {
  opacity: .5;
  margin: 0 8px;
  font-weight: 400
}

.col-checkbox {
  width: 3%
}

.col-kode {
  width: 8%
}

.col-nama {
  width: 37%
}

.col-jk {
  width: 12%;
  white-space: nowrap
}

.col-tipe {
  width: 7%
}

.col-keterangan {
  width: 15%
}

.col-print {
  width: 11%;
  white-space: nowrap
}

.col-aksi {
  width: 7%
}

.col-kode-buku {
  width: 11%
}

.col-judul {
  width: 35%
}

.col-pengarang {
  width: 13%
}

.col-kategori {
  width: 10%
}

.col-stok {
  width: 5%
}

.col-rak {
  width: 5%
}
.btn-xs{padding:4px 8px;font-size:11px;border-radius:4px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-weight:600}
.btn-public-preview{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;background:#EFF6FF;color:#1D4ED8;font-size:12px;font-weight:700;border:1px solid #BFDBFE;text-decoration:none;transition:all .2s ease}
.btn-public-preview:hover{background:#DBEAFE}
.status-indicator.live{color:#059669;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.print-mode-selector{display:flex;gap:18px;margin-bottom:16px;font-size:14px;font-weight:600;color:#334155}
.print-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-top:16px}
.info-content-filled{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:8px;padding:12px}
.info-content-empty{color:#94A3B8;font-size:13px;font-style:italic}
.scanner-manual-input{display:flex;gap:10px;margin-top:12px}
.scanner-manual-input input{flex:1;height:40px;padding:6px 12px;border:1px solid #CBD5E1;border-radius:6px;font-size:13px}
.btn-outline{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:6px;background:#ffffff;border:1px solid #CBD5E1;color:#334155;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}
.btn-outline:hover{background:#F1F5F9;border-color:#94A3B8}
.modal.active{display:flex}