:root {
  --primary: #6b0d77;
  --secondary: #8d0792;
  --tertiary: #e6a7e1;
  --blue: #330762;
}
/* Add Employee Form Styles */
.employee-form {
    font-family: 'adobe-clean', sans-serif;
    font-size: 13px;
    padding: 2px 20px;
  }
  
  .employee-form .content-header {
    margin-bottom: 1px;
    padding: 9px;
  }

  .employee-form .content-header .row {
    align-items: center;
  }

  .employee-form .tabs-container {
    display: flex;
    justify-content: flex-end;
  }

  .employee-form .content-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
  }
  
  .employee-form .content-header p {
    font-size: 11px;
    color: #6b7280;
    /* margin-top: 8px; */
  }
  
  .employee-form .nav-tabs {
    border-bottom: 2px solid #dee2e6;
  }
  
  .employee-form .nav-tabs .nav-link {
    font-size: 13px;
    padding: 10px 20px;
    color: #6b7280;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .employee-form .nav-tabs .nav-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
  }
  
  .employee-form .nav-tabs .nav-link.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
    font-weight: 600;
    background: transparent;
  }
  
  .employee-form .section-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }

.employee-form .employee-content-card {
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  max-width: 1270px;
  /* margin: 8px auto 0; */
}

/* .employee-form .employee-content-card .card-body {
  padding: 20px;
} */

.employee-form .form-control:focus {
  border-color: var(--primary);
}

.employee-form .form-actions {
  gap: 16px;
}

.user-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
}

