/* ============================================================
   COMPONENTS
   ============================================================ */

/* ════════════════════════════════════════════════════════
   components.css (69.24 KB)
   ════════════════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --text-disabled: var(--text-disabled-light);
  --bg-primary: var(--bg-primary-light);
  --bg-secondary: var(--bg-secondary-light);
  --bg-tertiary: var(--bg-tertiary-light);
  --border-color: var(--border-light);
}

[data-theme="light"] .form-label,
.form-label {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
input,
select,
textarea {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--btn-border-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  transition: var(--btn-transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: var(--space-xs);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  gap: var(--space-xs);
  user-select: none;
}

.dropdown-toggle:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dropdown-toggle:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.dropdown-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dropdown-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dropdown-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-navbar);
  display: none;
  min-width: 180px;
  padding: var(--space-xs) 0;
  margin-top: var(--space-xs);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: dropdownSlide 0.2s ease-out;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu.end {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--gray-100);
  color: var(--text-primary);
  outline: none;
}

.dropdown-item.active {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-weight: 600;
}

.dropdown-item:disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.5;
}

.dropdown-item:disabled:hover {
  background-color: transparent;
}

.dropdown-divider {
  height: 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  margin: var(--space-xs) 0;
}

.dropdown-header {
  display: block;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}

.dropdown-text {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dropdown-secondary .dropdown-toggle {
  background-color: var(--secondary);
}

.dropdown-secondary .dropdown-toggle:hover {
  background-color: var(--secondary-dark);
}

.dropdown-secondary .dropdown-toggle:focus {
  outline-color: var(--secondary);
}

.dropdown-success .dropdown-toggle {
  background-color: var(--success);
}

.dropdown-success .dropdown-toggle:hover {
  background-color: var(--success-dark);
}

.dropdown-success .dropdown-toggle:focus {
  outline-color: var(--success);
}

.dropdown-danger .dropdown-toggle {
  background-color: var(--danger);
}

.dropdown-danger .dropdown-toggle:hover {
  background-color: var(--danger-dark);
}

.dropdown-danger .dropdown-toggle:focus {
  outline-color: var(--danger);
}

.dropdown-warning .dropdown-toggle {
  background-color: var(--warning);
  color: var(--text-primary);
  font-weight: 600;
}

.dropdown-warning .dropdown-toggle:hover {
  background-color: var(--warning-dark);
}

.dropdown-warning .dropdown-toggle:focus {
  outline-color: var(--warning);
}

.dropdown-info .dropdown-toggle {
  background-color: var(--info);
}

.dropdown-info .dropdown-toggle:hover {
  background-color: var(--info-dark);
}

.dropdown-info .dropdown-toggle:focus {
  outline-color: var(--info);
}

.dropdown-outline .dropdown-toggle {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.dropdown-outline .dropdown-toggle:hover {
  background-color: var(--primary);
  color: var(--white);
}

.dropdown-outline .dropdown-toggle:focus {
  outline-color: var(--primary);
}

.dropdown-toggle.sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
}

.dropdown-toggle.lg {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-navbar);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
  gap: var(--space-lg);
}

.topbar-left {
  flex: 1;
  min-width: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
}

.topbar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.page-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

.page-breadcrumb span {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-breadcrumb i {
  font-size: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: var(--transition-fast);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.toggle-state {
  display: none;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.btn-icon:hover {
  background-color: var(--color-primary-subtle);
}

.btn-icon:active {
  background-color: rgba(var(--primary-rgb), 0.15);
}

.btn-icon:focus {
  outline: none;
  background-color: rgba(var(--primary-rgb), 0.15);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background-color: var(--danger);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 320px;
  max-width: 400px;
  margin-top: var(--space-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: var(--z-navbar);
  animation: slideInTop 0.2s ease-out;
  display: none;
}

.notif-dropdown.is-open {
  display: block;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
}

.notif-header button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  transition: var(--transition-fast);
}

.notif-header button:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.notif-list-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.notif-list-item:last-child {
  border-bottom: none;
}

.notif-list-item:hover {
  background-color: var(--gray-100);
  color: var(--text-primary);
}

.notif-list-item.unread {
  background-color: var(--color-primary-subtle);
}

.profile-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-profile {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-profile:hover {
  background-color: var(--color-primary-subtle);
  border-color: var(--primary);
}

.btn-profile:active {
  background-color: var(--color-primary-subtle);
}

.avatar-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border-color);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  margin-top: var(--space-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: var(--z-navbar);
  animation: slideInTop 0.2s ease-out;
  display: none;
}

.profile-dropdown.is-open {
  display: block;
}

.profile-dropdown .dropdown-header {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.avatar-circle-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.avatar-initial-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.profile-dropdown .dropdown-header strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

.profile-dropdown .dropdown-header small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
}

.profile-dropdown hr {
  margin: var(--space-xs) 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.profile-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:focus {
  background-color: var(--gray-100);
  color: var(--text-primary);
  outline: none;
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: var(--space-md);
    flex-wrap: wrap;
  }

  .topbar-left {
    flex: 1;
    width: 100%;
  }

  .topbar-right {
    gap: var(--space-sm);
  }

  .profile-info {
    display: none;
  }

  .btn-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .notif-dropdown,
  .profile-dropdown {
    min-width: 280px;
    max-width: calc(100vw - 16px);
  }
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-secondary:focus {
  outline-color: var(--secondary);
}

.btn-success {
  background-color: var(--success);
}

.btn-success:hover {
  background-color: var(--success-dark);
}

.btn-success:focus {
  outline-color: var(--success);
}

.btn-danger {
  background-color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger-dark);
}

.btn-danger:focus {
  outline-color: var(--danger);
}

.btn-warning {
  background-color: var(--warning);
  color: var(--text-primary);
  font-weight: 600;
}

.btn-warning:hover {
  background-color: var(--warning-dark);
}

.btn-warning:focus {
  outline-color: var(--warning);
}

.btn-info {
  background-color: var(--info);
}

.btn-info:hover {
  background-color: var(--info-dark);
}

.btn-info:focus {
  outline-color: var(--info);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline:focus {
  outline-color: var(--primary);
}

.btn-small {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
}

.btn-large {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
}

.filter-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: var(--radius);
  background-color: var(--bg-tertiary);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px var(--border-color);
  padding: var(--space-xs);
  width: 100%;
  max-width: 400px;
  font-size: 14px;
  gap: var(--space-xs);
}

.filter-group .radio {
  flex: 1 1 auto;
  text-align: center;
}

.filter-group .radio input {
  display: none;
}

.filter-group .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: none;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  width: 100%;
  font-weight: 500;
  background-color: transparent;
}

.filter-group .radio input:checked + .name {
  background-color: var(--bg-primary);
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.filter-group .radio:hover .name {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .filter-group {
    max-width: 100%;
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-box-icon {
  position: absolute;
  left: var(--space-md);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.search-input {
  padding-left: 38px !important;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  width: 100%;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  background-color: var(--bg-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.datatable {
  margin-bottom: 0;
  border-collapse: collapse;
  width: 100%;
  background-color: var(--bg-primary);
}

.datatable thead.table-light th {
  background-color: var(--bg-tertiary);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-md) var(--space-sm);
  vertical-align: middle;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.datatable tbody td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.datatable tbody tr {
  transition: background-color 0.2s ease;
}

.datatable tbody tr:hover {
  background-color: var(--bg-secondary);
}

.datatable tbody tr:last-child td {
  border-bottom: none;
}

.table-responsive {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-sm {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-lg {
  display: inline-block;
  font-size: 0.875rem;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-spt {
  background-color: rgba(var(--color-info-rgb), 0.15);
  color: var(--info);
}

.badge-sk {
  background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--warning-dark);
}

.badge-nd {
  background-color: var(--color-purple-subtle);
  color: var(--purple);
}

.badge-kpts {
  background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--success);
}

.badge-status-null {
  background-color: rgba(107, 114, 128, 0.15);
  color: var(--color-gray-700);
}

.badge-status-naskah_dinas {
  background-color: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
}

.badge-status-klasifikasi {
  background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--color-warning);
}

.badge-primary {
  background-color: rgba(var(--color-primary-rgb), 0.15);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--success);
}

.badge-danger {
  background-color: rgba(var(--color-danger-rgb), 0.15);
  color: var(--danger);
}

.badge-warning {
  background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--warning-dark);
}

.badge-info {
  background-color: rgba(var(--color-info-rgb), 0.15);
  color: var(--info);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  justify-items: stretch;
  animation: fadeInGrid 0.4s ease-out;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
  }
}

@keyframes fadeInGrid {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
  max-width: 100%;
  width: 100%;
}

.menu-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.menu-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--menu-card-icon-bg, linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%));
  color: var(--white);
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.menu-card:hover .icon {
  transform: scale(1.1);
}

.menu-card .content {
  flex: 1;
  min-width: 0;
}

.menu-card .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs) 0;
}

.menu-card .count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.menu-card .count strong {
  color: var(--primary);
  font-weight: 700;
}

.menu-card .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.menu-card:hover .arrow {
  background: var(--primary);
  color: var(--white);
  transform: translateX(4px);
}

/* Theme classes untuk menu cards */
.menu-card.surat-dinas .icon {
  --menu-card-icon-bg: var(--stat-surat-dinas-gradient);
}

