/* Voice Notes Pro - Complete Design System v5.0 */
/* Import Urdu font for native script support */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu&display=swap');

/* ========================================
   1. CSS Variables & Theme System
   ======================================== */
:root {
  /* Primary Colors */
  --vnru-primary: #6366f1;
  --vnru-primary-light: #818cf8;
  --vnru-primary-dark: #4f46e5;
  --vnru-primary-alpha: rgba(99, 102, 241, 0.1);
  
  /* Accent Colors */
  --vnru-secondary: #8b5cf6;
  --vnru-success: #10b981;
  --vnru-danger: #ef4444;
  --vnru-warning: #f59e0b;
  --vnru-info: #06b6d4;
  
  /* Backgrounds */
  --vnru-bg-main: #ffffff;
  --vnru-bg-card: #ffffff;
  --vnru-bg-secondary: #f8f9fa;
  --vnru-bg-tertiary: #e5e7eb;
  
  /* Text */
  --vnru-text-primary: #1e293b;
  --vnru-text-secondary: #64748b;
  --vnru-text-tertiary: #94a3b8;
  --vnru-text-inverse: #ffffff;
  
  /* Borders */
  --vnru-border: #e5e7eb;
  --vnru-border-light: #f3f4f6;
  
  /* Shadows */
  --vnru-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --vnru-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --vnru-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --vnru-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  
  /* Border Radius */
  --vnru-radius-sm: 6px;
  --vnru-radius-md: 10px;
  --vnru-radius-lg: 16px;
  --vnru-radius-xl: 24px;
  --vnru-radius-full: 9999px;
  
  /* Transitions */
  --vnru-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --vnru-bg-main: #0f172a;
  --vnru-bg-card: #1e293b;
  --vnru-bg-secondary: #334155;
  --vnru-bg-tertiary: #475569;
  --vnru-text-primary: #f1f5f9;
  --vnru-text-secondary: #cbd5e1;
  --vnru-text-tertiary: #94a3b8;
  --vnru-border: #334155;
  --vnru-border-light: #475569;
}

/* ========================================
   2. Global Styles & Resets
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.vnru-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--vnru-bg-main);
  color: var(--vnru-text-primary);
  min-height: 100vh;
  padding: 0;
}

/* ========================================
   3. Header Styles
   ======================================== */
.vnru-app-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 24px !important;
  background: white !important;
  border-bottom: 1px solid var(--vnru-border) !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex-wrap: wrap;
  gap: 15px;
}

.vnru-header-title {
  margin: 0 !important;
  font-size: 24px !important;
  color: #333 !important;
}

.vnru-user-section {
  display: flex;
  align-items: center;
}

.vnru-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.vnru-welcome-text {
  color: #666;
}

.vnru-shop-info {
  color: #999;
}

.vnru-logout-btn {
  padding: 8px 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--vnru-transition);
}

.vnru-logout-btn:hover {
  background: #dc2626;
}

.vnru-login-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--vnru-transition);
}

.vnru-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   4. Notice/Alert Styles
   ======================================== */
.vnru-notice {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vnru-notice h3 {
  color: #92400e;
  margin-bottom: 10px;
  font-size: 18px;
}

.vnru-notice p {
  color: #78350f;
  margin-bottom: 0;
  font-size: 14px;
}

.vnru-notice--warning {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.vnru-ios-notice {
  margin-top: 8px;
  font-size: 13px;
  color: #b91c1c;
}

/* ========================================
   5. Recorder Card
   ======================================== */
.vnru-recorder-card {
  background: var(--vnru-bg-card);
  border-radius: var(--vnru-radius-lg);
  padding: 30px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  margin: 24px;
  border: 1px solid var(--vnru-border);
  animation: fadeInUp 0.5s ease-out;
}

.vnru-recorder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.vnru-recorder-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--vnru-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vnru-recorder-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--vnru-bg-secondary);
  border-radius: var(--vnru-radius-full);
  font-size: 13px;
  font-weight: 500;
}

.vnru-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vnru-success);
  animation: pulse 2s infinite;
}

.vnru-app.is-recording .vnru-status-dot {
  background: var(--vnru-danger);
  animation: blink 1s infinite;
}

