/* Emails.html - Email Marketing Styles - MAKERHUB Design */

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

:root {
  --primary: #2AABEE;
  --primary-dark: #0088CC;
  --primary-light: rgba(42, 171, 238, 0.15);
  
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f5f6f7;
  
  --border-light: #e9ecef;
  --border-medium: #dee2e6;
  
  --sidebar-bg: #18181b;
  --sidebar-hover: #2a2a2e;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-2xl: 48px;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --purple: #8b5cf6;
  
  --success-bg: #d1fae5;
  --warning-bg: #fef3c7;
  --danger-bg: #fee2e2;
  --info-bg: #dbeafe;
  --purple-bg: #ede9fe;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
}

#sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  z-index: 100;
}

/* SIDEBAR */




.logo-icon {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.microphone-container {
  position: relative;
  width: 20px;
  height: 24px;
}

.microphone-body {
  width: 8px;
  height: 14px;
  background: #ffffff;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
}

.microphone-body::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 1px;
  right: 1px;
  height: 1px;
  background: #2a2a2a;
}

.microphone-body::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 1px;
  right: 1px;
  height: 1px;
  background: #2a2a2a;
}

.microphone-stand {
  width: 1.5px;
  height: 6px;
  background: #ffffff;
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}

.microphone-arc {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-top: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
}

.side-elements {
  position: absolute;
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.side-elements.left { left: -6px; }
.side-elements.right { right: -6px; }

.side-dots {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.side-dots.left { left: -12px; }
.side-dots.right { right: -12px; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: 'Inter', sans-serif;
}

.logo-text .brand { color: #fff; }
.logo-text .lynk { color: var(--primary); }













/* MAIN CONTENT - CORRIGÉ */
.main-content {
  margin-left: 240px;
  padding: 0;
  flex: 1;
  min-height: 100vh;
  background: var(--bg-primary);
}

.content-wrapper {
  padding: var(--spacing-2xl);
  max-width: none;
}

.page-header {
  margin-bottom: var(--spacing-2xl);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.page-description {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* STATS SECTION */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

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

/* FILTER SECTION */
.filter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.filter-dropdown {
  width: 100%;
  max-width: 300px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 171, 238, 0.1);
  transform: translateY(-1px);
}

.filter-dropdown:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* TABLE CONTAINER */
.table-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--sidebar-bg);
  color: white;
}

.table-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.selected-count {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.2);
  border: 1px solid rgba(42, 171, 238, 0.3);
}

.send-email-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-primary);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
  position: relative;
  overflow: hidden;
}

.send-email-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.send-email-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0088CC 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}

.send-email-btn:hover:not(:disabled)::before {
  left: 100%;
}

.send-email-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

.send-email-btn:disabled {
  background: linear-gradient(135deg, var(--border-medium) 0%, #c0c4c7 100%);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.send-email-btn:disabled::before {
  display: none;
}

.send-email-btn i {
  font-size: 12px;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--bg-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 5;
}

td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

tr:hover {
  background: var(--bg-secondary);
}

.checkbox-cell {
  width: 50px;
  text-align: center;
}

.checkbox-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.select-all-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* SOURCE BADGES */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: white;
}

.source-onetime { 
  background: var(--info);
}

.source-telegram { 
  background: #0088cc;
}

.source-live { 
  background: var(--success);
}

.source-lead { 
  background: var(--danger);
}

.source-booking { 
  background: var(--purple);
}

.source-badge i {
  font-size: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .content-wrapper {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .stats-section {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .table-header {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: stretch;
  }
  
  .header-actions {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  
  
  
  
  .main-content {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: var(--spacing-md);
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .filter-dropdown {
    max-width: 100%;
  }
  
  .table-wrapper {
    max-height: 400px;
  }
  
  th, td {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 12px;
  }
}