.menu-card.surat-arsip .icon {
  --menu-card-icon-bg: var(--stat-surat-arsip-gradient);
}

.menu-card.nota-dinas .icon {
  --menu-card-icon-bg: var(--stat-nota-dinas-gradient);
}

.menu-card.keputusan .icon {
  --menu-card-icon-bg: var(--stat-keputusan-gradient);
}

.document-card {
  width: 190px;
  height: 254px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.document-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.document-card:active {
  transform: translateY(-4px);
}

.document-card .card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
}

.document-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.document-card .card-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.document-card .card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.document-card .card-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
  text-align: justify;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.document-card .card-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.document-card .card-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.document-card .card-footer a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1);
}

.document-card.card-spt .badge {
  background: rgba(var(--color-info-rgb), 0.15);
  color: var(--info);
}

.document-card.card-sk .badge {
  background: rgba(var(--color-warning-rgb), 0.15);
  color: var(--warning-dark);
}

.document-card.card-nd .badge {
  background: var(--color-purple-subtle);
  color: var(--purple);
}

.document-card.card-kpts .badge {
  background: rgba(var(--color-success-rgb), 0.15);
  color: var(--success);
}

@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
  }
  .document-card {
    width: 170px;
    height: 230px;
    border-radius: 40px;
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
  }
  .document-card {
    width: 150px;
    height: 210px;
    border-radius: 35px;
    padding: var(--space-sm);
  }
  .menu-card {
    padding: var(--space-md) var(--space-lg);
  }
  .menu-card .icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .menu-card .title {
    font-size: 1rem;
  }
  .document-card .card-number {
    font-size: 0.85rem;
  }
  .document-card .card-date {
    font-size: 0.75rem;
  }
  .document-card .card-text {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .document-card .card-footer a {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
  }
  .document-card {
    width: 130px;
    height: 190px;
    border-radius: 30px;
    padding: var(--space-xs);
  }
  .badge {
    padding: var(--space-xs) var(--space-xs);
    font-size: 0.6rem;
  }
  .document-card .card-number {
    font-size: 0.8rem;
  }
  .document-card .card-date {
    font-size: 0.7rem;
  }
  .document-card .card-text {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.dashboard-row {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dashboard-row.grid-1 {
  grid-template-columns: 1fr;
}

.dashboard-row.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-row.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-row.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 1024px) {
  .dashboard-row.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .dashboard-row.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-row.grid-2 {
    grid-template-columns: 1fr;
  }

  .dashboard-row.grid-3 {
    grid-template-columns: 1fr;
  }

  .dashboard-row.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-row.grid-4 {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: clamp(1rem, 5vw, 1.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(var(--white-rgb), 0.1);
  transition: all 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--white-rgb), 0.2);
}

.stat-card.success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.stat-card.warning {
  background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
  color: var(--text-primary);
}

.stat-card.warning:hover {
  color: var(--text-primary);
}

.stat-card.danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
}

.stat-card.info {
  background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%);
}

