/* === Variables CSS === */
:root {
  /* Voxelio Palette */
  --primary-light: #42A5F5;
  --primary-color: #1976D2;
  --primary-dark: #1565C0;
  
  --secondary-color: #1565C0; /* Using dark blue as secondary for now, or maybe a complementary */
  --secondary-dark: #0D47A1;

  --background: #ffffff;
  --surface: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  
  --border: #e2e8f0;
  
  --error: #ef4444;
  --warning: #f59e0b;
  
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Vibrant', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Navigation === */
.navbar {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links .btn-primary {
  color: #000000;
  padding: 0.5rem 1rem;
}

.nav-links .btn-primary:hover {
  color: white;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(64, 130, 109, 0.1);
}

/* === Buttons === */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--secondary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

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

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* === Social Buttons === */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-primary);
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-google:hover {
  background: #f8f9fa;
}

.btn-facebook {
  background: #1877F2;
  color: white;
  border-color: #1877F2;
}

.btn-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

/* === Separator === */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.separator span {
  padding: 0 1rem;
}

/* === Container et Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === Cards === */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.card-body {
  color: var(--text-secondary);
}

/* === Forms === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === Hero Banner with Carousel === */
.hero-banner {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  text-align: center;
  padding: 2rem;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: scroll 20s linear infinite;
}

.carousel-slide {
  flex: 0 0 16.666%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === Dashboard === */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 80px);
}

.sidebar {
  background: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--primary-color);
  color: white;
}

.dashboard-content {
  padding: 2rem;
}

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

.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: var(--secondary-dark);
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* === Table === */
.table {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.table th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-primary);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: var(--background);
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

/* Modal Overlay - Used by dashboard modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

/* === Messages === */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius);
}

.message {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.message.sent {
  flex-direction: row-reverse;
  background: var(--primary-color);
  color: white;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.message-sender {
  font-weight: 600;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

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

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

/* === Alerts === */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: var(--secondary-dark);
  border-left: 4px solid var(--secondary-color);
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--error);
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 4px solid var(--primary-color);
}

/* === Upload Area === */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

/* === Footer === */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: white;
}

/* === Responsive === */
@media (max-width: 768px) {
  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .hero-banner {
    height: 400px;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .nav-links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero-banner {
    padding: 3rem 1rem;
    height: 350px;
  }

  .banner-title {
    font-size: 1.5rem;
  }

  .banner-subtitle {
    font-size: 0.875rem;
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

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

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden {
  display: none;
}

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

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

.text-success {
  color: var(--secondary-color);
}

.text-error {
  color: var(--error);
}

 / *   = = =   N e w   U t i l i t i e s   f o r   V o x e l i o   D e s i g n   = = =   * / 
 
 . b g - b a c k g r o u n d - 8 0   { 
     b a c k g r o u n d - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 8 ) ; 
 } 
 
 . b a c k d r o p - b l u r - m d   { 
     b a c k d r o p - f i l t e r :   b l u r ( 1 2 p x ) ; 
     - w e b k i t - b a c k d r o p - f i l t e r :   b l u r ( 1 2 p x ) ; 
 } 
 
 . t e x t - f o r e g r o u n d   { 
     c o l o r :   v a r ( - - t e x t - p r i m a r y ) ; 
 } 
 
 . t e x t - f o r e g r o u n d - 7 0   { 
     c o l o r :   r g b a ( 1 5 ,   2 3 ,   4 2 ,   0 . 7 ) ; 
 } 
 
 . h o v e r - t e x t - f o r e g r o u n d : h o v e r   { 
     c o l o r :   v a r ( - - t e x t - p r i m a r y ) ; 
 } 
 
 . t e x t - m u t e d - f o r e g r o u n d   { 
     c o l o r :   v a r ( - - m u t e d - f o r e g r o u n d ) ; 
 } 
 
 . b g - g r a d i e n t - t o - r   { 
     b a c k g r o u n d - i m a g e :   l i n e a r - g r a d i e n t ( t o   r i g h t ,   v a r ( - - t w - g r a d i e n t - s t o p s ) ) ; 
 } 
 
 . f r o m - b l u e - l i g h t   { 
     - - t w - g r a d i e n t - f r o m :   # 4 2 A 5 F 5 ; 
     - - t w - g r a d i e n t - s t o p s :   v a r ( - - t w - g r a d i e n t - f r o m ) ,   v a r ( - - t w - g r a d i e n t - t o ,   r g b a ( 6 6 ,   1 6 5 ,   2 4 5 ,   0 ) ) ; 
 } 
 
 . v i a - b l u e - m e d i u m   { 
     - - t w - g r a d i e n t - t o :   # 1 9 7 6 D 2 ;   / *   F a l l b a c k   * / 
     - - t w - g r a d i e n t - s t o p s :   v a r ( - - t w - g r a d i e n t - f r o m ) ,   # 1 9 7 6 D 2 ,   v a r ( - - t w - g r a d i e n t - t o ,   r g b a ( 2 5 ,   1 1 8 ,   2 1 0 ,   0 ) ) ; 
 } 
 
 . t o - b l u e - d a r k   { 
     - - t w - g r a d i e n t - t o :   # 1 5 6 5 C 0 ; 
 } 
 
 . b g - c l i p - t e x t   { 
     - w e b k i t - b a c k g r o u n d - c l i p :   t e x t ; 
     b a c k g r o u n d - c l i p :   t e x t ; 
 } 
 
 . t e x t - t r a n s p a r e n t   { 
     c o l o r :   t r a n s p a r e n t ; 
 } 
 
 . a n i m a t e - f l o a t   { 
     a n i m a t i o n :   f l o a t   6 s   e a s e - i n - o u t   i n f i n i t e ; 
 } 
 
 @ k e y f r a m e s   f l o a t   { 
     0 % ,   1 0 0 %   {   t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   } 
     5 0 %   {   t r a n s f o r m :   t r a n s l a t e Y ( - 2 0 p x ) ;   } 
 } 
 
 . m i n - h - s c r e e n   { 
     m i n - h e i g h t :   1 0 0 v h ; 
 } 
 
 . f l e x - c e n t e r   { 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 
 / *   F e a t u r e   s p e c i f i c   * / 
 . h o v e r - b o r d e r - b l u e : h o v e r   { 
     b o r d e r - c o l o r :   v a r ( - - p r i m a r y - l i g h t ) ; 
 } 
 
 . b g - m u t e d - 3 0   { 
     b a c k g r o u n d - c o l o r :   r g b a ( 2 4 1 ,   2 4 5 ,   2 4 9 ,   0 . 3 ) ; 
 } 
  
 