/**
 * Nightout Partner Dashboard - Main Styles
 * Version: 1.0.3 - BARRE DE BIENVENUE SIMPLE
 */

/* ===========================
   GLOBAL STYLES
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.page-template-partner-dashboard {
  background: #000 !important;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Masquer le header/footer du thème WordPress */
body.nightout-dashboard-page .site-header,
body.nightout-dashboard-page header:not(.dashboard-welcome-bar),
body.nightout-dashboard-page footer,
body.nightout-dashboard-page .site-footer,
body.nightout-dashboard-page #masthead,
body.nightout-dashboard-page #colophon {
  display: none !important;
}

/* ===========================
   BARRE DE BIENVENUE SIMPLE
   =========================== */

.dashboard-welcome-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 2px solid #D7A184;
  padding: 24px 40px;
  margin-bottom: 32px;
}

.welcome-bar-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-bar-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.welcome-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-premium-mini {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, #D7A184 0%, #C8917A 100%);
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-premium-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 161, 132, 0.4);
}

.badge-premium {
  padding: 10px 20px;
  background: rgba(215, 161, 132, 0.2);
  color: #D7A184;
  border: 1px solid #D7A184;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-logout {
  padding: 10px 20px;
  background: #1a1a1a;
  color: #999;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: #D7A184;
  border-color: #D7A184;
  background: rgba(215, 161, 132, 0.1);
}

/* ===========================
   MAIN CONTAINER
   =========================== */

.nightout-partner-dashboard {
  background: #000;
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px;
}

/* ===========================
   NAVIGATION TABS
   =========================== */

.dashboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  background: #1a1a1a;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #333;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #0d0d0d;
  color: #fff;
}

.tab-btn.active {
  background: #D7A184;
  color: #000;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   STATS GRID
   =========================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  border-color: #444;
}

.stat-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.stat-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.stat-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 13px;
  font-weight: 600;
}

.stat-change.positive {
  color: #10B981;
}

.stat-change.neutral {
  color: #999;
}

/* ===========================
   CHART SECTION
   =========================== */

.chart-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.chart-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
}

.chart-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.period-selector {
  display: flex;
  gap: 8px;
}

.period-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover:not(:disabled),
.period-btn.active {
  background: #D7A184;
  color: #000;
  border-color: #D7A184;
}

.period-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  max-height: 300px;
}

.chart-wrapper canvas {
  max-width: 100% !important;
  max-height: 300px !important;
}

/* ===========================
   TABLES
   =========================== */

.table-section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.table-container {
  overflow-x: auto;
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #0d0d0d;
}

th {
  padding: 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #333;
}

td {
  padding: 16px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
  color: #fff;
}

tr:hover {
  background: rgba(215, 161, 132, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #D7A184;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #000;
}

.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-neutral {
  background: rgba(156, 163, 175, 0.2);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.badge-recurring {
  background: rgba(215, 161, 132, 0.2);
  color: #D7A184;
  border: 1px solid rgba(215, 161, 132, 0.3);
}

.badge-new {
  background: rgba(59, 130, 246, 0.2);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ===========================
   FORMS
   =========================== */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #D7A184;
  box-shadow: 0 0 0 3px rgba(215, 161, 132, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #D7A184 0%, #C8917A 100%);
  color: #000;
  box-shadow: 0 4px 12px rgba(215, 161, 132, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 161, 132, 0.4);
}

.btn-secondary {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: #2a2a2a;
  border-color: #444;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===========================
   PREMIUM LOCKED OVERLAYS
   =========================== */

.premium-required-overlay {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 2px dashed #333;
  border-radius: 16px;
  padding: 60px 40px;
}

.premium-message {
  text-align: center;
  max-width: 500px;
}

.premium-message h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.premium-message p {
  font-size: 16px;
  color: #999;
  margin-bottom: 24px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .dashboard-container {
    padding: 20px;
  }
  
  .dashboard-welcome-bar {
    padding: 20px;
  }
  
  .welcome-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .welcome-bar-title {
    font-size: 22px;
  }
  
  .welcome-bar-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .tab-btn {
    white-space: nowrap;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   LOADING STATES
   =========================== */

.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #333;
  border-top-color: #D7A184;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ===========================
   SELECTION
   =========================== */

::selection {
  background: rgba(215, 161, 132, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(215, 161, 132, 0.3);
  color: #fff;
}

/* ===========================
   PREMIUM CTA & FEATURES
   =========================== */

.premium-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #D7A184;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 48px 0;
}

.premium-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.premium-cta p {
  font-size: 18px;
  color: #999;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #D7A184 0%, #C8917A 100%);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(215, 161, 132, 0.4);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(215, 161, 132, 0.5);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.feature-card.locked {
  opacity: 0.7;
}

.lock-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  opacity: 0.5;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.welcome-section {
  margin-bottom: 48px;
}

.welcome-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 18px;
  color: #999;
  margin-bottom: 16px;
}

.plan-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(215, 161, 132, 0.2);
  color: #D7A184;
  border: 1px solid #D7A184;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}