.stat-card.surat-dinas {
  background: var(--stat-surat-dinas-gradient);
}

.stat-card.surat-arsip {
  background: var(--stat-surat-arsip-gradient);
}

.stat-card.keputusan {
  background: var(--stat-keputusan-gradient);
}

.stat-card.nota-dinas {
  background: var(--stat-nota-dinas-gradient);
  color: var(--text-primary);
}

.stat-card.purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
}

.stat-value {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: var(--space-sm) 0;
  line-height: 1;
  animation: countUp 0.6s ease-out;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.25;
}

.stat-footer {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: var(--space-xs);
}

.filter-section {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--primary);
  animation: slideInLeft 0.4s ease-out;
}

.filter-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-title i {
  font-size: 1.1rem;
  color: var(--primary);
}

.stats-section {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.no-data-message {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.no-data-message i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.alert-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--white-rgb), 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.profile-container {
  padding: 1rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.profile-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.profile-header h1 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.profile-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.profile-card {
  overflow: hidden;
}

.profile-card-header {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-info-rgb), 0.08) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-avatar-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  display: block;
}

.profile-avatar-img:hover {
  transform: scale(1.05);
}

.profile-avatar-initial {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
  color: white;
  font-size: 56px;
  font-weight: 700;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.profile-status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profile-badge {
  background: linear-gradient(135deg, var(--primary), var(--info));
  font-weight: 600;
  border: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 999px;
  color: white;
}

.profile-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.profile-stat-item {
  padding: 0.75rem;
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding-right: 1rem;
}

.profile-stat-item:last-child {
  border-right: none;
}

.profile-stat-item small {
  display: block;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.profile-stat-item p {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

.profile-actions-group {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  justify-content: center;
  flex-wrap: wrap;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 auto;
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-action-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--info));
  color: white;
}

.profile-action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.profile-action-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.profile-action-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.profile-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  gap: 0;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.profile-tab-btn {
  flex: 1;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.profile-tab-btn:hover {
  color: var(--primary);
  background: rgba(var(--color-primary-rgb), 0.05);
}

.profile-tab-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--info));
  border-bottom-color: transparent;
}

