/* Solidarity Karnataka Locations Styling */

/* Hide original SupportCandy text inputs once enhanced */
.wpsc-create-ticket .skl-original-field,
.change-ticket-fields .skl-original-field {
  display: none !important;
}

/* Custom Location & Department Selectors */
.wpsc-create-ticket .skl-location-select,
.change-ticket-fields .skl-location-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #b7bdc6;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  margin-top: 4px;
}

.wpsc-create-ticket .skl-location-select:focus,
.change-ticket-fields .skl-location-select:focus {
  border-color: #6b5aa6;
  box-shadow: 0 0 0 2px rgba(107, 90, 166, .16);
  outline: none;
}

.wpsc-create-ticket .skl-location-select:disabled,
.change-ticket-fields .skl-location-select:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* "Other" Text Input */
.wpsc-create-ticket .skl-other-input,
.change-ticket-fields .skl-other-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #b7bdc6;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.wpsc-create-ticket .skl-other-input:focus,
.change-ticket-fields .skl-other-input:focus {
  border-color: #6b5aa6;
  box-shadow: 0 0 0 2px rgba(107, 90, 166, .16);
  outline: none;
}

/* ==========================================================================
   Admin Management Dashboard
   ========================================================================== */

.skl-admin-container {
  max-width: 1200px;
  margin-top: 20px;
}

.skl-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.skl-header p.description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

/* Tabs */
.skl-nav-tabs {
  margin-bottom: 20px !important;
}

.skl-nav-tabs .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 8px 16px;
}

.skl-nav-tabs .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Count Badge */
.skl-badge-count {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background-color: #2563eb;
  border-radius: 10px;
  vertical-align: middle;
}

/* Toolbar */
.skl-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.skl-search-box input {
  min-width: 280px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* Department Accordion */
.skl-dept-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skl-dept-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.skl-dept-card-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.skl-dept-card-header:hover {
  background: #f8fafc;
}

.skl-dept-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skl-toggle-icon {
  transition: transform 0.2s ease;
  color: #64748b;
}

.skl-dept-card.open .skl-toggle-icon {
  transform: rotate(90deg);
}

.skl-dept-name {
  font-size: 14px;
  color: #0f172a;
}

.skl-subdept-body {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fcfcfd;
}

/* Locations 3-Column Hierarchy */
.skl-global-search-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.skl-global-search-bar input {
  width: 100%;
  max-width: 480px;
  padding: 6px 12px;
  margin-left: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.skl-search-results {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  max-width: 600px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  z-index: 100;
}

.skl-search-results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skl-search-results li {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.skl-search-results li:hover {
  background: #f1f5f9;
}

.skl-hierarchy-columns {
  display: flex;
  gap: 16px;
}

.skl-column {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.skl-column-wide {
  flex: 1.5;
}

.skl-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skl-column-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.skl-col-filter {
  width: 100%;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.skl-item-list {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
}

.skl-item {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.skl-item:hover {
  background: #f8fafc;
}

.skl-item.active {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}

.skl-item-title strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.skl-placeholder-text {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.skl-empty-notice {
  padding: 30px;
  text-align: center;
  color: #64748b;
}

.skl-loading-spinner {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* Approval Queue & Badges */
.skl-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.skl-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.skl-status-approved {
  background: #dcfce7;
  color: #166534;
}

.skl-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.skl-badge-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.skl-highlight-val {
  font-weight: 600;
  color: #1e293b;
}

/* Card Grid for Import/Export */
.skl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.skl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.skl-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #1e293b;
}

.skl-card-warning {
  border-color: #fecaca;
  background: #fffaf0;
}

.skl-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Modals */
.skl-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skl-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.skl-modal-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 460px;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  z-index: 1;
}

.skl-modal-box h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 18px;
  color: #0f172a;
}

.skl-modal-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

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

.skl-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.skl-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   Get Started & Onboarding Page Styling
   ========================================================================== */

.skl-getstarted-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skl-getstarted-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  border-radius: 10px;
  padding: 32px 36px;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.skl-getstarted-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.skl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.skl-hero-badge .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: #fde047;
}

.skl-getstarted-hero h2 {
  color: #ffffff !important;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.skl-hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e7ff;
  max-width: 820px;
  margin: 0 0 24px 0;
}

.skl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.skl-hero-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 16px;
  height: auto;
  min-height: 38px;
  box-sizing: border-box;
}

.skl-btn-white {
  background: #ffffff !important;
  color: #1e3a8a !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skl-btn-white:hover {
  background: #f8fafc !important;
  color: #1d4ed8 !important;
}

.skl-btn-ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.skl-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.skl-section-title {
  margin-top: 16px;
}

.skl-section-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skl-section-title h3 .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: #2563eb;
}

.skl-section-title p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

/* Diagnostics Status Grid */
.skl-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.skl-status-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.skl-status-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.skl-status-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skl-status-card-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.skl-icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.skl-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.skl-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.skl-status-card-meta h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.skl-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.skl-pill .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

.skl-pill-success {
  background: #dcfce7;
  color: #15803d;
}

.skl-pill-warning {
  background: #fef3c7;
  color: #b45309;
}

.skl-pill-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.skl-pill-info {
  background: #e0f2fe;
  color: #0369a1;
}

.skl-status-card-body {
  font-size: 13px;
  color: #475569;
}

.skl-status-card-body p {
  margin: 0 0 8px 0;
}

.skl-metrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skl-metrics-list li {
  font-size: 12px;
  color: #475569;
}

.skl-metrics-list li strong {
  color: #0f172a;
  font-size: 13px;
}

.skl-field-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skl-field-check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.skl-field-check-list li:last-child {
  border-bottom: none;
}

.skl-field-check-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.skl-field-check-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.skl-check-yes {
  color: #16a34a;
}

.skl-check-no {
  color: #dc2626;
}

.skl-field-check-label {
  flex: 1;
}

.skl-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.skl-tag-ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.skl-tag-missing {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Steps Styling */
.skl-steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.skl-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 18px;
  position: relative;
}

.skl-step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.skl-step-content {
  flex: 1;
}

.skl-step-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.skl-step-content p {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.skl-table-instructions {
  margin: 12px 0 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.skl-table-instructions th {
  background: #f8fafc !important;
  font-weight: 700 !important;
  color: #334155 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

.skl-table-instructions td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
  font-size: 13px !important;
}

.skl-table-instructions code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.skl-step-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.skl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skl-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.skl-checklist .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.skl-compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 10px;
}

.skl-compact-grid .skl-card {
  padding: 14px;
}

.skl-compact-grid h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skl-card-highlight {
  border-left: 3px solid #2563eb !important;
  background: #f8fafc;
}

/* Feature Boxes Grid */
.skl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.skl-feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.skl-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.skl-feature-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.skl-feature-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.skl-feature-box p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Accordion */
.skl-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.skl-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.skl-faq-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.skl-faq-item p {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.skl-faq-item code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
}

