/* Ptichka Admin Panel Styles */
/* Design matches mini-app: warm coffee-cream palette with gold accents */

:root {
  /* Фон и поверхности - как в mini-app */
  --c-bg: #FAF7F4;
  --c-surface: #FFFFFF;
  --c-surface-2: #F5EDE3;
  
  /* Коричневая палитра - как в mini-app */
  --c-brown-900: #2C1810;
  --c-brown-800: #3D2314;
  --c-brown-700: #5C3420;
  --c-brown-600: #8B5E3C;
  --c-brown-500: #A67C52;
  --c-brown-400: #C4956A;
  --c-brown-300: #D4AD8A;
  --c-brown-200: #E8D5C0;
  --c-brown-100: #F5EDE3;
  
  /* Текст - как в mini-app */
  --c-text: #1A1008;
  --c-text-secondary: #5C3420;
  --c-text-muted: #A67C52;
  
  /* Акценты и границы */
  --c-border: #E8D5C0;
  --c-gold: #C4956A;
  --c-gold-light: #D4AF37;
  
  /* Альтернативные имена для совместимости */
  --primary: var(--c-brown-800);
  --primary-dark: var(--c-brown-900);
  --primary-light: var(--c-brown-100);
  --background: var(--c-bg);
  --surface: var(--c-surface);
  --text-primary: var(--c-text);
  --text-secondary: var(--c-text-secondary);
  --text-muted: var(--c-text-muted);
  --border: var(--c-border);
  --accent: var(--c-gold);
  
  /* Скругления - как в mini-app */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Тени - тёплые коричневые */
  --shadow-sm: 0 2px 8px rgba(61, 35, 20, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 35, 20, 0.12);
  --shadow-lg: 0 8px 32px rgba(61, 35, 20, 0.18);
  
  /* Статусы */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #E17055;
  --info: #74B9FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Auth Page */
.auth-page {
  background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-bg) 50%, var(--c-brown-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth-card {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.auth-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-brown-800);
  margin-bottom: 8px;
}

.auth-logo p {
  color: var(--c-text-muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-secondary);
}

.form-group input {
  padding: 14px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s ease;
  background: var(--c-surface);
  color: var(--c-text);
}

.form-group input:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px var(--c-brown-100);
}

.password-input {
  position: relative;
}

.password-input input {
  width: 100%;
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--c-gold);
}

.form-error {
  color: var(--error);
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

/* Buttons - стиль как в mini-app */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-brown-800) 0%, var(--c-brown-600) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--c-brown-900) 0%, var(--c-brown-700) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-brown-700);
  border: 2px solid var(--c-border);
}

.btn-secondary:hover {
  border-color: var(--c-gold);
  color: var(--c-brown-800);
  background: var(--c-surface-2);
}

.btn-success {
  background: var(--success);
  color: white;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-loader {
  animation: spin 1s linear infinite;
}

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

.auth-hint {
  margin-top: 24px;
  text-align: center;
}

.auth-hint p {
  font-size: 13px;
  color: var(--c-text-muted);
}

.auth-hint code {
  background: var(--c-surface-2);
  color: var(--c-brown-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  border: 1px solid var(--c-border);
}

.auth-footnote {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--c-text-muted);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Dashboard Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.sidebar-logo h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-brown-800);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--c-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: var(--c-surface-2);
  color: var(--c-brown-800);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--c-brown-800) 0%, var(--c-brown-600) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--c-gold);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--c-border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--c-brown-700);
  border: 2px solid var(--c-border);
}

.user-details {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.user-role {
  font-size: 12px;
  color: var(--c-text-muted);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: var(--error);
  color: white;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px;
  max-width: calc(100% - 280px);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--c-text-muted);
  font-size: 15px;
}

/* Cards */
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

.card-body {
  padding: 24px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.gold {
  background: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
  color: white;
}

.stat-icon.blue {
  background: linear-gradient(135deg, #64B5F6 0%, #1976D2 100%);
  color: white;
}

.stat-icon.green {
  background: linear-gradient(135deg, #81C784 0%, #388E3C 100%);
  color: white;
}

.stat-icon.orange {
  background: linear-gradient(135deg, #FFB74D 0%, #F57C00 100%);
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-top: 4px;
}

.stat-change {
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--error);
}

/* Search */
.search-container {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  transition: all 0.2s ease;
  background: var(--c-surface);
  color: var(--c-text);
}

.search-input:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px var(--c-surface-2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: var(--c-surface-2);
}

.autocomplete-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--c-brown-700);
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-name {
  font-weight: 500;
  color: var(--c-text);
  font-size: 14px;
}

.autocomplete-phone {
  font-size: 13px;
  color: var(--c-text-muted);
}

.autocomplete-networks {
  display: flex;
  gap: 4px;
}

.network-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.network-badge.telegram {
  background: #0088cc;
  color: white;
}

.network-badge.max {
  background: var(--c-brown-600);
  color: white;
}

/* Selected Client Card */
.selected-client {
  background: var(--c-surface-2);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.selected-client-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--c-border);
}

.selected-client-info {
  flex: 1;
}

.selected-client-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.selected-client-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--c-text-secondary);
}