.profile-tab-btn i {
  font-size: 1rem;
}

.profile-tab-btn span {
  display: inline;
}

@media (max-width: 768px) {
  .profile-tab-btn span {
    display: none;
  }

  .profile-tab-btn {
    min-width: auto;
    padding: 0.65rem 0.5rem;
  }

  .profile-action-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1199px) {
  .profile-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.profile-info-item-full {
  grid-column: 1 / -1;
}

.profile-info-item {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--color-primary-rgb), 0.02) 100%);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  border-left: 4px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(var(--black-rgb), 0.05);
}

.profile-info-item:hover {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, rgba(var(--color-primary-rgb), 0.04) 100%);
  border-left-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.15);
  transform: translateY(-2px);
}

.profile-info-item label {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.profile-info-item p {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.profile-form-section {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--color-primary-rgb), 0.02) 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  box-shadow: 0 2px 8px rgba(var(--black-rgb), 0.05);
}

.profile-form-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(var(--color-primary-rgb), 0.1);
}

.profile-form-title i {
  color: var(--primary);
  font-size: 1.3rem;
}

.profile-form-label {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.profile-form-label .text-danger {
  color: var(--danger);
  margin-left: 0.2rem;
}

.profile-form-input {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(var(--black-rgb), 0.05);
}

.profile-form-input:focus {
  border-color: var(--primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1), 0 2px 8px rgba(var(--color-primary-rgb), 0.15);
  outline: none;
  transform: translateY(-1px);
}

.profile-form-input:disabled,
.profile-form-input[readonly] {
  background: rgba(var(--color-primary-rgb), 0.05);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.profile-form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.profile-password-input {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.05em;
}

.profile-toggle-password-btn {
  border: none !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  padding: 0 0.75rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  height: auto !important;
}

.profile-toggle-password-btn:hover {
  color: var(--primary) !important;
  background: transparent !important;
}

.d-flex.gap-2.gap-sm-3.flex-wrap {
  gap: 0.75rem !important;
}

@media (min-width: 576px) {
  .d-flex.gap-sm-3.flex-wrap {
    gap: 1rem !important;
  }
}

.profile-form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.profile-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-height: 40px;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

.profile-form-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--info) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}

.profile-form-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.35);
}

.profile-form-btn-primary:active {
  transform: translateY(0);
}

.profile-form-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(var(--black-rgb), 0.05);
}

.profile-form-btn-secondary:hover {
  background: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 8px rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(-1px);
}

.profile-tab-content {
  padding: 1.5rem 0;
}

