/* FacturePro - CSS Premium */

/* Variables CSS */
:root {
  --primary-gradient: linear-gradient(45deg, #8b5cf6, #ec4899);
  --secondary-gradient: linear-gradient(45deg, #3b82f6, #8b5cf6);
  --admin-gradient: linear-gradient(135deg, #0f172a 0%, #7c3aed 50%, #0f172a 100%);
  --client-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  --auth-gradient: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #ffffff;
  --text-secondary: #c4b5fd;
  --text-muted: #94a3b8;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-between { justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Auth Screen */
.auth-container {
  min-height: 100vh;
  background: var(--auth-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-bg-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.decoration-1 { 
  top: 2.5rem; left: 2.5rem; 
  width: 5rem; height: 5rem; 
  background: #8b5cf6; 
  animation-delay: 0s;
}
.decoration-2 { 
  top: 10rem; right: 5rem; 
  width: 8rem; height: 8rem; 
  background: #ec4899; 
  animation-delay: 1s;
}
.decoration-3 { 
  bottom: 5rem; left: 5rem; 
  width: 6rem; height: 6rem; 
  background: #3b82f6; 
  animation-delay: 2s;
}
.decoration-4 { 
  bottom: 10rem; right: 10rem; 
  width: 4rem; height: 4rem; 
  background: #a78bfa; 
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  transition: all 0.5s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-card:hover {
  background: var(--glass-hover);
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
  transform: translateY(-5px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container {
  animation: logoEntry 1s ease-out;
}

@keyframes logoEntry {
  from { opacity: 0; transform: translateY(-20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-icon {
  width: 5rem;
  height: 5rem;
  background: var(--primary-gradient);
  border-radius: 1rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-icon i {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
}

.auth-header h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-tab.active {
  background: var(--glass-bg);
  color: var(--text-primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.input-group input::placeholder {
  color: var(--text-secondary);
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.password-toggle i {
  width: 1.25rem;
  height: 1.25rem;
}

.input-group small {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #7c3aed, #db2777);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.btn-danger:hover {
  background: linear-gradient(45deg, #dc2626, #b91c1c);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.register-info {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.75rem;
  text-align: center;
}

.register-info p {
  color: #93c5fd;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.register-info i {
  width: 1rem;
  height: 1rem;
}

.password-mismatch {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}

.password-match {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3) !important;
}

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

/* Client Dashboard */
#client-dashboard {
  background: var(--client-gradient);
}

/* Admin Dashboard */
#admin-dashboard {
  background: var(--admin-gradient);
}

/* Navigation */
.navbar {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary-gradient);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo i {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.nav-title h1 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}

.nav-title p {
  font-size: 0.75rem;
  color: #93c5fd;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  background: var(--secondary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.user-info span {
  font-size: 0.875rem;
}

.nav-logout {
  color: #93c5fd;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-logout:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-logout i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Client Navigation */
.breadcrumb-container {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.breadcrumb-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item i {
  width: 1rem;
  height: 1rem;
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.service-price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-current-price {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Enhanced service items for clickability */
.service-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.service-item:hover::before {
  opacity: 1;
}

.service-content {
  position: relative;
  z-index: 1;
}

/* Click indicator for services */
.service-item:after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.service-item:hover:after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

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

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-text h3 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.2); }
.stat-icon.green { background: rgba(34, 197, 94, 0.2); }
.stat-icon.red { background: rgba(239, 68, 68, 0.2); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.2); }

.stat-icon.blue i { color: #60a5fa; }
.stat-icon.green i { color: #4ade80; }
.stat-icon.red i { color: #f87171; }
.stat-icon.purple i { color: #a78bfa; }

.stat-icon i {
  width: 1.5rem;
  height: 1.5rem;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.content-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header h2 i {
  width: 1.5rem;
  height: 1.5rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 0.25rem;
}

.service-header-info {
  flex: 1;
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.card-content {
  padding: 1.5rem;
  overflow: visible;
  height: auto;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-info h3 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.service-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.service-price {
  text-align: right;
}

.service-price .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.service-price .period {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Invoices List */
.invoices-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.5rem;
}

.invoice-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.invoice-info h3 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.invoice-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.invoice-date i {
  width: 1rem;
  height: 1rem;
}

.invoice-amount {
  text-align: right;
}

.invoice-amount .amount {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-paid {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-unpaid {
  background: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge i {
  width: 0.75rem;
  height: 0.75rem;
}

.paypal-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Admin Layout */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 16rem;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(45deg, #7c3aed, #8b5cf6);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo i {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.sidebar-title h1 {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--text-primary);
}

.sidebar-title p {
  font-size: 0.75rem;
  color: #c4b5fd;
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: none;
}

.mobile-close i {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  text-align: left;
}

.sidebar-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item.active {
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.2), rgba(139, 92, 246, 0.2));
  color: var(--text-primary);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.sidebar-nav-item i {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar-user {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.sidebar-user-avatar {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(45deg, #7c3aed, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.sidebar-user-details p {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.sidebar-user-details span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.sidebar-logout:hover {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.2);
}

.sidebar-logout i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Main Content */
.main-content {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.topbar {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.mobile-menu {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: block;
}

.mobile-menu i {
  width: 1.5rem;
  height: 1.5rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-container i {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: #a78bfa;
  z-index: 1;
}

.search-container input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  width: 16rem;
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.search-container input::placeholder {
  color: var(--text-secondary);
}

.notification-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.notification-btn:hover {
  color: var(--text-primary);
}

.notification-btn i {
  width: 1.25rem;
  height: 1.25rem;
}

/* Admin Content */
.admin-content {
  padding: 1.5rem;
}

.admin-view {
  animation: fadeIn 0.5s ease-out;
}

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--text-secondary);
}

.page-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.admin-stat-card:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
}

.admin-stat-card.green:hover { box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.2); }
.admin-stat-card.blue:hover { box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2); }
.admin-stat-card.purple:hover { box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.2); }
.admin-stat-card.red:hover { box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.2); }

.admin-stat-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-text p {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.admin-stat-text h3 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.admin-stat-card.green .admin-stat-text p { color: #86efac; }
.admin-stat-card.blue .admin-stat-text p { color: #93c5fd; }
.admin-stat-card.purple .admin-stat-text p { color: #c4b5fd; }
.admin-stat-card.red .admin-stat-text p { color: #fca5a5; }

.admin-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-card.green .admin-stat-icon { background: rgba(34, 197, 94, 0.4); }
.admin-stat-card.blue .admin-stat-icon { background: rgba(66, 165, 245, 0.4); }
.admin-stat-card.purple .admin-stat-icon { background: rgb(60 0 133 / 20%); }
.admin-stat-card.red .admin-stat-icon { background: rgb(255 61 61 / 40%); }

.admin-stat-card.green .admin-stat-icon i { color: #4ade80; }
.admin-stat-card.blue .admin-stat-icon i { color: #60a5fa; }
.admin-stat-card.purple .admin-stat-icon i { color: #a78bfa; }
.admin-stat-card.red .admin-stat-icon i { color: #f87171; }

.admin-stat-icon i {
  width: 1.5rem;
  height: 1.5rem;
}

/* Enhanced Client Cards with Delete Button */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.15);
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.client-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.client-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, #7c3aed, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: bold;
  color: white;
}

.client-info h3 {
  font-weight: bold;
  color: var(--text-primary);
}

.client-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.client-delete-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.client-delete-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  transform: scale(1.1);
}

.client-delete-btn i {
  width: 1.25rem;
  height: 1.25rem;
}

.client-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-stat {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}

.client-stat p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.client-stat h4 {
  font-weight: bold;
  color: var(--text-primary);
}

.client-invoices-count {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Service Cards for Client Detail View */
.client-service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-service-card:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.2);
}

.service-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.service-stat-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.service-stat-item .label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-stat-item .value {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: bold;
}

.service-stat-item.unpaid .value {
  color: #f87171;
}

.service-stat-item.paid .value {
  color: #4ade80;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--glass-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.2);
}

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-details h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-details p {
  color: var(--text-secondary);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: #a78bfa;
}

.service-pricing {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.service-pricing .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.service-pricing .period {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.service-status {
  text-align: center;
}

.status-active {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-active i {
  width: 0.75rem;
  height: 0.75rem;
}

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

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

.invoices-table th {
  text-align: left;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.invoices-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.invoices-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

.invoices-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.005);
}

.table-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-client-avatar {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(45deg, #7c3aed, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  color: white;
}

.table-client-info .name {
  font-weight: 500;
  color: var(--text-primary);
}

.table-client-info .email {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.table-amount {
  font-weight: bold;
  font-size: 1.125rem;
}

.table-paypal {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Enhanced Invoice Table */
.invoices-table th:nth-child(4) { min-width: 100px; }
.invoices-table th:nth-child(8) { min-width: 120px; text-align: center; }

.invoice-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-edit, .btn-delete {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-edit {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Filter Select */
.filter-select {
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.filter-select option {
  background: #1e293b;
  color: var(--text-primary);
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon.paid { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.activity-icon.unpaid { background: rgba(239, 68, 68, 0.4); color: #f87171; }

.activity-icon i {
  width: 1.25rem;
  height: 1.25rem;
}

.activity-content {
  flex: 1;
}

.activity-content .title {
  font-weight: 500;
  color: var(--text-primary);
}

.activity-content .details {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  z-index: 1;
  animation: modalContentEnter 0.3s ease-out;
}

@keyframes modalContentEnter {
  from { opacity: 0; transform: scale(0.95) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}

.modal-close {
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-close i {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  flex: 1;
}

/* Modal Enhancements */
.modal-content.danger {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-content.danger .modal-header {
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.modal-content.danger .modal-footer {
  border-top-color: rgba(239, 68, 68, 0.2);
}

/* Input date styling */
input[type="date"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: linear-gradient(45deg, #8b5cf6, #ec4899);
  border-radius: 0.25rem;
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.1);
}

/* Status select avec feedback visuel automatique */
#edit-invoice-status:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  border-style: dashed;
}

#edit-invoice-status:disabled:focus {
  box-shadow: none;
  border-color: var(--glass-border);
}

/* Amélioration du modal d'édition de facture */
#edit-invoice-modal .modal-content {
  max-width: 32rem;
}

/* Style pour les petites notes explicatives */
.input-group small {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Animation pour les changements de statut automatiques */
@keyframes statusChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.status-transition {
  animation: statusChange 0.3s ease-out;
}

/* Section d'information du client dans le modal */
.assign-service-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 0.75rem;
}

.client-info-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar-display {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, #7c3aed, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-avatar-display i {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.client-details-display h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.client-details-display p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Checkbox pour l'association */
.assign-checkbox {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  appearance: none;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.assign-checkbox:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.assign-checkbox:hover {
  border-color: #8b5cf6;
  background: var(--glass-hover);
}

.assign-checkbox:checked {
  background: var(--primary-gradient);
  border-color: #8b5cf6;
}

.assign-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
}

/* Animation pour la checkbox d'association */
@keyframes assignCheckboxPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.assign-checkbox:checked {
  animation: assignCheckboxPop 0.2s ease-out;
}

/* Amélioration du bouton d'association */
.btn-primary i {
  width: 1rem;
  height: 1rem;
}

/* Modal plus large pour l'association de service */
#assign-service-modal .modal-content {
  max-width: 32rem;
}

/* État désactivé pour le select */
#assign-service-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

#assign-service-select:disabled:hover {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

/* Indicateur d'état du select */
.input-group select {
  position: relative;
}

.input-group select option:disabled {
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
}

/* Style pour le message d'aucun service disponible */
.input-group select option:only-child {
  font-style: italic;
  color: var(--text-muted);
}

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(139, 92, 246, 0.3);
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: toastSlideIn 0.3s ease-out;
  max-width: 300px;
  min-width: 250px;
}

.toast.success { border-left: 4px solid #4ade80; }
.toast.error { border-left: 4px solid #f87171; }
.toast.warning { border-left: 4px solid #fbbf24; }
.toast.info { border-left: 4px solid #60a5fa; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Textarea styling */
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

textarea::placeholder {
  color: var(--text-secondary);
}

/* Click Indicators */
.client-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
}

.client-card:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

.client-service-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
}

.client-service-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Stats Cards Hover Effects */
.stat-icon {
  transition: transform 0.3s ease; /* Ajout de la transition */
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.admin-stat-icon {
  transition: transform 0.3s ease; /* Ajout de la transition */
}

.admin-stat-card:hover .admin-stat-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Connection Status Indicator */
.connection-status {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  z-index: 60;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.online { background: #4ade80; }
.status-dot.offline { background: #f87171; }

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

/* Back Button Styling */
.btn-back {
  background: var(--glass-bg);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-back:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.btn-back i {
  width: 1rem;
  height: 1rem;
}

/* Responsive Design */
@media (min-width: 1024px) {
  .mobile-close { display: none; }
  .mobile-menu { display: none; }
  .sidebar { transform: translateX(0); }
  .main-content { margin-left: 16rem; }
}

@media (max-width: 1023px) {
  .mobile-close { display: block; }
  .user-info { display: none; }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topbar-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-container input {
    width: 12rem;
  }

  /* Modal d'association responsive */
  #assign-service-modal .modal-content {
    max-width: 90vw;
  }
  
  .client-info-display {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 2rem;
  }
  
  .stats-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 1rem;
  }
  
  .dashboard-content,
  .admin-content {
    padding: 1rem;
  }
  
  .search-container input {
    width: 10rem;
  }
  
  .invoices-table {
    font-size: 0.875rem;
  }
  
  .invoices-table th,
  .invoices-table td {
    padding: 1rem 0.5rem;
  }
  
  .client-card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .client-header-info {
    width: 100%;
  }
  
  .service-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .client-card::after,
  .client-service-card::after {
    display: none;
  }

  /* Responsive pour modal d'association */
  .assign-service-info {
    padding: 0.75rem;
  }
  
  .client-info-display {
    gap: 0.5rem;
  }
  
  .client-avatar-display {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .client-details-display h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .auth-header h1 {
    font-size: 2rem;
  }
  
  .logo-icon {
    width: 4rem;
    height: 4rem;
  }
  
  .stat-text h3 {
    font-size: 1.5rem;
  }
  
  .admin-stat-text h3 {
    font-size: 1.5rem;
  }
  
  .dashboard-content,
  .admin-content {
    padding: 0.75rem;
  }
  
  .breadcrumb-item span {
    display: none;
  }
  
  .breadcrumb-item {
    padding: 0.5rem;
  }
  
  .service-price .price {
    font-size: 1.5rem;
  }
  
  .modal-content {
    margin: 0.5rem;
  }
  
  .toast-container {
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }

  /* Ultra responsive pour modal d'association */
  .modal-footer {
    flex-direction: column;
  }
  
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    flex: none;
  }
}

/* Dashboard Content */
.dashboard-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Print Styles */
@media print {
  .navbar, .sidebar, .topbar, .modal, .toast-container {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .dashboard {
    background: white !important;
  }
  
  .content-card, .stat-card, .admin-stat-card {
    background: white !important;
    border: 1px solid #ccc !important;
    color: black !important;
  }
  
  .auth-screen {
    display: none !important;
  }
}

/* Checkbox "Se souvenir de moi" */
.checkbox-label {
  width: 0px;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0 !important;
}

.checkbox-label:hover {
  color: var(--text-primary);
}

.remember-checkbox {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  appearance: none;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.remember-checkbox:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.remember-checkbox:hover {
  border-color: #8b5cf6;
  background: var(--glass-hover);
}

.remember-checkbox:checked {
  background: var(--primary-gradient);
  border-color: #8b5cf6;
}

.remember-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1;
}

.checkmark {
  display: none; /* Pas utilisé avec appearance: none */
}

/* Animation pour la checkbox */
@keyframes checkboxPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.remember-checkbox:checked {
  animation: checkboxPop 0.2s ease-out;
}

/* Session Status Indicator - Enhanced */
.session-info {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  z-index: 60;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 250px;
}

.session-info.show {
  opacity: 1;
  transform: translateX(0);
}

.session-info .session-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.session-info .session-expires {
  color: var(--text-secondary);
  font-size: 0.625rem;
}

.session-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: sessionPulse 2s infinite;
}

@keyframes sessionPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Logout All Button Enhancement */
.nav-logout, .sidebar-logout {
  position: relative;
  overflow: hidden;
}

.nav-logout::after, .sidebar-logout::after {
  content: 'Ctrl+Clic pour déconnecter toutes les sessions';
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.nav-logout:hover::after, .sidebar-logout:hover::after {
  opacity: 1;
}

/* Responsive pour checkbox */
@media (max-width: 640px) {
  .checkbox-label {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .remember-checkbox {
    width: 1rem;
    height: 1rem;
  }
  
  .session-info {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===========================================
   STYLES PAYPAL - À AJOUTER À LA FIN DE VOTRE CSS
   =========================================== */

/* Styles PayPal Admin */
.paypal-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paypal-config-grid .input-group:nth-child(4) {
    grid-column: 1 / -1;
}

.paypal-status {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.paypal-status.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.paypal-status.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #60a5fa;
    animation: pulse 2s infinite;
}

.paypal-status.success .status-dot {
    background: #4ade80;
}

.paypal-status.error .status-dot {
    background: #f87171;
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
}

.status-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.webhook-info {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.webhook-url-container {
    display: flex;
    gap: 0.5rem;
}

.webhook-url-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    cursor: text;
}

.paypal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.paypal-stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.paypal-stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
}

.paypal-stat-card .stat-icon.orange {
    background: rgba(251, 191, 36, 0.2);
}

.paypal-stat-card .stat-icon.orange i {
    color: #fbbf24;
}

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

.paypal-transactions-table th,
.paypal-transactions-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.paypal-transactions-table th {
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.paypal-transactions-table tbody tr {
    transition: all 0.2s ease;
}

.paypal-transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.paypal-transaction-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: var(--text-secondary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paypal-transaction-id:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    transform: scale(1.05);
}

.transaction-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-retry {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.btn-retry:hover {
    background: rgba(251, 191, 36, 0.3);
    color: #f59e0b;
}

.btn-cancel {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Styles PayPal Client - Boutons de paiement */
.paypal-payment-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paypal-payment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-paypal {
    background: linear-gradient(45deg, #0070ba, #003087);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 112, 186, 0.3);
}

.btn-paypal:hover {
    background: linear-gradient(45deg, #005ea6, #002a78);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 112, 186, 0.4);
}

.btn-paypal:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-paypal i {
    width: 1rem;
    height: 1rem;
}

.paypal-secure-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.paypal-secure-info i {
    width: 0.875rem;
    height: 0.875rem;
    color: #4ade80;
}

/* Loading states PayPal */
.paypal-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.paypal-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.1);
    border-radius: inherit;
    animation: paypalPulse 1.5s ease-in-out infinite;
}

@keyframes paypalPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Responsive PayPal */
@media (max-width: 768px) {
    .paypal-config-grid {
        grid-template-columns: 1fr;
    }
    
    .paypal-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .webhook-url-container {
        flex-direction: column;
    }
    
    .paypal-payment-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-paypal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .paypal-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===========================================
   STYLES SEPA - À AJOUTER À LA FIN DE VOTRE CSS
   =========================================== */

/* Configuration SEPA */
.sepa-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sepa-config-grid .input-group:nth-child(3),
.sepa-config-grid .input-group:nth-child(4) {
    grid-column: 1 / -1;
}

.sepa-preview {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.sepa-preview h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sepa-info-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sepa-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sepa-field label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sepa-field span {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Statistiques SEPA */
.sepa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sepa-stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.sepa-stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Tableau de validation SEPA */
.sepa-validation-table {
    width: 100%;
    border-collapse: collapse;
}

.sepa-validation-table th,
.sepa-validation-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sepa-validation-table th {
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.sepa-validation-table tbody tr {
    transition: all 0.2s ease;
}

.sepa-validation-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sepa-reference {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sepa-reference:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    transform: scale(1.05);
}

.btn-validate-sepa {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-validate-sepa:hover {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
    transform: translateY(-2px);
}

/* Section paiement SEPA pour les clients */
.sepa-payment-section {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.sepa-payment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sepa-payment-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

.sepa-payment-header i {
    width: 1.5rem;
    height: 1.5rem;
    color: #4ade80;
}

.sepa-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sepa-info-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.sepa-info-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.sepa-info-item .value {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.sepa-reference-highlight {
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.sepa-reference-highlight strong {
    color: #a78bfa;
    font-size: 1.125rem;
    font-family: 'Courier New', monospace;
}

.sepa-advantages {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
}

.sepa-advantages h5 {
    color: #4ade80;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sepa-advantages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sepa-advantages li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sepa-advantages li::before {
    content: '✓';
    color: #4ade80;
    font-weight: bold;
}

.payment-method-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.payment-method-option {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.payment-method-option.active {
    background: var(--glass-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-method-option.recommended::after {
    content: ' (GRATUIT)';
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

/* Formatage automatique IBAN */
#sepa-iban {
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

/* Responsive SEPA */
@media (max-width: 768px) {
    .sepa-config-grid {
        grid-template-columns: 1fr;
    }
    
    .sepa-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sepa-info-display,
    .sepa-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sepa-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method-switch {
        flex-direction: column;
    }
}