.selected-client-networks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.network-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  font-size: 13px;
  border: 1px solid var(--c-border);
}

.network-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-gold);
}

/* Form Elements */
.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--c-surface);
  color: var(--c-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px var(--c-surface-2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-muted);
  opacity: 0.6;
}

/* Segment Tags */
.segment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--c-text-secondary);
}

.segment-tag:hover {
  border-color: var(--c-gold);
  color: var(--c-brown-700);
}

.segment-tag.active {
  background: linear-gradient(135deg, var(--c-brown-800) 0%, var(--c-brown-600) 100%);
  border-color: var(--c-brown-800);
  color: white;
  box-shadow: var(--shadow-sm);
}

.segment-tag input[type="radio"] {
  display: none;
}

/* Image Upload */
.image-upload {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--c-surface);
}

.image-upload:hover {
  border-color: var(--c-gold);
  background: var(--c-surface-2);
}

.image-upload.has-image {
  border-style: solid;
  border-color: var(--c-gold);
  padding: 16px;
}

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-md);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--c-text-muted);
}

.upload-icon {
  width: 48px;
  height: 48px;
  background: var(--c-surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid var(--c-border);
}

/* Message Preview */
.preview-container {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 400px;
  border: 1px solid var(--c-border);
}

.preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.preview-bubble {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.preview-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.preview-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  white-space: pre-wrap;
}

.preview-time {
  font-size: 11px;
  color: var(--c-text-muted);
  text-align: right;
  margin-top: 8px;
}

/* Schedule Options */
.schedule-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-option {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--c-surface);
}

.schedule-option:hover {
  border-color: var(--c-gold);
  background: var(--c-surface-2);
}

.schedule-option.active {
  border-color: var(--c-gold);
  background: var(--c-surface-2);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.2);
}

.schedule-option input[type="radio"] {
  display: none;
}

.schedule-option-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.schedule-option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}

.datetime-picker {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

/* Table Styles */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.data-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--c-surface-2);
}

.data-table tbody tr:hover {
  background: var(--c-surface-2);
  cursor: pointer;
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--c-brown-700);
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}

.client-info {
  flex: 1;
}

.client-name {
  font-weight: 500;
  color: var(--c-text);
  font-size: 14px;
}

.client-id {
  font-size: 12px;
  color: var(--c-text-muted);
  font-family: monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: #E8F5E9;
  color: #2E7D32;
}

.badge-warning {
  background: #FFF3E0;
  color: #E65100;
}

.badge-info {
  background: #E3F2FD;
  color: #1565C0;
}

.badge-gray {
  background: var(--c-surface-2);
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border);
}

/* Client Detail Page */
.client-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.client-header-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--c-gold);
  box-shadow: var(--shadow-md);
}

.client-header-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

.client-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--c-text-secondary);
}

.client-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.detail-item {
  padding: 16px;
  background: var(--c-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-value {
  font-size: 15px;
  color: var(--c-text);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--c-text-muted);
  font-size: 14px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--c-brown-700);
}

.tab.active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .client-header {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 16px 20px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: fadeIn 0.3s ease;
  border: 1px solid var(--c-border);
}

.toast-text {
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.toast-spinner,
.smm-inline-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(61, 35, 20, 0.18);
  border-top-color: var(--c-brown-700);
  border-radius: 50%;
  animation: smmSpin .8s linear infinite;
}

.smm-inline-spinner {
  width: 12px;
  height: 12px;
  border-width: 2px;
  margin-right: 8px;
}

.toast.toast-loading {
  border-left: 4px solid var(--c-brown-700);
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--error);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

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

/* Development placeholder */
.dev-placeholder {
  text-align: center;
  padding: 80px 24px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--c-border);
}

.dev-placeholder h3 {
  font-size: 20px;
  color: var(--c-text-secondary);
  margin-bottom: 16px;
}

.dev-placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Bird Logo SVG styles */
.bird-logo {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.bird-logo-small {
  width: 40px;
  height: 40px;
}

.bird-logo-medium {
  width: 60px;
  height: 60px;
}

.bird-logo-large {
  width: 80px;
  height: 80px;
}
