.animated-placeholder-input-container {
  position: relative !important;
}

.animated-placeholder-input-container input {
  width: 100% !important;
  padding: 10px !important;
  font-size: 16px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
}

.animated-placeholder-input-container label {
  position: absolute !important;
  top: 50% !important;
  left: 10px !important;
  font-size: 16px !important;
  color: gray !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
}

.animated-placeholder-input-container input:focus + label, .animated-placeholder-input-container input:not(:placeholder-shown) + label {
  top: -15px !important;
  left: 0px !important;
  color: #1681cd !important;
}

.animated-placeholder-input-container input::placeholder {
  color: transparent !important;
}

.knowledge-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddd;
  height: 350px;
  width: 400px;
  overflow: hidden;
}

.phone-number-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddd;
  /*height: 350px;*/
  width: 400px;
  overflow: hidden;
}

/* Legacy assistant-container - kept for backwards compatibility */
.assistant-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddd;
  height: 350px;
  width: 400px;
  overflow: hidden;
}

/* ============================================
   PROFESSIONAL ASSISTANT CARD DESIGN
   ============================================ */

.assistant-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.assistant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Header */
.assistant-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.assistant-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.assistant-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.assistant-card-icon svg {
  fill: #ffffff;
  opacity: 0.95;
}

.assistant-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assistant-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  width: fit-content;
}

.scheduling-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.food-order-badge {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.spam-filter-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.customer-service-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.assistant-card-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Header Status Indicator */
.assistant-status-indicator {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-active .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 8px rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

.status-disabled .status-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  animation: none;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 8px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15), 0 0 12px rgba(16, 185, 129, 0.3); }
}

/* Enabled Toggle Section */
.assistant-card-enabled-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  border-bottom: 1px solid #dcfce7;
  transition: all 0.3s ease;
}

.assistant-card-enabled-toggle .toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.assistant-status-text {
  font-size: 12px;
  font-weight: 500;
  color: #16a34a;
  transition: all 0.3s ease;
}

/* Disabled card state */
.assistant-card-disabled .assistant-card-enabled-toggle {
  background: #fef2f2;
  border-top-color: #fecaca;
  border-bottom-color: #fecaca;
}

.assistant-card-disabled .assistant-card-enabled-toggle .toggle-label {
  color: #991b1b;
}

.assistant-card-disabled .assistant-status-text {
  color: #dc2626;
}

.assistant-card-disabled .assistant-card-body,
.assistant-card-disabled .assistant-card-toggles,
.assistant-card-disabled .assistant-card-actions {
  opacity: 0.55;
  pointer-events: none;
}

.assistant-card-disabled .assistant-card-enabled-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* Card Body */
.assistant-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  background: #fafafa;
}

.assistant-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.assistant-info-row svg {
  fill: #9ca3af;
  flex-shrink: 0;
}