/* Waveform Visualizer */
.vnru-waveform {
  background: #f8f9fa;
  border: 1px solid var(--vnru-border);
  border-radius: var(--vnru-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#vnru-visualizer {
  width: 100%;
  height: 80px;
  background: transparent;
  opacity: 0.9;
}

/* Recording Controls */
.vnru-recorder-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.vnru-control-btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--vnru-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--vnru-transition);
  box-shadow: var(--vnru-shadow-sm);
}

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

.vnru-record-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--vnru-shadow-md);
  background: #dc2626;
}

.vnru-record-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vnru-stop-btn {
  background: var(--vnru-bg-tertiary);
  color: var(--vnru-text-secondary);
}

.vnru-stop-btn:not(:disabled) {
  background: var(--vnru-primary);
  color: white;
}

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

.vnru-timer {
  padding: 12px 20px;
  background: var(--vnru-bg-secondary);
  border-radius: var(--vnru-radius-md);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================
   6. Transcription Section
   ======================================== */
.vnru-transcription {
  background: var(--vnru-bg-secondary);
  border-radius: var(--vnru-radius-md);
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--vnru-border-light);
}

.vnru-transcription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.vnru-transcription-header h4 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--vnru-text-primary);
}

.vnru-transcription-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Script Toggle Switch */
.vnru-script-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vnru-switch {
  position: relative;
  width: 48px;
  height: 24px;
}

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

.vnru-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.vnru-slider:before {
  position: absolute;
  content: "A";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

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

.vnru-switch input:checked + .vnru-slider:before {
  content: "ا";
  transform: translateX(24px);
}

.vnru-script-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--vnru-text-secondary);
}

.vnru-word-counter {
  background: var(--vnru-bg-card);
  padding: 6px 12px;
  border-radius: var(--vnru-radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--vnru-text-secondary);
  border: 1px solid var(--vnru-border);
}

.vnru-transcription-text {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  background: var(--vnru-bg-card);
  border: 1px solid var(--vnru-border);
  border-radius: var(--vnru-radius-md);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: var(--vnru-transition);
  font-family: 'Inter', sans-serif;
}

.vnru-transcription-text:focus {
  outline: none;
  border-color: var(--vnru-primary);
  box-shadow: 0 0 0 3px var(--vnru-primary-alpha);
}

.vnru-transcription-text[dir="rtl"] {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  font-size: 18px;
  line-height: 2;
  text-align: right;
}

.vnru-transcription-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.vnru-action-btn {
  padding: 10px 20px;
  border-radius: var(--vnru-radius-md);
  border: 1px solid var(--vnru-border);
  background: var(--vnru-bg-card);
  color: var(--vnru-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--vnru-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vnru-action-btn:hover {
  background: var(--vnru-bg-secondary);
  transform: translateY(-1px);
  box-shadow: var(--vnru-shadow-sm);
}

.vnru-btn--primary {
  background: var(--vnru-primary);
  color: white;
  border: none;
}

.vnru-btn--primary:hover {
  background: var(--vnru-primary-dark);
  box-shadow: var(--vnru-shadow-md);
}

/* ========================================
   7. Notes Section
   ======================================== */
.vnru-notes-section {
  background: var(--vnru-bg-card);
  border-radius: var(--vnru-radius-lg);
  padding: 30px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  margin: 24px;
  border: 1px solid var(--vnru-border);
}

.vnru-notes-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vnru-text-primary);
}

.vnru-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  min-height: 100px;
}

.vnru-note-card {
  background: var(--vnru-bg-secondary);
  border-radius: var(--vnru-radius-md);
  padding: 18px;
  position: relative;
  transition: var(--vnru-transition);
  cursor: pointer;
  border: 1px solid var(--vnru-border);
}

.vnru-note-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vnru-shadow-md);
  border-color: var(--vnru-primary-light);
}