.profile-card {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.profile-card .card-body {
  padding: 24px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ede9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 12px;
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.is-loading img,
.profile-avatar.is-loading span {
  opacity: 0.4;
}

.profile-name {
  font-weight: 600;
  margin: 6px 0 2px;
}

.profile-role {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

.profile-upload-btn {
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 20px;
}

.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.crop-modal {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-width: 92%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.confirm-modal {
  animation: slideUpFade 0.28s ease-out;
}

.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.crop-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.crop-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
}

.crop-body {
  padding: 16px 20px;
}

.confirm-message {
  margin: 0;
  font-size: 14px;
  color: #111827;
}

.confirm-delete-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.confirm-delete-btn:hover:not(:disabled),
.confirm-delete-btn:focus {
  background: var(--primary);
  border-color:  var(--primary);
  color: #fff;
}

.switch-toggle {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 26px;
  align-items: center;
  margin: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.switch-slider::after {
  content: attr(data-off);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.switch-toggle input:checked + .switch-slider {
  background: var(--blue);
  color: #fff;
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(38px);
}

.switch-toggle input:checked + .switch-slider::after {
  content: attr(data-on);
  left: 10px;
  right: auto;
}

.crop-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
}

.crop-controls input[type="range"] {
  flex: 1;
}

.crop-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e7eb;
}

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

/* Subscription table overrides */
.subscription-table thead th {
  background: transparent !important;
  color: #0070bc;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #e5e7eb;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 16px;
}

.subscription-table thead th:first-child {
  width: 90px;
}

.subscription-table td {
  font-size: 13px;
  padding: 14px 16px;
  border-top: 1px solid #f1f5f9;
}

.subscription-table {
  min-width: 720px;
}

.employee-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subscription-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .subscription-header-actions {
    justify-content: flex-start;
  }
}

.subscription-table tbody tr {
  background: #ffffff;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscription-table tbody tr:hover {
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

.subscription-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.subscription-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.subscription-table tbody tr td {
  border-left: none;
  border-right: none;
}

.subscription-detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  column-gap: 40px;
}

.subscription-detail-row {
  display: grid;
  grid-template-columns: 180px 20px 1fr;
  align-items: center;
  gap: 0;
}

.subscription-detail-row .profile-label {
  min-width: auto;
  font-weight: 600;
  text-transform: none;
  color: #1f2937;
  font-size: 13px;
}

.subscription-separator {
  text-align: center;
  color: #9ca3af;
  font-weight: 600;
  font-size: 13px;
}

.subscription-detail-row .profile-value {
  font-size: 14px;
}

.status-text {
  text-transform: capitalize;
}

.status-text.status-active {
  color: #16a34a;
  font-weight: 600;
}

.subscription-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.employee-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

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

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

@media (max-width: 768px) {
  .subscription-detail-list {
    grid-template-columns: 1fr;
  }

  .subscription-detail-row {
    grid-template-columns: 120px 12px 1fr;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.neutral {
  background: #e5e7eb;
  color: #374151;
}

.action-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon-btn:last-child {
  margin-right: 0;
}

.action-icon-btn.view {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.action-icon-btn.edit {
  border-color: #10b981;
  color: #10b981;
}

.action-icon-btn.delete {
  border-color: #ef4444;
  color: #ef4444;
}

.action-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.profile-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.profile-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

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

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.custom-checkbox .checkbox-label {
  position: relative;
  padding-left: 28px;
  font-size: 13px;
  color: #1f2937;
  user-select: none;
}

.custom-checkbox .checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label::before {
  background: var(--blue);
  border-color: var(--blue);
}

.custom-checkbox .checkbox-label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg) scale(0);
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transition: transform 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-label::after {
  transform: translateY(-55%) rotate(45deg) scale(1);
}

.custom-checkbox:hover .checkbox-label::before {
  border-color: #6b0d77;
}

.required-asterisk {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.visibility-label {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
  min-width: 40px;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.number-input {
  text-align: right;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  cursor: text;
}

.number-input:read-only {
  background-color: #fff;
  cursor: text;
}

/* File input styling */
input[type="file"].form-control {
  height: auto;
  line-height: 1;
}

input[type="file"].form-control::file-selector-button {
  padding: 6px 12px;
  margin-right: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

input[type="file"].form-control::file-selector-button:hover {
  background: var(--primary);
}

/* Enhanced Detail View Styles - Professional */
.detail-section {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  overflow: hidden;
}

.detail-section-header {
  background: #f8f9fa;
  border-bottom: 2px solid var(--blue);
  color: #1f2937;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.detail-section-header.financial {
  border-bottom-color: #e53e3e;
}

.detail-section-header.status {
  border-bottom-color: #3182ce;
}

.detail-section-header.audit {
  border-bottom-color: #38a169;
}

.detail-section-header i {
  font-size: 18px;
  color: var(--blue);
}

.detail-section-header.financial i {
  color: #e53e3e;
}

.detail-section-header.status i {
  color: #3182ce;
}

.detail-section-header.audit i {
  color: #38a169;
}

.detail-section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item.financial-item {
  background: #fff5f5;
  border-left: 3px solid #e53e3e;
}

.detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
}

.detail-icon.financial {
  background: #e53e3e;
}

.detail-icon.status {
  background: #3182ce;
}

.detail-icon.audit {
  background: #38a169;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-content label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  word-break: break-word;
}

.detail-value.highlight {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
}

.detail-value.amount {
  color: #e53e3e;
  font-size: 16px;
  font-weight: 600;
}

.detail-value.summary {
  line-height: 1.6;
  color: #374151;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-all;
}

.detail-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.detail-link i {
  font-size: 11px;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.financial-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.visibility-badge.visible {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
  border-radius: 16px;
}

.visibility-badge.hidden {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
  border-radius: 16px;
}

.visibility-badge i {
  font-size: 11px;
}

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

.visibility-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.visibility-tag.paid {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

.visibility-tag.free {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.visibility-tag i {
  font-size: 11px;
}

.detail-timestamp {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
  margin-top: 2px;
}

.detail-item-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item.image-item {
  /* grid-row: span 2; */
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.detail-actions .btn-lg {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 26px;
  transition: all 0.2s ease;
}

.detail-actions .btn-lg:hover {
  opacity: 0.9;
}

.detail-actions .btn-lg i {
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .detail-item.image-item {
    grid-row: auto;
  }

  .detail-item-group {
    gap: 14px;
  }

  .detail-section-header {
    padding: 12px 14px;
    font-size: 15px;
  }

  .detail-item {
    padding: 12px;
  }

  .detail-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .detail-value.amount {
    font-size: 15px;
  }

  .detail-actions {
    padding: 16px;
    justify-content: center;
  }

  .detail-actions .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
  }
}