/**
 * Admin AI CRM Update Styles
 * The Journeyman - Admin Dashboard
 * 
 * Styles for the AI-powered voice notes feature that updates CRM records
 */

/* ========================================
   MODAL STYLES
   ======================================== */

.ai-crm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.ai-crm-modal.open {
  opacity: 1;
  visibility: visible;
}

.ai-crm-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 106, 26, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.ai-crm-modal.open .ai-crm-content {
  transform: scale(1) translateY(0);
}

/* Header */
.ai-crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-crm-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.ai-crm-title i {
  color: #FF6A1A;
  font-size: 24px;
}

.ai-crm-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ai-crm-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   STEP STYLES
   ======================================== */

.ai-crm-step {
  display: none;
  padding: 24px;
}

.ai-crm-step.active {
  display: block;
}

.ai-crm-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-crm-step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FF6A1A 0%, #ff8c4a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.ai-crm-step-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.ai-crm-step-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ========================================
   RECORDER STYLES
   ======================================== */

.ai-crm-recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}

.ai-crm-recorder.hidden {
  display: none;
}

.ai-crm-record-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #FF6A1A 0%, #ff8c4a 100%);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(255, 106, 26, 0.3);
}

.ai-crm-record-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 106, 26, 0.4);
}

.ai-crm-record-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  animation: pulse-recording 1.5s ease infinite;
}

@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 8px 50px rgba(239, 68, 68, 0.5); }
}

.ai-crm-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.ai-crm-timer {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #FF6A1A;
}

/* Waveform Animation */
.ai-crm-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  opacity: 0.3;
}

.ai-crm-waveform.active {
  opacity: 1;
}

.ai-crm-wave-bar {
  width: 4px;
  height: 20px;
  background: #FF6A1A;
  border-radius: 2px;
}

.ai-crm-waveform.active .ai-crm-wave-bar {
  animation: waveform 0.5s ease infinite;
}

.ai-crm-waveform.active .ai-crm-wave-bar:nth-child(1) { animation-delay: 0s; }
.ai-crm-waveform.active .ai-crm-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.ai-crm-waveform.active .ai-crm-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.ai-crm-waveform.active .ai-crm-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.ai-crm-waveform.active .ai-crm-wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveform {
  0%, 100% { height: 10px; }
  50% { height: 40px; }
}

/* ========================================
   PREVIEW STYLES
   ======================================== */

.ai-crm-preview {
  display: none;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-top: 16px;
}

.ai-crm-preview.active {
  display: block;
}

.ai-crm-preview-player {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ai-crm-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 106, 26, 0.2);
  color: #FF6A1A;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-crm-play-btn:hover {
  background: rgba(255, 106, 26, 0.3);
}

.ai-crm-playback-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.ai-crm-playback-bar {
  width: 3px;
  height: 16px;
  background: rgba(255, 106, 26, 0.4);
  border-radius: 2px;
}

.ai-crm-playback-wave.playing .ai-crm-playback-bar {
  animation: playback-wave 0.4s ease infinite;
}

.ai-crm-playback-wave.playing .ai-crm-playback-bar:nth-child(odd) {
  animation-delay: 0.1s;
}

@keyframes playback-wave {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 24px; opacity: 1; }
}

.ai-crm-duration {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  min-width: 40px;
}

.ai-crm-preview-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.ai-crm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  flex: 1;
}

.ai-crm-btn.primary {
  background: linear-gradient(135deg, #FF6A1A 0%, #ff8c4a 100%);
  color: #fff;
}

.ai-crm-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 106, 26, 0.3);
}

.ai-crm-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.ai-crm-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ai-crm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   PROCESSING STYLES
   ======================================== */

.ai-crm-processing {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.ai-crm-processing-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.ai-crm-processing-step i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.ai-crm-processing-step.active {
  background: rgba(255, 106, 26, 0.1);
  color: #FF6A1A;
}

.ai-crm-processing-step.done {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

/* ========================================
   REVIEW STYLES
   ======================================== */

.ai-crm-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.ai-crm-transcription {
  margin-bottom: 20px;
}

.ai-crm-transcription-text {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  font-style: italic;
}

/* Company Selection */
.ai-crm-company-select {
  margin-bottom: 20px;
}

.ai-crm-company-match {
  margin-bottom: 8px;
}

.ai-crm-matched-company {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
}

.ai-crm-matched-icon {
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
}

.ai-crm-matched-info {
  flex: 1;
}

.ai-crm-matched-name {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.ai-crm-matched-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ai-crm-matched-check {
  color: #22c55e;
  font-size: 20px;
}

.ai-crm-no-match {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #f87171;
  font-size: 14px;
}

.ai-crm-change-company {
  background: none;
  border: none;
  color: #FF6A1A;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
}

.ai-crm-change-company:hover {
  color: #ff8c4a;
}

/* Company Search */
.ai-crm-company-search {
  margin-bottom: 16px;
}

.ai-crm-company-search input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.ai-crm-company-search input:focus {
  outline: none;
  border-color: #FF6A1A;
}

.ai-crm-company-results {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
}

.ai-crm-company-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-crm-company-result:hover {
  background: rgba(255, 106, 26, 0.1);
}

.ai-crm-company-name {
  color: #fff;
  font-weight: 500;
}

.ai-crm-company-phase {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-crm-no-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 16px;
  font-size: 14px;
}

/* Extracted Data */
.ai-crm-extracted {
  margin-bottom: 20px;
}

.ai-crm-extracted-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-crm-extracted-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
}

.ai-crm-extracted-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 106, 26, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6A1A;
  font-size: 14px;
}

.ai-crm-extracted-content {
  flex: 1;
}

.ai-crm-extracted-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ai-crm-extracted-value {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.ai-crm-no-data {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  padding: 16px;
}

/* Toggle Switch */
.ai-crm-extracted-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.ai-crm-extracted-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ai-crm-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  border-radius: 22px;
}

.ai-crm-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.ai-crm-extracted-toggle input:checked + .ai-crm-toggle-slider {
  background: #22c55e;
}

.ai-crm-extracted-toggle input:checked + .ai-crm-toggle-slider:before {
  transform: translateX(18px);
}

/* Note */
.ai-crm-note {
  margin-bottom: 24px;
}

.ai-crm-note textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  resize: vertical;
  min-height: 80px;
}