.vnru-note-content {
  color: var(--vnru-text-primary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

.vnru-note-content[contenteditable="true"] {
  -webkit-line-clamp: unset;
  overflow: visible;
  padding: 10px;
  background: var(--vnru-bg-card);
  border-radius: var(--vnru-radius-sm);
  outline: 2px solid var(--vnru-primary);
}

.vnru-note-content[data-script="urdu"],
.vnru-note-content[dir="rtl"] {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
}

.vnru-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--vnru-text-tertiary);
  padding-top: 12px;
  border-top: 1px solid var(--vnru-border-light);
}

.vnru-note-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: var(--vnru-transition);
  background: var(--vnru-bg-card);
  padding: 4px;
  border-radius: var(--vnru-radius-sm);
  box-shadow: var(--vnru-shadow-sm);
}

.vnru-note-card:hover .vnru-note-actions {
  opacity: 1;
  visibility: visible;
}

.vnru-note-btn,
.vnru-note-delete,
.vnru-note-save,
.vnru-note-cancel,
.vnru-note-edit {
  width: 30px;
  height: 30px;
  border-radius: var(--vnru-radius-sm);
  border: none;
  background: var(--vnru-bg-secondary);
  color: var(--vnru-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--vnru-transition);
  font-size: 14px;
}

.vnru-note-btn:hover {
  transform: scale(1.05);
}

.vnru-note-edit:hover {
  background: var(--vnru-primary);
  color: white;
}

.vnru-note-save:hover {
  background: var(--vnru-success);
  color: white;
}

.vnru-note-cancel:hover {
  background: var(--vnru-warning);
  color: white;
}

.vnru-note-delete:hover {
  background: var(--vnru-danger);
  color: white;
}

/* Empty state */
.vnru-notes-grid:empty:after {
  content: "No notes yet. Start recording!";
  display: block;
  text-align: center;
  color: var(--vnru-text-tertiary);
  font-size: 16px;
  padding: 40px;
}

/* ========================================
   8. Modal Styles
   ======================================== */
body.vnru-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.vnru-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vnru-modal-content {
  position: relative;
  background-color: white;
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease-out;
  margin: auto;
}

.vnru-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  z-index: 1;
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vnru-modal-close:hover {
  color: #000;
  background: #f0f0f0;
}

.vnru-auth-header {
  padding: 30px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 20px 20px 0 0;
}

.vnru-auth-header h2 {
  margin: 0;
  font-size: 24px;
  color: white;
}

.vnru-auth-tabs {
  display: flex;
  background: #f8f9fa;
}

.vnru-tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: none;
  color: #6c757d;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.vnru-tab-btn.active {
  background: white;
  color: #667eea;
  font-weight: 600;
}

.vnru-auth-form {
  display: none;
  padding: 30px;
  background: white;
}

.vnru-auth-form.active {
  display: block;
  overflow-y: auto;
}

.vnru-form-group {
  margin-bottom: 20px;
}

.vnru-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
}

.vnru-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.vnru-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vnru-btn--full {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.vnru-btn--full:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ========================================
   9. Animations
   ======================================== */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ========================================
   10. Utility Classes
   ======================================== */
.vnru-text-center { text-align: center; }
.vnru-text-right { text-align: right; }
.vnru-text-left { text-align: left; }

.vnru-mt-1 { margin-top: 8px; }
.vnru-mt-2 { margin-top: 16px; }
.vnru-mt-3 { margin-top: 24px; }

.vnru-mb-1 { margin-bottom: 8px; }
.vnru-mb-2 { margin-bottom: 16px; }
.vnru-mb-3 { margin-bottom: 24px; }

.vnru-hidden { display: none !important; }
.vnru-visible { display: block !important; }

/* Loading States */
.vnru-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--vnru-border);
  border-top-color: var(--vnru-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Toast Notifications */
.vnru-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 20px;
  background: var(--vnru-text-primary);
  color: white;
  border-radius: var(--vnru-radius-md);
  box-shadow: var(--vnru-shadow-xl);
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
  max-width: 90vw;
}

.vnru-toast--success {
  background: var(--vnru-success);
}

.vnru-toast--error {
  background: var(--vnru-danger);
}

.vnru-toast--warning {
  background: var(--vnru-warning);
}

.vnru-toast--info {
  background: var(--vnru-info);
}