.assistant-business-name {
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-date-created,
.assistant-phone-count {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Toggles */
.assistant-card-toggles {
  display: flex;
  justify-content: space-around;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.assistant-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: all 0.3s ease;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.toggle-label svg {
  fill: #9ca3af;
}

/* Card Actions */
.assistant-card-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #ffffff;
}

.assistant-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assistant-btn-edit {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.assistant-btn-edit:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.assistant-btn-edit:hover svg {
  fill: #ffffff;
}

.assistant-btn-edit svg {
  fill: #0369a1;
  transition: fill 0.2s ease;
}

.assistant-btn-delete {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.assistant-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.assistant-btn-delete:hover svg {
  fill: #ffffff;
}

.assistant-btn-delete svg {
  fill: #b91c1c;
  transition: fill 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 420px) {
  .assistant-card {
    width: 100%;
    max-width: 380px;
  }
  
  .assistant-card-toggles {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================
   PROFESSIONAL KNOWLEDGE BASE CARD DESIGN
   ============================================ */

.knowledge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Knowledge Card Header */
.knowledge-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  position: relative;
  overflow: hidden;
}

.knowledge-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.knowledge-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.knowledge-card-icon svg {
  fill: #ffffff;
  opacity: 0.95;
}

.knowledge-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.knowledge-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  width: fit-content;
  background: rgba(94, 234, 212, 0.2);
  color: #5eead4;
}

.knowledge-card-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Knowledge Card Body */
.knowledge-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  background: #fafafa;
  min-height: 164px;
}

.knowledge-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.knowledge-info-row svg {
  fill: #9ca3af;
  flex-shrink: 0;
  margin-top: 2px;
}

.knowledge-description {
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.knowledge-file-count,
.knowledge-date-created {
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
}

/* Knowledge Card Actions */
.knowledge-card-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.knowledge-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.knowledge-btn-edit {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.knowledge-btn-edit:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.knowledge-btn-edit:hover svg {
  fill: #ffffff;
}

.knowledge-btn-edit svg {
  fill: #0369a1;
  transition: fill 0.2s ease;
}

.knowledge-btn-delete {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.knowledge-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.knowledge-btn-delete:hover svg {
  fill: #ffffff;
}

.knowledge-btn-delete svg {
  fill: #b91c1c;
  transition: fill 0.2s ease;
}

.knowledge-btn-assign {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.knowledge-btn-assign:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
}

.knowledge-btn-assign:hover svg {
  stroke: #ffffff;
}

.knowledge-btn-assign svg {
  stroke: #15803d;
  transition: stroke 0.2s ease;
}

/* Knowledge Card Responsive */
@media (max-width: 420px) {
  .knowledge-card {
    width: 100%;
    max-width: 380px;
  }
  
  .knowledge-card-actions {
    flex-direction: column;
  }
  
  .knowledge-btn {
    width: 100%;
  }
}

/* ============================================
   PROFESSIONAL PHONE NUMBER CARD DESIGN
   ============================================ */

.phone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Phone Card Header */
.phone-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  position: relative;
  overflow: hidden;
}

.phone-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.phone-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.phone-card-icon svg {
  fill: #ffffff;
  opacity: 0.95;
}

.phone-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  width: fit-content;
}

.phone-status-active {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.phone-status-removed {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.phone-card-number {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Phone Card Body */
.phone-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
  background: #fafafa;
}

.phone-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4b5563;
  font-size: 14px;
}

.phone-info-row svg {
  fill: #9ca3af;
  flex-shrink: 0;
}

.phone-location {
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-assistant-name,
.phone-description,
.phone-date-registered {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Phone Card Actions */
.phone-card-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.phone-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-btn-edit {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.phone-btn-edit:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.phone-btn-edit:hover svg {
  fill: #ffffff;
}

.phone-btn-edit svg {
  fill: #0369a1;
  transition: fill 0.2s ease;
}

.phone-btn-delete {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.phone-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.phone-btn-delete:hover svg {
  fill: #ffffff;
}

.phone-btn-delete svg {
  fill: #b91c1c;
  transition: fill 0.2s ease;
}

/* Phone Card Responsive */
@media (max-width: 420px) {
  .phone-card {
    width: 100%;
    max-width: 380px;
  }
}

.knowledge-container-footer {
  margin-top: auto;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
}

.phone-number-container-footer {
  margin-top: auto;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
}

/* Legacy footer - kept for backwards compatibility */
.assistant-container-footer {
  margin-top: auto;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
}

.knowledge-container-body p {
  /*margin-left: 5px;*/
  /*margin-right: 5px;*/
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}

.assistant-container-body p {
  /*margin-left: 5px;*/
  /*margin-right: 5px;*/
  /*width: 100%;*/
  /*overflow: hidden;*/
  text-overflow: ellipsis;
  /*white-space: nowrap;*/
  line-height: 1.5;
}

.knowledge-container-body {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
}

.phone-number-container-body {
  /*flex-grow: 1;*/
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.assistant-container-body {
  /*flex-grow: 1;*/
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.knowledge-container-header {
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.phone-number-container-header {
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.assistant-container-header {
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.select2-selection {
  padding-bottom: 11px !important;
}

.phone-row-selected {
  font-weight: bold;
}

.tr-with-pointer {
  cursor: pointer;
}

#pre-defined-hours a {
  cursor: pointer;
}

.appointment-status-select-confirmed {
  background: var(--bs-success);
}

.appointment-status-select-canceled {
  background: var(--bs-danger);
}

@media (min-width: 576px) {
  #block-new-number-btn {
    width: 40% !important;
  }
}

.trim-detail-text {
  max-width: 400px;
  overflow: hidden;
  /*white-space: nowrap;*/
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  #paralax-div {
    height: 800px!important;
  }
}

/* FullCalendar Toolbar Styles */
.fc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem !important;
}

.fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fc-toolbar-title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  white-space: nowrap;
}

.fc-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.fc-button {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
}

.fc-button .bi {
  font-size: 1rem;
}

/* Mobile Responsive Adjustments */

@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .fc-toolbar-chunk {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .fc-toolbar-title {
    font-size: 1.25rem !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .fc-button-group {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .fc-button {
    flex: 1;
    min-width: 0;
    padding: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .fc-today-button {
    width: 100%;
  }
}

/* Adjust calendar grid for mobile */

@media (max-width: 768px) {
  .fc-view-harness {
    min-height: 400px !important;
  }
}

@media (max-width: 768px) {
  .fc-daygrid-day {
    min-height: 80px !important;
  }
}

@media (max-width: 768px) {
  .fc-event {
    font-size: 0.75rem !important;
    padding: 0.25rem !important;
  }
}

/* Additional Calendar Enhancements */

.fc-theme-standard td, .fc-theme-standard th {
  border-color: var(--bs-border-color) !important;
}

.fc-day-today {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.fc-button-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.fc-button-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

.fc-button-primary:not(:disabled):active, .fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

.fc-button-primary:disabled {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  opacity: 0.65;
}

/* ============================================
   CALL STATISTICS PAGE
   ============================================ */

.stat-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.stat-card-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.date-preset-btn.active {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

.score-bar {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  min-width: 50px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.expandable-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.expandable-row .expand-icon {
  transition: transform 0.2s ease;
  color: #9ca3af;
}

.expanded-detail {
  background-color: #f9fafb;
}

.expanded-detail td {
  border-top: none !important;
  padding-top: 0 !important;
}

.abandoned-date-preset-btn.active {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

#abandoned-call-detail-modal .table-sm td {
  padding: 4px 8px;
}

#stats-tabs .nav-link {
  font-weight: 500;
}

#stats-tabs .nav-link.active {
  color: #0284c7;
  border-color: #0284c7;
  border-bottom-color: transparent;
}

/* ============================================
   CALLBACK QUEUE CARDS
   ============================================ */

.callback-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid #9ca3af;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.callback-card:last-child {
  margin-bottom: 0;
}

.callback-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.callback-card-critical { border-left-color: #dc2626; }
.callback-card-high { border-left-color: #f97316; }
.callback-card-medium { border-left-color: #0ea5e9; }
.callback-card-low { border-left-color: #9ca3af; }
.callback-card-none { border-left-color: #e5e7eb; }

.callback-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 14px 6px;
  gap: 6px;
}

.callback-card-body {
  padding: 4px 14px 8px;
}

.callback-card-footer {
  padding: 6px 14px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.callback-card-footer .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ============================================
   DETAIL META PILLS (expanded row & cards)
   ============================================ */

.detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 20px;
  white-space: nowrap;
}

.detail-meta-pill .badge {
  font-size: 11px;
}

/* ============================================
   EXPANDED DETAIL PANEL (recent calls table)
   ============================================ */

.detail-panel {
  padding: 12px 8px;
}

.detail-panel-section {
  font-size: 13px;
}

/* ============================================
   MODAL SECTIONS
   ============================================ */

.modal-summary-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.modal-section-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.modal-section-title {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.modal-section-title i {
  color: #6b7280;
  margin-right: 4px;
}

/* Analysis boxes with left-border accent */
.analysis-box {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.analysis-box-summary { border-left: 3px solid #3b82f6; }
.analysis-box-recovery { border-left: 3px solid #10b981; }
.analysis-box-script { border-left: 3px solid #8b5cf6; }

/* Speech stat grid */
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-stat-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}

.detail-stat-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 2px;
}

.detail-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* ============================================
   ABANDONED CALLS - MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
  /* Callback Queue cards */
  .callback-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Recent calls table: hide Priority and Score columns */
  #abandoned-calls-table .abandoned-col-priority,
  #abandoned-calls-table .abandoned-col-score {
    display: none;
  }

  /* Expanded detail: View Full Details button full-width */
  .detail-panel .view-abandoned-detail-btn {
    width: 100%;
  }

  /* Speech stat grid: 2 columns on mobile */
  .detail-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modal section cards: tighter padding */
  .modal-section-card {
    padding: 10px 12px;
  }

  /* Modal footer buttons: comfortable tap targets */
  #detail-callback-actions .btn {
    min-height: 44px;
    padding: 8px 14px;
  }
}

@media (max-width: 575.98px) {
  /* Summary metric cards: full-width on very small screens */
  #tab-abandoned-calls .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Speech stat grid: single column */
  .detail-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Even tighter modal padding */
  .modal-summary-bar {
    padding: 8px 10px;
  }
}

/* ============================================
   AI ASSISTANT WIZARD REDESIGN
   ============================================ */

/* --- Type Selector Cards --- */

.type-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.type-selector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 24px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.type-selector-card:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.type-selector-card:active {
  transform: translateY(-1px);
}

.type-selector-card.disabled-card {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.type-selector-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.type-selector-card-icon svg {
  width: 28px;
  height: 28px;
}

.type-selector-card-icon.scheduling-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.type-selector-card-icon.scheduling-icon svg { fill: #3b82f6; }

.type-selector-card-icon.customer-service-icon {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}
.type-selector-card-icon.customer-service-icon svg { fill: #a855f7; }

.type-selector-card-icon.food-order-icon {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}
.type-selector-card-icon.food-order-icon svg { fill: #f97316; }

.type-selector-card-icon.spam-filter-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}
.type-selector-card-icon.spam-filter-icon svg { fill: #22c55e; }

.type-selector-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.type-selector-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.type-selector-card .card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-badge-new {
  background: #dcfce7;
  color: #15803d;
}

.card-badge-soon {
  background: #e0f2fe;
  color: #0369a1;
}

#new-assistant-type-modal .modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: none;
  padding: 24px 28px;
}

#new-assistant-type-modal .modal-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
}

#new-assistant-type-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

#new-assistant-type-modal .btn-close:hover {
  opacity: 1;
}

#new-assistant-type-modal .modal-body {
  padding: 28px;
}

#new-assistant-type-modal .modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 16px 28px;
}

#new-assistant-type-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .type-selector-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Wizard Modal Styling --- */

.wizard-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.wizard-modal .modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: none;
  padding: 20px 28px;
  gap: 14px;
}

.wizard-modal .modal-header img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.wizard-modal .modal-header .modal-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  flex: 1;
}

.wizard-modal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.wizard-modal .modal-header .btn-close:hover {
  opacity: 1;
}

.wizard-modal .modal-body {
  padding: 0;
  background: #f8fafc;
}

.wizard-modal .modal-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 28px;
  gap: 10px;
}

/* --- Wizard Stepper --- */

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  gap: 0;
  flex-wrap: wrap;
}

.wizard-step-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.wizard-step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  background: #e2e8f0;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  cursor: default;
}

.wizard-step-dot.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.wizard-step-dot.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.wizard-step-dot.completed::after {
  content: "\2713";
  font-size: 14px;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.wizard-step-label.active {
  color: #3b82f6;
  font-weight: 600;
}

.wizard-step-label.completed {
  color: #10b981;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 50px;
}

.wizard-step-connector {
  width: 28px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 2px;
  margin-bottom: 18px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.wizard-step-connector.completed {
  background: #10b981;
}

/* Progress bar restyled as thin accent line */
.wizard-modal .progress {
  height: 3px;
  border-radius: 0;
  background: #e2e8f0;
  overflow: hidden;
}

.wizard-modal .progress .progress-bar {
  font-size: 0;
  color: transparent;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Wizard Step Content --- */

.wizard-step-content {
  padding: 28px;
  min-height: 180px;
}

.wizard-step-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.wizard-step-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* --- Wizard Form Fields --- */

.wizard-field-group {
  margin-bottom: 16px;
}

.wizard-field-group:last-child {
  margin-bottom: 0;
}

.wizard-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.wizard-modal .tab-content .tab-pane .input-group {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.wizard-modal .tab-content .tab-pane .input-group:last-child {
  margin-bottom: 0;
}

.wizard-modal .tab-content .tab-pane .input-group > .input-group-text {
  width: auto !important;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
}

.wizard-modal .tab-content .tab-pane .input-group > .form-control,
.wizard-modal .tab-content .tab-pane .input-group > .form-select {
  border-radius: 10px !important;
  border: 1.5px solid #d1d5db;
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  width: 100% !important;
}

.wizard-modal .tab-content .tab-pane .input-group > .form-control:focus,
.wizard-modal .tab-content .tab-pane .input-group > .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  outline: none;
}

.wizard-modal .tab-content .tab-pane .input-group > .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.wizard-modal .tab-content .tab-pane textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.wizard-modal .tab-content .tab-pane .input-group > .dropdown {
  width: 100%;
}

.wizard-modal .tab-content .tab-pane .input-group > .dropdown > .btn {
  border-radius: 10px !important;
  border: 1.5px solid #d1d5db;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: #374151;
  background: #ffffff;
  font-size: 14px;
}

.wizard-modal .tab-content .tab-pane .input-group > .dropdown > .btn:hover {
  background: #f1f5f9;
}

/* Tab pane transitions */
.wizard-modal .tab-content > .tab-pane {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wizard-modal .tab-content > .tab-pane.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hidden nav tabs stays hidden */
.wizard-modal .nav.nav-tabs.visually-hidden {
  display: none !important;
}

/* --- Wizard Navigation Buttons --- */

.wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.wizard-btn-back {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}

.wizard-btn-back:hover {
  background: #e2e8f0;
  color: #334155;
}

.wizard-btn-next {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.wizard-btn-next:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.wizard-btn-create {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.wizard-btn-create:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}

.wizard-btn-close {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
}

.wizard-btn-close:hover {
  background: #f1f5f9;
  color: #475569;
}

/* --- Knowledge Base Step Styling --- */

.wizard-modal .tab-pane .kb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.wizard-modal .tab-pane .kb-divider::before,
.wizard-modal .tab-pane .kb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* --- Edit Modal Styling --- */

.edit-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.edit-modal .modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: none;
  padding: 20px 28px;
  gap: 14px;
}

.edit-modal .modal-header img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.edit-modal .modal-header .modal-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  flex: 1;
}

.edit-modal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.edit-modal .modal-header .btn-close:hover {
  opacity: 1;
}

.edit-modal .modal-body {
  padding: 0;
  background: #f8fafc;
}

.edit-modal .modal-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 28px;
  gap: 10px;
}

.edit-section {
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
}

.edit-section:last-child {
  border-bottom: none;
}

.edit-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.edit-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.edit-section-icon svg {
  width: 18px;
  height: 18px;
}

.edit-section-icon.identity-icon {
  background: rgba(59, 130, 246, 0.1);
}
.edit-section-icon.identity-icon svg { fill: #3b82f6; }

.edit-section-icon.business-icon {
  background: rgba(168, 85, 247, 0.1);
}
.edit-section-icon.business-icon svg { fill: #a855f7; }

.edit-section-icon.call-icon {
  background: rgba(249, 115, 22, 0.1);
}
.edit-section-icon.call-icon svg { fill: #f97316; }

.edit-section-icon.config-icon {
  background: rgba(16, 185, 129, 0.1);
}
.edit-section-icon.config-icon svg { fill: #10b981; }

.edit-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.edit-modal .input-group {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.edit-modal .input-group:last-child {
  margin-bottom: 0;
}

.edit-modal .input-group > .input-group-text {
  width: auto !important;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
}

.edit-modal .input-group > .form-control,
.edit-modal .input-group > .form-select {
  border-radius: 10px !important;
  border: 1.5px solid #d1d5db;
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  width: 100% !important;
}

.edit-modal .input-group > .form-control:focus,
.edit-modal .input-group > .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  outline: none;
}

.edit-modal .input-group > .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.edit-modal .modal-footer .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.edit-modal .modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.edit-modal .modal-footer .btn-light {
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
}

/* --- Edit Modal Tabbed Layout --- */

.edit-modal .modal-body {
  padding: 0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.edit-modal-tabs {
  display: flex;
  gap: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.edit-modal-tabs .edit-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 12px 12px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
  min-width: 0;
  white-space: nowrap;
}

.edit-modal-tabs .edit-tab-btn:hover {
  color: #475569;
  background: #f8fafc;
}

.edit-modal-tabs .edit-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #f0f7ff;
}

.edit-tab-btn-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-tab-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.edit-tab-btn-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.edit-tab-content {
  flex: 1;
  overflow-y: auto;
}

.edit-tab-pane {
  display: none;
}

.edit-tab-pane.active {
  display: block;
  animation: editTabFadeIn 0.25s ease;
}

@keyframes editTabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.edit-modal .edit-tab-pane .edit-section {
  border-bottom: none;
}

.edit-modal .edit-tab-pane .edit-section-header {
  display: none;
}

@media (max-width: 576px) {
  .wizard-stepper {
    padding: 16px 16px 12px;
    gap: 0;
  }
  .wizard-step-dot {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .wizard-step-label {
    font-size: 9px;
  }
  .wizard-step-connector {
    width: 16px;
  }
  .wizard-step-content {
    padding: 20px 16px;
  }
  .edit-section {
    padding: 16px;
  }
  .type-selector-grid {
    grid-template-columns: 1fr;
  }
  .edit-tab-btn-label {
    font-size: 10px;
  }
  .edit-modal-tabs .edit-tab-btn {
    padding: 10px 8px 8px;
  }
}