.profile-alert {
  border: none;
  border-left: 4px solid;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.profile-alert-success {
  background: rgba(var(--color-success-rgb), 0.1);
  border-left-color: var(--success);
  color: var(--success);
}

.profile-alert-danger {
  background: rgba(var(--color-danger-rgb), 0.1);
  border-left-color: var(--danger);
  color: var(--danger);
}

.profile-alert-info {
  background: rgba(var(--color-info-rgb), 0.1);
  border-left-color: var(--info);
  color: var(--info);
}

.profile-alert i {
  font-weight: 700;
}

.profile-alert ul {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
}

.profile-alert ul li {
  padding: 0.25rem 0;
}

.profile-alert ul li:before {
  content: 'âœ“ ';
  margin-right: 0.5rem;
  font-weight: 700;
}

.card-body {
  max-width: 100%;
}

.tab-pane-wrapper .card-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

form {
  max-width: 100%;
  margin: 0 auto;
}

form .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.85rem;
  margin-right: -0.85rem;
}

form .col-12,
form .col-md-6 {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  margin-bottom: 0.5rem;
  flex: 0 0 auto;
}

form .col-md-6 {
  width: calc(50% - 1.7rem);
}

form .col-12 {
  width: calc(100% - 1.7rem);
}

@media (max-width: 767.98px) {
  form .col-md-6,
  form .col-12 {
    width: calc(100% - 1.7rem);
  }
}

form .profile-form-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-form-input {
  max-width: 100%;
}

.d-flex.gap-2.flex-wrap {
  gap: 0.75rem !important;
}

.input-group {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.input-group .profile-form-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 8px 0 0 8px;
}

.input-group .profile-form-btn {
  padding: 0.65rem 1rem;
  border-radius: 0 8px 8px 0;
  flex: 0 0 auto;
  width: auto;
}