/* ========================================
   11. Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
  .vnru-app {
    padding: 0;
  }
  
  .vnru-app-header {
    padding: 15px !important;
  }
  
  .vnru-header-title {
    font-size: 20px !important;
    width: 100%;
    margin-bottom: 10px !important;
  }
  
  .vnru-user-section {
    width: 100%;
  }
  
  .vnru-user-info {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
  }
  
  .vnru-welcome-text {
    display: block;
    margin-bottom: 8px;
  }
  
  .vnru-shop-info {
    display: none;
  }
  
  .vnru-logout-btn,
  .vnru-login-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .vnru-notice {
    margin: 12px;
    padding: 15px;
  }
  
  .vnru-recorder-card,
  .vnru-notes-section {
    margin: 12px;
    padding: 20px;
    border-radius: var(--vnru-radius-md);
  }
  
  .vnru-recorder-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .vnru-recorder-header h3 {
    font-size: 20px;
  }
  
  .vnru-waveform {
    padding: 16px;
    height: 100px;
  }
  
  #vnru-visualizer {
    height: 60px;
  }
  
  .vnru-recorder-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .vnru-control-btn {
    width: 100%;
    justify-content: center;
  }
  
  .vnru-timer {
    width: 100%;
    justify-content: center;
  }
  
  .vnru-transcription {
    padding: 15px;
  }
  
  .vnru-transcription-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .vnru-transcription-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .vnru-transcription-actions {
    justify-content: stretch;
  }
  
  .vnru-action-btn {
    flex: 1;
  }
  
  .vnru-notes-grid {
    grid-template-columns: 1fr;
  }
  
  /* Touch-friendly sizes */
  button, .vnru-action-btn, .vnru-control-btn {
    min-height: 44px;
  }
  
  /* Modal responsive */
  .vnru-modal {
    padding: 10px;
  }
  
  .vnru-modal-content {
    max-width: 100%;
    margin: auto 0;
    border-radius: 15px;
  }
  
  .vnru-auth-header {
    padding: 25px 20px;
  }
  
  .vnru-auth-header h2 {
    font-size: 20px;
  }
  
  .vnru-auth-form {
    padding: 20px;
  }
  
  .vnru-tab-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .vnru-form-group {
    margin-bottom: 15px;
  }
  
  .vnru-input {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .vnru-header-title {
    font-size: 18px !important;
  }
  
  .vnru-user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .vnru-logout-btn,
  .vnru-login-btn {
    width: 100%;
    padding: 10px;
  }
  
  .vnru-recorder-header h3,
  .vnru-notes-section h3 {
    font-size: 18px;
  }
  
  .vnru-transcription-text {
    font-size: 14px;
    min-height: 120px;
  }
  
  .vnru-note-content {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  
  .vnru-modal-content {
    border-radius: 12px;
    max-height: 95vh;
  }
  
  .vnru-auth-header {
    padding: 20px 15px;
  }
  
  .vnru-auth-header h2 {
    font-size: 18px;
  }
  
  .vnru-auth-form {
    padding: 15px;
  }
  
  .vnru-modal-close {
    right: 15px;
    top: 15px;
    font-size: 24px;
  }
}

/* ========================================
   12. Additional Styles
   ======================================== */

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

/* Focus Styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--vnru-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .vnru-recorder-card,
  .vnru-pricing-section,
  .vnru-contact-box,
  .vnru-note-actions {
    display: none !important;
  }
  
  .vnru-notes-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .vnru-note-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* WordPress Admin Bar Adjustment */
.admin-bar .vnru-app {
  padding-top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .vnru-app {
    padding-top: 46px;
  }
  
  .vnru-auth-form.active {
    overflow-y: auto;
  }
  .vnru-app-header .vnru-user-section div {
	flex-direction: column !important;
    align-items: flex-start !important;
}
}

/* iOS Safari Fixes */
@supports (-webkit-touch-callout: none) {
  .vnru-modal {
    -webkit-overflow-scrolling: touch;
  }
  
  .vnru-modal-content {
    transform: translateZ(0);
  }
  
  /* iOS input focus fix */
  .vnru-input {
    -webkit-appearance: none;
    -webkit-border-radius: 8px;
  }
}