.ai-crm-note textarea:focus {
  outline: none;
  border-color: #FF6A1A;
}

.ai-crm-review-actions {
  display: flex;
  gap: 12px;
}

/* ========================================
   SUCCESS STYLES
   ======================================== */

.ai-crm-success {
  text-align: center;
  padding: 32px 0;
}

.ai-crm-success-icon {
  font-size: 64px;
  color: #22c55e;
  margin-bottom: 16px;
}

.ai-crm-success h4 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px 0;
}

.ai-crm-success-company {
  font-size: 18px;
  font-weight: 600;
  color: #FF6A1A;
  margin: 0 0 4px 0;
}

.ai-crm-success-summary {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0 0 24px 0;
}

.ai-crm-success .ai-crm-btn {
  display: inline-flex;
  flex: none;
  margin: 0 6px;
}

/* ========================================
   UPDATES LOG (Home Page Widget)
   ======================================== */

.ai-crm-updates-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.ai-crm-updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-crm-updates-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.ai-crm-updates-header h3 i {
  color: #FF6A1A;
}

#ai-crm-updates-log {
  max-height: 300px;
  overflow-y: auto;
}

.ai-crm-log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-crm-log-item:hover {
  background: rgba(255, 106, 26, 0.05);
}

.ai-crm-log-item:last-child {
  border-bottom: none;
}

.ai-crm-log-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  flex-shrink: 0;
}

.ai-crm-log-content {
  flex: 1;
  min-width: 0;
}

.ai-crm-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ai-crm-log-company {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-crm-log-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.ai-crm-log-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-crm-log-tag {
  font-size: 11px;
  background: rgba(255, 106, 26, 0.15);
  color: #FF6A1A;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.ai-crm-log-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-crm-log-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.ai-crm-log-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.1);
  border: none;
  color: #FF6A1A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-crm-log-play:hover {
  background: rgba(255, 106, 26, 0.2);
  transform: scale(1.1);
}

/* AI CRM Log Edit/Delete Actions */
.ai-crm-log-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ai-crm-log-item:hover .ai-crm-log-actions {
  opacity: 1;
}

.ai-crm-log-edit,
.ai-crm-log-delete {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ai-crm-log-edit:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.ai-crm-log-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.ai-crm-log-edit i,
.ai-crm-log-delete i {
  font-size: 12px;
}

.ai-crm-log-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.ai-crm-log-empty i {
  font-size: 32px;
  color: rgba(168, 85, 247, 0.3);
}

.ai-crm-log-empty span {
  font-size: 14px;
  text-align: center;
}

/* ========================================
   AI EDIT MODAL (for edit/delete functionality)
   ======================================== */

.ai-edit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-edit-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-edit-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-edit-modal .modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-edit-modal .modal-header h3 i {
  color: #FF6A1A;
}

.ai-edit-modal .modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ai-edit-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ai-edit-modal .modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.ai-edit-modal .form-group {
  margin-bottom: 16px;
}

.ai-edit-modal .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-edit-modal .form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-edit-modal .form-control:focus {
  outline: none;
  border-color: #FF6A1A;
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15);
}

.ai-edit-modal textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.ai-edit-modal select.form-control {
  cursor: pointer;
}

.ai-edit-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-edit-modal .btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.ai-edit-modal .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.ai-edit-modal .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ai-edit-modal .btn-primary {
  background: #FF6A1A;
  color: white;
}

.ai-edit-modal .btn-primary:hover {
  background: #e55a10;
}

.ai-edit-modal .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
  .ai-crm-modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .ai-edit-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .ai-edit-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .ai-crm-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
  }

  .ai-crm-modal.open .ai-crm-content {
    transform: scale(1) translateY(0);
  }

  .ai-crm-record-btn {
    width: 90px;
    height: 90px;
    font-size: 32px;
  }

  .ai-crm-preview-actions,
  .ai-crm-review-actions {
    flex-direction: column;
  }

  .ai-crm-success .ai-crm-btn {
    display: flex;
    width: 100%;
    margin: 6px 0;
  }
}