@media (max-width: 1399px) {
  .profile-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .profile-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-form-label {
    font-size: 0.9rem;
  }

  .tab-pane-wrapper .card-body {
    padding: clamp(1rem, 2.5vw, 1.75rem);
  }

  .profile-form-section {
    padding: 1.25rem;
  }

  .profile-form-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .profile-stats {
    gap: 0.5rem;
  }

  .profile-stat-item {
    padding: 0.5rem;
    flex: 1 1 auto;
    min-width: 80px;
    font-size: 0.85rem;
    border-right-width: 1px;
  }

  .profile-action-btn {
    flex: 1 1 auto;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .profile-container {
    padding: 0.75rem;
  }

  .profile-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .profile-header h1 {
    font-size: 1.5rem;
  }

  .row.g-4 {
    row-gap: 1.5rem !important;
  }

  .card {
    border-radius: var(--radius-md);
  }

  .profile-card-header {
    padding: 1.25rem 1rem;
  }

  .profile-avatar-img,
  .profile-avatar-initial {
    width: 120px;
    height: 120px;
    font-size: 48px;
    border-width: 3px;
  }

  .profile-status-badge {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-info-item {
    padding: 0.9rem;
  }

  .profile-tab-nav {
    gap: 0.25rem;
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .profile-tab-btn {
    border-radius: 8px 8px 0 0;
    min-width: 50px;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .tab-pane-wrapper .card-body {
    padding: 1rem;
  }

  .profile-form-section {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left-width: 2px;
  }

  .profile-form-title {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }

  .profile-form-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .profile-form-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .profile-form-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
    flex: 1 1 auto;
  }

  .d-flex.gap-2.gap-sm-3.flex-wrap {
    gap: 0.5rem !important;
  }

  .profile-form-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .profile-action-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: auto;
  }

  .d-flex.align-items-end.gap-3.flex-wrap {
    flex-direction: row;
    align-items: flex-end !important;
    flex-wrap: wrap;
  }

  .flex-shrink-0 {
    width: auto !important;
    flex: 0 0 auto;
  }

  .flex-grow-1 {
    width: auto !important;
    flex: 1 1 auto;
  }

  form .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  form .col-12,
  form .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .profile-header h1 {
    font-size: 1.3rem;
  }

  .profile-avatar-img,
  .profile-avatar-initial {
    width: 100px;
    height: 100px;
    font-size: 40px;
    border-width: 2px;
  }

  .profile-name {
    font-size: 1rem;
  }

  .profile-username {
    font-size: 0.8rem;
  }

  .profile-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .profile-info-item {
    padding: 0.75rem;
  }

  .profile-info-item label {
    font-size: 0.7rem;
  }

  .profile-form-section {
    padding: 0.75rem;
    border-left-width: 2px;
    margin-bottom: 0.75rem;
  }

  .profile-form-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .profile-form-input {
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
  }

  .profile-form-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  .tab-pane-wrapper .card-body {
    padding: 0.75rem;
  }

  .profile-container {
    padding: 0.75rem;
  }

  form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.4rem;
    margin-right: -0.4rem;
  }

  form .col-12,
  form .col-md-6 {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    flex: 0 0 auto;
    width: calc(100% - 0.8rem);
  }
}

.loading-overlay.show {
  display: flex !important;
}

.btn,
.filter-group .radio .name,
.card {
  transition: var(--transition-fast);
  position: relative;
}

.btn:hover,
.filter-group .radio .name:hover {
  transform: translateY(-1px);
}

.btn:active,
.filter-group .radio .name:active {
  transform: translateY(0);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PDF VIEWER STYLES - Persuratan Form
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* PDF Viewer Container */
.form-pdf-viewer {
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-viewer-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input-bg, #f9fafb);
}

.pdf-viewer-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #1f2937);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-viewer-header .pdf-close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 18px;
}

.pdf-viewer-header .pdf-close-btn:hover {
  background: var(--border-light, #e5e7eb);
  color: var(--text-dark, #1f2937);
}

.pdf-viewer-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  min-height: 500px;
  background: var(--input-bg, #f9fafb);
}

.pdf-viewer-placeholder i {
  font-size: 48px;
  color: var(--text-tertiary, #d1d5db);
  margin-bottom: 16px;
}

.pdf-viewer-placeholder p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
}

.pdf-viewer-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  min-height: 500px;
  overflow: auto;
}

.pdf-viewer-canvas iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-viewer-canvas canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Form Container with PDF Viewer */
.persuratan-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.persuratan-form {
  width: 100%;
}

.persuratan-pdf-viewer {
  width: 100%;
  height: fit-content;
  position: sticky;
  top: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .persuratan-container {
    grid-template-columns: 1fr;
  }

  .persuratan-pdf-viewer {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-placeholder {
    min-height: 300px;
  }

  .pdf-viewer-canvas {
    min-height: 300px;
  }
}

.card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn:focus,
.menu-card:focus,
.document-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .card {
    border: 2px solid var(--text-primary);
  }
  .menu-card {
    border: 2px solid var(--text-primary);
  }
  .btn {
    border: 1px solid currentColor;
  }
}

.form-control {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

.form-control:focus {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.fixed-textarea {
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
}

.btn-bottom-right {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 100;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.btn-bottom-right:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-bottom-right:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .btn-bottom-right {
    width: 50px;
    height: 50px;
    bottom: var(--space-md);
    right: var(--space-md);
    font-size: 0.9rem;
  }
}

.grid-container .alert {
  grid-column: 1 / -1;
  margin: var(--space-2xl) 0;
  text-align: center;
}

.grid-container .alert .bi {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.tab-pane-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tab-nav {
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid var(--border-color);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

.tab-nav li {
  display: flex;
  flex: 1 1 auto;
  min-width: auto;
}

.tab-nav.nav-fill .tab-link {
  flex: 1 1 auto;
  width: 100%;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  min-height: 50px;
  flex: 1 1 auto;
  width: 100%;
}

.tab-link:hover {
  color: var(--primary);
  background-color: rgba(var(--color-primary-rgb), 0.05);
}

.tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-link i {
  font-size: 1rem;
}

.tab-content {
  display: none;
  padding: var(--space-lg);
  background-color: var(--bg-primary);
  animation: tabFadeIn 0.2s ease-out;
}

.tab-content.active {
  display: block;
}

.tab-content-table {
  display: none;
  background-color: var(--bg-primary);
  animation: tabFadeIn 0.2s ease-out;
}

.tab-content-table.active {
  display: block;
}

.tab-content-table .table-responsive {
  margin: var(--space-md) 0;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane-dark .tab-nav {
  border-bottom-color: var(--border-color);
}

.tab-pane-dark .tab-link {
  color: var(--text-secondary);
}

.tab-pane-dark .tab-link:hover {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--primary);
}

.tab-pane-dark .tab-link.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.tab-pane-light .tab-nav {
  background-color: var(--bg-secondary);
}

.tab-pane-light .tab-link {
  border-radius: 8px 8px 0 0;
  margin: 0 2px;
}

.tab-pane-light .tab-link.active {
  background-color: var(--bg-primary);
  border-bottom-color: var(--primary);
}

.tab-link.tab-link-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
}

.tab-link.tab-link-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .tab-nav {
    gap: 0.25rem;
  }

  .tab-link {
    padding: var(--space-md) var(--space-md);
    font-size: 0.85rem;
  }

  .tab-link i {
    font-size: 0.9rem;
  }

  .tab-content {
    padding: var(--space-md);
  }

  .tab-pane-light .tab-link {
    margin: 0 1px;
  }
}

@media (max-width: 480px) {
  .tab-link span {
    display: none;
  }

  .tab-link {
    padding: var(--space-md) var(--space-sm);
    min-width: auto;
  }

  .tab-content {
    padding: var(--space-sm);
  }
}

/* ============================================================
   SIDEBAR STYLES
   ============================================================ */

.sidebar-float {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.sidebar-float::-webkit-scrollbar {
  width: 6px;
}

.sidebar-float::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-float::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.sidebar-float::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  background: var(--sidebar-logo-bg);
  min-height: 70px;
  font-weight: 600;
  color: var(--sidebar-logo-color);
  text-decoration: none;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

.sidebar-menu {
  flex: 1;
  padding: var(--space-md) 0;
  list-style: none;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  margin: 2px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.menu-item:hover {
  background: var(--sidebar-item-bg-hover);
  color: var(--sidebar-item-color-hover);
  padding-left: calc(var(--space-md) + 4px);
}

.menu-item.active,
.menu-item.archive-menu.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-item-color-active);
  font-weight: 600;
  border-left: 4px solid var(--primary);
  padding-left: calc(var(--space-md) - 4px);
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  min-width: 20px;
  flex-shrink: 0;
}

.menu-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-md) 0;
}

.sidebar-footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.sidebar-version {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
  .sidebar-float {
    width: 240px;
  }

  .sidebar-logo {
    padding: var(--space-md);
    min-height: 60px;
  }

  .sidebar-logo img {
    width: 35px;
    height: 35px;
  }

  .menu-item {
    padding: var(--space-md) var(--space-md);
  }

  .menu-item:hover {
    padding-left: calc(var(--space-md) + 4px);
  }

  .menu-item.active {
    padding-left: calc(var(--space-md) - 4px);
  }
}

/* ------------------------------------------------------------
   PDF VIEWER ANIMATIONS
   ------------------------------------------------------------ */

/* Scale In Animation untuk PDF viewer appearance */
@keyframes scale-in {
  from {
    transform: scale(0.98);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pdf-viewer-canvas {
  animation: scale-in 0.4s ease-out;
}

/* Placeholder fade out */
.pdf-viewer-placeholder {
  animation: fade-out 0.3s ease-out forwards;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* PDF Frame slide in */
#pdfFrame {
  animation: slide-in-smooth 0.5s ease-out;
}

@keyframes slide-in-smooth {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Animation for placeholder icon */
.pdf-viewer-placeholder i {
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Persuratan container fade in */
.persuratan-container {
  animation: fade-in-container 0.6s ease-out;
}

.persuratan-input-page .persuratan-container {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

.persuratan-input-page .persuratan-form {
  width: 100%;
  max-width: 100%;
}

.persuratan-input-page .form-card {
  width: 100%;
}

@keyframes fade-in-container {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   DETAIL PERSURATAN PAGE STYLES
   ------------------------------------------------------------ */

/* Detail Card */
.detail-card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: fade-in-container 0.6s ease-out;
}

.detail-card-header {
  background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, var(--color-info, #0ea5e9) 100%);
  color: white;
  padding: 1.25rem;
  border-bottom: none;
}

.detail-card-header h5 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-card-header i {
  font-size: 1.2rem;
}

/* Detail Row */
.detail-row {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  animation: section-fade-in 0.5s ease-out backwards;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row:nth-child(1) { animation-delay: 0.1s; }
.detail-row:nth-child(2) { animation-delay: 0.15s; }
.detail-row:nth-child(3) { animation-delay: 0.2s; }
.detail-row:nth-child(4) { animation-delay: 0.25s; }
.detail-row:nth-child(5) { animation-delay: 0.3s; }
.detail-row:nth-child(6) { animation-delay: 0.35s; }
.detail-row:nth-child(7) { animation-delay: 0.4s; }
.detail-row:nth-child(8) { animation-delay: 0.45s; }
.detail-row:nth-child(9) { animation-delay: 0.5s; }
.detail-row:nth-child(10) { animation-delay: 0.55s; }

.detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin-bottom: 6px;
}

.detail-value {
  color: var(--text-dark, #1f2937);
  font-size: 14px;
  line-height: 1.6;
}

.detail-value p {
  margin: 0;
  word-break: break-word;
}

.detail-value .badge {
  font-size: 12px;
  padding: 4px 10px;
  font-weight: 500;
}

/* Detail Actions */
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-actions .btn {
  flex: 1;
  min-width: 120px;
  padding: 6px 12px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.detail-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-actions-back {
  animation: slide-in-top 0.4s ease-out;
}

.detail-actions-back .btn {
  padding: 10px 16px;
  font-weight: 500;
}

/* PDF Viewer Card */
.detail-pdf-viewer {
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: fit-content;
  position: sticky;
  top: 20px;
  animation: fade-in-container 0.6s ease-out 0.1s backwards;
}

.pdf-viewer-header {
  background: linear-gradient(135deg, var(--color-warning, #f59e0b) 0%, var(--color-danger, #ef4444) 100%);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.pdf-viewer-header h5 {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-close-pdf {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close-pdf:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.pdf-viewer-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  min-height: 500px;
  background: var(--input-bg, #f9fafb);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.placeholder-content i {
  font-size: 64px;
  color: var(--text-tertiary, #d1d5db);
  animation: float-icon 3s ease-in-out infinite;
}

.placeholder-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  max-width: 200px;
}

.pdf-viewer-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.pdf-viewer-canvas.pdf-viewer-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: skeleton-loading 2s infinite;
}

.pdf-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e0e0e0;
  z-index: 10;
}

.progress-animation {
  height: 100%;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  animation: progress-bar 2s infinite;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.pdf-viewer-canvas.pdf-viewer-loaded {
  animation: fade-in-up 0.5s ease-out;
}

.pdf-viewer-canvas.pdf-viewer-loaded #pdfFrame {
  animation: fade-in-up 0.5s ease-out;
}

/* Detail Loading Overlay */
.detail-loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-in 0.3s ease-out forwards;
}

.detail-loading-overlay .spinner-sm {
  border-width: 3px;
  width: 40px;
  height: 40px;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .detail-pdf-viewer {
    position: static;
    top: auto;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .detail-card,
  .detail-pdf-viewer {
    border-radius: 6px;
  }

  .detail-row {
    padding: 0.75rem 0;
  }

  .detail-actions .btn {
    min-width: 100px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .pdf-viewer-placeholder {
    min-height: 300px;
    padding: 40px 16px;
  }

  .placeholder-content i {
    font-size: 48px;
  }

  .pdf-viewer-canvas {
    min-height: 300px;
  }

  .detail-card-header h5 {
    font-size: 14px;
  }

  .detail-label {
    font-size: 10px;
  }

  .detail-value {
    font-size: 13px;
  }
}


/* ============================================================
   TAB CUSTOM
   ============================================================ */

}


/* ════════════════════════════════════════════════════════
   tab-custom.css (1.54 KB)
   ════════════════════════════════════════════════════════ */
/* Tab Customization - Archive Views */

.nav-tabs {
  background: var(--bg-card, #ffffff);
  border-bottom: 2px solid var(--border-color, #e5e7eb);
  margin-bottom: 1.5rem;
  border-radius: var(--radius, 0.5rem);
  display: flex;
  flex-wrap: wrap;
}

.nav-tabs .nav-link {
  color: var(--text-secondary, #6b7280);
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  background: transparent;
  cursor: pointer;
  display: inline-block;
}

.nav-tabs .nav-link:hover {
  color: var(--color-primary, #2563eb);
  border-bottom-color: var(--color-primary, #2563eb);
}

.nav-tabs .nav-link.active {
  color: var(--color-primary, #2563eb);
  border-bottom-color: var(--color-primary, #2563eb);
  background-color: transparent;
}

.tab-content {
  padding: 1.5rem 0;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-pane.show {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.tab-pane.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-pane.fade.show {
  opacity: 1;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-tabs {
    margin-bottom: 1rem;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .tab-content {
    padding: 1rem 0;
  }
}
