.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 1rem;
}

@media (min-width: 768px) {
  .auth-container {
    padding: 2rem;
    min-height: calc(100vh - 200px);
  }
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.auth-form .required {
  color: var(--danger-color);
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-full {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.error-message {
  padding: 0.875rem 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
  font-size: inherit;
}

.link-button:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Mobile First Adjustments */
.auth-header h2 {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .auth-header h2 {
    font-size: 1.75rem;
  }
}

.profile-container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.profile-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

@media (min-width: 640px) {
  .profile-container {
    padding: 2rem;
  }

  .profile-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
  }
}

.profile-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .profile-header h2 {
    font-size: 2rem;
  }
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  align-self: flex-start;
}

@media (min-width: 640px) {
  .rank-badge {
    align-self: auto;
  }
}

.profile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .profile-content {
    padding: 2rem;
    gap: 3rem;
  }
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .profile-section {
    gap: 1.5rem;
  }
}

.profile-section h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

@media (min-width: 640px) {
  .profile-section h3 {
    font-size: 1.25rem;
  }
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

@media (min-width: 640px) {
  .avatar-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
  }
}

.avatar-display {
  flex-shrink: 0;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .avatar-image {
    width: 150px;
    height: 150px;
  }
}

.avatar-placeholder-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  border: 3px solid var(--primary-color);
}

@media (min-width: 640px) {
  .avatar-placeholder-large {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .avatar-actions {
    flex-direction: row;
    width: auto;
  }
}

.avatar-actions .btn {
  width: 100%;
  min-width: auto;
}

@media (min-width: 640px) {
  .avatar-actions .btn {
    width: auto;
    min-width: 120px;
  }
}

.avatar-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

@media (min-width: 640px) {
  .avatar-hint {
    text-align: left;
  }
}

.info-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .info-value {
    font-size: 1.125rem;
  }
}

.info-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: var(--background);
  padding: 0.5rem;
  border-radius: 6px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .info-value.mono {
    font-size: 1rem;
  }
}

.webhook-manager {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.webhook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.webhook-header h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.webhook-form-container {
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.webhook-form h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="url"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.checkbox-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-right: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.webhook-list {
  display: grid;
  gap: 1rem;
}

.webhook-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.webhook-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.webhook-info {
  flex: 1;
  margin-right: 1rem;
}

.webhook-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.webhook-name h4 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.enabled {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.disabled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.webhook-url {
  margin-bottom: 0.75rem;
}

.webhook-url code {
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
  word-break: break-all;
  display: block;
}

.webhook-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.webhook-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border-radius: 8px;
  border: 2px dashed var(--border-color);
}

.empty-state p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.empty-state p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .webhook-manager {
    padding: 1rem;
  }
  
  .webhook-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .webhook-card {
    flex-direction: column;
    gap: 1rem;
  }
  
  .webhook-info {
    margin-right: 0;
  }
  
  .webhook-actions {
    justify-content: stretch;
  }
  
  .webhook-actions .btn {
    flex: 1;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.category-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

.category-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-option.selected {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.category-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.category-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.category-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
}

.webhook-categories {
  margin: 0.75rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid currentColor;
}

.no-categories {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.875rem;
}
/* LogsViewer Styles */
.logs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-primary);
  min-height: 100vh;
}

.logs-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logs-header h1 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.logs-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Filtres */
.logs-filters {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-group input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Statistiques */
.logs-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Liste des logs */
.logs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.log-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.log-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.log-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.log-action {
  font-size: 1rem;
  font-weight: 600;
}

.log-timestamp {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.log-details {
  margin: 0.5rem 0;
}

.log-description {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.log-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-rank-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.log-rapport {
  margin-top: 0.5rem;
}

.rapport-link {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 4px;
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

/* Pagination */
.logs-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Loading et Error */
.loading, .error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-message p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logs-container {
    padding: 1rem;
  }
  
  .logs-filters {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .logs-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .log-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .log-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .log-user {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .logs-pagination {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Modern Dashboard - Clean & Professional */

.modern-dashboard {
  min-height: calc(100vh - 80px);
  background: var(--background);
  padding: 0;
}

/* Top Bar */
.dashboard-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .dashboard-topbar {
    padding: 1.5rem 2rem;
  }
}

.topbar-left {
  flex: 1;
  min-width: 0;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .dashboard-title {
    font-size: 1.75rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.admin-avatar,
.admin-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-avatar {
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.admin-avatar-placeholder {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.admin-info {
  display: none;
}

@media (min-width: 640px) {
  .admin-info {
    display: block;
  }
}

.admin-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.admin-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Tab Navigation */
.tab-navigation {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: relative;
}

/* Mobile Dropdown */
.tab-dropdown-mobile {
  display: block;
  padding: 1rem;
}

.tab-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-hover);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tab-mobile-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-mobile-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-mobile-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.tab-select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
  padding-right: 3.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-select:hover {
  border-color: var(--primary-color);
  background-color: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tab-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

.tab-select:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-select option {
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Desktop Tabs */
.tab-scroll-container {
  display: none;
}

@media (min-width: 768px) {
  .tab-dropdown-mobile {
    display: none;
  }
  
  .tab-scroll-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2rem;
    scroll-behavior: smooth;
    justify-content: center;
  }
  
  .tab-scroll-container::-webkit-scrollbar {
    display: none;
  }
}


.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

@media (min-width: 640px) {
  .tab-btn {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: var(--surface-hover);
}

.tab-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .tab-icon {
    font-size: 1.125rem;
  }
}

.tab-label {
  display: none;
  font-size: 0.875rem;
}

@media (min-width: 480px) {
  .tab-label {
    display: inline;
  }
}

@media (min-width: 640px) {
  .tab-label {
    font-size: 0.9375rem;
  }
}

.tab-count {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.125rem 0.375rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .tab-count {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 10px;
  }
}

.tab-btn.active .tab-count {
  background: var(--primary-color);
  color: white;
}

/* Top Authors Grid */
.top-authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.top-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.author-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  min-width: 2rem;
  text-align: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  line-height: 1;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-rank-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

.author-stats {
  text-align: right;
  flex-shrink: 0;
}

.author-count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.author-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .top-authors-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .top-author-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
  }
  
  .author-name {
    font-size: 0.875rem;
  }
  
  .author-count {
    font-size: 1.25rem;
  }
}

/* Dashboard Content */
.dashboard-content-modern {
  padding: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .dashboard-content-modern {
    padding: 2rem;
  }
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card-modern {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.stat-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-icon-badge.blue { background: rgba(59, 130, 246, 0.1); }
.stat-icon-badge.red { background: rgba(239, 68, 68, 0.1); }
.stat-icon-badge.orange { background: rgba(245, 158, 11, 0.1); }
.stat-icon-badge.green { background: rgba(16, 185, 129, 0.1); }

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 3rem;
  }
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.stat-change {
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.stat-change.positive {
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.stat-percentage {
  font-weight: 700;
  color: var(--primary-color);
}

.stat-period {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Actions rapides */
.quick-actions-section {
  margin-bottom: 2rem;
}

.quick-actions-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.quick-action-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.generate-test-btn:hover {
  border-color: #f59e0b;
}

.action-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.action-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Stats Tab */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.stats-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.stats-card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.stats-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Stats Header Controls */
.stats-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.week-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.week-selector label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.week-select {
  padding: 0.375rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.week-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

.stats-card-content {
  height: 100%;
}

/* Daily Stats */
.daily-stats {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
  height: 200px;
}

.daily-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.daily-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 500;
}

.daily-bar {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.daily-bar-fill {
  width: 100%;
  max-width: 24px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  min-height: 4px;
  position: relative;
}

.daily-bar-fill:hover {
  opacity: 0.8;
}

.daily-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Top Staff */
.top-staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top-staff-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface-hover);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.top-staff-item:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.staff-rank {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 2rem;
}

.staff-info {
  flex: 1;
}

.staff-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.staff-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.staff-count {
  text-align: right;
}

.count-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.count-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Type Stats */
.type-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.type-info {
  min-width: 120px;
}

.type-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.type-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.type-bar {
  flex: 1;
  height: 8px;
  background: var(--surface-hover);
  border-radius: 4px;
  overflow: hidden;
}

.type-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.type-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 3rem;
  text-align: right;
}

/* General Stats */
.general-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.general-stat {
  text-align: center;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: 8px;
}

.general-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 500;
}

.general-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.chart-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.chart-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  width: 100%;
}

/* Chart Bars */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-bar-item {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 1rem;
  align-items: center;
}

.chart-bar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bar-dot.red { background: var(--danger-color); }
.bar-dot.orange { background: #f59e0b; }
.bar-dot.blue { background: var(--primary-color); }

.chart-bar-wrapper {
  background: var(--input-bg);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

.chart-bar.red { background: linear-gradient(90deg, var(--danger-color), #dc2626); }
.chart-bar.orange { background: linear-gradient(90deg, #f59e0b, #d97706); }
.chart-bar.blue { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); }

.chart-bar-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 30px;
  text-align: right;
}

/* Activity List */
.activity-list-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  width: 100%;
}

.activity-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--input-bg);
  border-radius: 12px;
  transition: all 0.2s;
  overflow: hidden;
}

.activity-item-modern:hover {
  background: var(--surface-hover);
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  display: block;
}

.activity-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.activity-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-text strong {
  font-weight: 600;
}

.activity-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  background: var(--input-bg);
  border-radius: 8px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  flex: 1;
  max-width: 500px;
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

/* Users Grid */
.users-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .users-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .users-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.user-card-modern {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.user-card-modern.current {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary-color);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-card-avatar,
.user-card-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.user-card-avatar {
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.user-card-avatar-placeholder {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  background: var(--input-bg);
  border-radius: 8px;
  font-weight: 500;
}

.field-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
}

.rank-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.rank-select:hover:not(:disabled) {
  border-color: var(--primary-color);
}

.rank-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rank-select.admin { border-color: var(--danger-color); }
.rank-select.moderator { border-color: #f59e0b; }
.rank-select.user { border-color: var(--border-color); }

.user-card-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-delete-user {
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-user:hover:not(:disabled) {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

.btn-delete-user:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Reports Table */
.reports-table-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-row-modern {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

@media (max-width: 767px) {
  .report-row-modern {
    grid-template-columns: auto 1fr auto;
  }
}

.report-row-modern:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color);
}

.report-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
}

.report-id {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  min-width: 40px;
  flex-shrink: 0;
}

.report-type-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.report-type-badge.ban {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.report-type-badge.tempmute {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.report-type-badge.staff {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.report-row-center {
  display: none;
  gap: 2rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .report-row-center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.report-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.report-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-row-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 80px;
}

.report-date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

/* Loading & Forbidden States */
.admin-loading,
.admin-forbidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  gap: 1rem;
  padding: 2rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.forbidden-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.admin-forbidden h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.admin-forbidden p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Ranks Configuration Section */
.ranks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .ranks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rank-card-config {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s;
}

.rank-card-config:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.rank-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rank-icon-large {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-header-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.rank-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Rank Stats */
.rank-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--input-bg);
  border-radius: 12px;
}

.rank-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-stat-value {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}

.rank-stat-percent {
  font-size: 1rem;
  opacity: 0.7;
}

.rank-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--background);
  border-radius: 8px;
  overflow: hidden;
}

.rank-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

/* Permissions */
.rank-permissions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.permissions-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.permissions-icon {
  font-size: 1.125rem;
}

.permissions-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.permissions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 0.5rem;
  background: var(--input-bg);
  border-radius: 8px;
}

.permission-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.permission-text {
  flex: 1;
  line-height: 1.4;
}

/* Rank Users Preview */
.rank-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.rank-users-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rank-user-mini {
  position: relative;
}

.rank-user-avatar-mini,
.rank-user-placeholder-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  flex-shrink: 0;
}

.rank-user-avatar-mini {
  object-fit: cover;
}

.rank-user-placeholder-mini {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.rank-user-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Hierarchy Card */
.rank-hierarchy-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.hierarchy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hierarchy-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hierarchy-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hierarchy-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hierarchy-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hierarchy-rank {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s;
}

.hierarchy-rank:hover {
  border-color: var(--primary-color);
  background: var(--surface-hover);
}

.hierarchy-icon {
  font-size: 1.5rem;
}

.hierarchy-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hierarchy-arrow {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.hierarchy-note {
  padding: 1rem 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rank Card Actions */
.rank-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rank-actions {
  display: flex;
  gap: 0.5rem;
}

.rank-action-btn {
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.rank-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rank-edit-btn:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.rank-delete-btn:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.rank-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(115, 115, 115, 0.1);
  border: 1px solid rgba(115, 115, 115, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-in;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.rank-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.color-input-group {
  display: flex;
  gap: 0.5rem;
}

.color-input-group input[type="color"] {
  width: 60px;
  height: 42px;
  padding: 0.25rem;
  cursor: pointer;
}

.color-input-group input[type="text"] {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--background);
}

/* Statistiques par utilisateur */
.user-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.user-stats-item:hover {
  border-color: var(--primary-color-light);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-color-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.user-rank-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-hover);
  color: var(--text-muted);
  font-weight: 500;
}

.user-stats-breakdown {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 60px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 30px;
  text-align: center;
}

.stat-value.total {
  background: var(--primary-color-light);
  color: var(--primary-color);
}

.stat-value.ban {
  background: #fef2f2;
  color: #dc2626;
}

.stat-value.tempmute {
  background: #fef3c7;
  color: #d97706;
}

.stat-value.staff-gestion {
  background: #f0f9ff;
  color: #0284c7;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Style simplifié pour les statistiques utilisateur */
.user-stats-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.user-stats-simple:hover {
  border-color: var(--primary-color-light);
  background: var(--surface-hover);
}

.user-name-simple {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.user-stats-simple-breakdown {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stat-simple {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.stat-simple.total {
  background: var(--primary-color-light);
  color: var(--primary-color);
}

.stat-simple.ban {
  background: #fef2f2;
  color: #dc2626;
}

.stat-simple.tempmute {
  background: #fef3c7;
  color: #d97706;
}

.stat-simple.staff-gestion {
  background: #f0f9ff;
  color: #0284c7;
}

/* Week Selector */
.stats-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.week-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.week-selector label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.week-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.week-select:hover {
  border-color: var(--primary-color);
}

.week-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

/* Stats Card Wide - Prend la largeur de 2 colonnes */
.stats-card-wide {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .stats-card-wide {
    grid-column: span 1;
  }
}

/* Design compact pour les statistiques utilisateur */
.user-stats-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.user-stats-compact:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color-light);
}

.user-compact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.user-compact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.user-compact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-compact-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-compact-details {
  min-width: 0;
  flex: 1;
}

.user-compact-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-compact-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.user-compact-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stat-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.375rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.stat-compact.total {
  background: var(--primary-color-light);
  color: var(--primary-color);
  min-width: 32px;
}

.stat-compact.ban {
  background: #fef2f2;
  color: #dc2626;
}

.stat-compact.tempmute {
  background: #fef3c7;
  color: #d97706;
}

.stat-compact.staff-gestion {
  background: #f0f9ff;
  color: #0284c7;
}

/* Tooltips pour les statistiques compactes */
.stat-compact {
  position: relative;
  cursor: help;
}

.stat-compact:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-compact[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: tooltipFadeIn 0.2s ease-out;
}

.stat-compact[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  margin-bottom: -0.5rem;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive pour le design compact */
@media (max-width: 768px) {
  .user-stats-compact {
    padding: 0.5rem 0.75rem;
  }
  
  .user-compact-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-compact-name {
    font-size: 0.8125rem;
  }
  
  .user-compact-rank {
    font-size: 0.6875rem;
  }
  
  .stat-compact {
    min-width: 20px;
    height: 20px;
    font-size: 0.6875rem;
  }
  
  .stat-compact.total {
    min-width: 28px;
  }
}

/* Responsive pour les statistiques utilisateur */
@media (max-width: 768px) {
  .user-stats-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .user-stats-breakdown {
    width: 100%;
    justify-content: space-between;
  }
  
  .stat-item {
    min-width: auto;
    flex: 1;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Analytics Tab Styles - Enhanced with Higher Specificity */
.modern-dashboard .analytics-header {
  margin-bottom: 2rem !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%) !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color) !important;
}

.modern-dashboard .analytics-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modern-dashboard .period-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--background);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-dashboard .period-selector label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-dashboard .period-select {
  padding: 0.625rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.modern-dashboard .period-select:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.modern-dashboard .period-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modern-dashboard .analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.modern-dashboard .analytics-card {
  background: var(--surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.modern-dashboard .analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-dashboard .analytics-card:hover {
  border-color: var(--primary-color-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.modern-dashboard .analytics-card:hover::before {
  opacity: 1;
}

.modern-dashboard .analytics-card-wide {
  grid-column: 1 / -1;
}

.modern-dashboard .analytics-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modern-dashboard .analytics-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.modern-dashboard .analytics-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.8;
}

.modern-dashboard .analytics-card-content {
  /* Content styles */
}

/* Metrics Grid - Enhanced with Higher Specificity */
.modern-dashboard .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.modern-dashboard .metric-item {
  text-align: center !important;
  padding: 1.5rem 1rem !important;
  background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%) !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.modern-dashboard .metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-dashboard .metric-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color-light);
}

.modern-dashboard .metric-item:hover::before {
  transform: scaleX(1);
}

.modern-dashboard .metric-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-dashboard .metric-value {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  margin-bottom: 0.75rem !important;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-color)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.modern-dashboard .metric-change {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
}

.modern-dashboard .metric-change.positive {
  color: #ffffff !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.modern-dashboard .metric-change.negative {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.modern-dashboard .metric-previous {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.7;
}

/* Large Metric Items - Enhanced with Higher Specificity */
.modern-dashboard .metric-item-large {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.modern-dashboard .metric-item-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
}

.modern-dashboard .metric-value-large {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-dashboard .metric-change-large {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  display: inline-block;
}

.modern-dashboard .metric-change-large.positive {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modern-dashboard .metric-change-large.negative {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modern-dashboard .metric-label-large {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-dashboard .metric-previous-large {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.8;
}

/* Trends Summary - Enhanced with Higher Specificity */
.modern-dashboard .trends-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.modern-dashboard .trend-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-dashboard .trend-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-dashboard .trend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color-light);
}

.modern-dashboard .trend-item:hover::before {
  transform: scaleX(1);
}

.modern-dashboard .trend-icon {
  font-size: 2rem;
  flex-shrink: 0;
  padding: 0.75rem;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.modern-dashboard .trend-content {
  flex: 1;
}

.modern-dashboard .trend-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.modern-dashboard .trend-description {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--background);
}

.modern-dashboard .trend-description.positive {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.modern-dashboard .trend-description.negative {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.modern-dashboard .trend-description.neutral {
  color: var(--text-muted);
  background: var(--background);
  border: 1px solid var(--border-color);
}

/* Analytics Responsive Design - Enhanced with Higher Specificity */
@media (max-width: 768px) {
  .modern-dashboard .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .modern-dashboard .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .modern-dashboard .trends-summary {
    grid-template-columns: 1fr;
  }
  
  .modern-dashboard .metric-value-large {
    font-size: 3rem;
  }
  
  .modern-dashboard .analytics-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modern-dashboard .period-selector {
    justify-content: center;
    padding: 1rem;
  }
  
  .modern-dashboard .analytics-card {
    padding: 1.5rem;
  }
  
  .modern-dashboard .metric-item {
    padding: 1.25rem 0.75rem;
  }
  
  .modern-dashboard .metric-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .modern-dashboard .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-dashboard .metric-value {
    font-size: 1.75rem;
  }
  
  .modern-dashboard .metric-value-large {
    font-size: 2.5rem;
  }
  
  .modern-dashboard .trend-item {
    flex-direction: column;
    text-align: center;
  }
  
  .modern-dashboard .trend-icon {
    align-self: center;
  }
}
.rapport-form {
  background: var(--surface);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rapport-form {
    padding: 2rem;
  }
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-section {
  background: var(--input-bg);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .form-section {
    padding: 1.25rem;
  }
}

.form-section h3 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.author-section {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(88, 101, 242, 0.02) 100%);
  border-color: rgba(88, 101, 242, 0.2);
}

.connected-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.user-avatar-form-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name-form {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.user-id-form {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

.user-email-form {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.125rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.label-text {
  flex: 1;
}

.label-required {
  color: var(--danger-color);
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Image Upload */
.image-upload {
  margin-top: 0.5rem;
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--input-bg);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.file-label:hover {
  border-color: var(--primary-color);
  background: var(--surface-hover);
  color: var(--primary-color);
}

.file-label svg {
  color: var(--primary-color);
}

/* Styles pour les images */
.file-upload {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  gap: 0.5rem;
}

.file-label:hover {
  border-color: var(--primary-color);
  background: var(--primary-color-light);
}

.file-label svg {
  color: var(--primary-color);
}

.preview-container {
  margin-top: 1rem;
}

.preview-container h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 0.5rem;
  font-size: 0.8rem;
}

.preview-name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-color);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.preview-item:hover .remove-preview {
  opacity: 1;
}

.label-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

.form-textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-group small strong {
  color: var(--text-color);
}

.remove-image:hover {
  transform: scale(1.1);
  background: #d93636;
}

/* Form Actions - Mobile First */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-submit-form {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-submit-form {
    width: auto;
    min-width: 200px;
  }
}

/* Mobile First Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.form-header h2 {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .form-header h2 {
    font-size: 1.5rem;
  }
}

/* Styles pour l'affichage du nombre de rapports */
.staff-count-info {
  margin-top: 0.5rem;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.count-badge.no-reports {
  background: rgba(34, 197, 94, 0.05);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.count-badge.has-reports {
  background: rgba(245, 158, 11, 0.05);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.count-badge span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rapport-list {
  width: 100%;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.list-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.user-info-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-info-notice.user-full-access {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.info-icon {
  font-size: 1rem;
}

.count-badge {
  padding: 0.375rem 0.75rem;
  background: var(--surface-hover);
  color: var(--text-secondary);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

/* Styles pour les badges de comptage des staffs */
.staff-count-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: rgba(245, 158, 11, 0.05);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 400;
  margin-left: 0.375rem;
  opacity: 0.8;
}

.staff-count-info {
  margin-top: 0.25rem;
  display: flex;
  justify-content: flex-start;
  min-width: 0; /* Permettre la compression */
}

.staff-count-text {
  font-size: 0.7rem;
  color: #f59e0b;
  font-weight: 400;
  background: rgba(245, 158, 11, 0.05);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.1);
  opacity: 0.8;
  white-space: nowrap; /* Empêcher le retour à la ligne */
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  font-variant-numeric: tabular-nums; /* Chiffres de largeur fixe */
}

/* Filtres - Mobile First */
.filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

@media (min-width: 768px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-end;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .filter-group {
    flex: 1;
    min-width: 200px;
    width: auto;
  }
}

.filter-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  padding: 0.75rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filter-group select {
  cursor: pointer;
}

/* Styles pour les champs de recherche dans les filtres */
.search-input-filter {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-input-filter:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-input-filter::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Styles pour les champs de date */
.date-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.date-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.date-input:hover {
  border-color: var(--primary-hover);
}

.btn-reset-filters {
  padding: 0.75rem 1rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 768px) {
  .btn-reset-filters {
    width: auto;
    padding: 0.625rem 1.25rem;
    align-self: flex-end;
  }
}

.btn-reset-filters:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.rapports-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rapports-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

.rapports-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.rapport-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .rapport-card {
    padding: 1.5rem;
  }
}

.rapport-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.rapport-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.rapport-id {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

.rapport-type-badge {
  padding: 0.25rem 0.625rem;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rapport-status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.rapport-status-badge.traite {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rapport-status-badge.en-attente {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Boutons de traitement des rapports */
.rapport-actions-compact {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.rapport-actions-normal {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
}

.btn-compact {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-normal {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-compact.btn-success,
.btn-normal.btn-success {
  background: #10b981;
  color: white;
}

.btn-compact.btn-success:hover,
.btn-normal.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-compact.btn-warning,
.btn-normal.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-compact.btn-warning:hover,
.btn-normal.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-compact:disabled,
.btn-normal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rapport-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.rapport-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  overflow: hidden;
}

.rapport-info {
  flex: 1;
  min-width: 0; /* Important pour permettre le text-overflow */
  padding: 0.75rem;
  background: var(--input-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rapport-arrow {
  font-size: 1.25rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rapport-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.raison-preview {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.raison-preview strong {
  color: var(--text-primary);
  font-weight: 500;
}

.has-images {
  padding: 0.25rem 0.625rem;
  background: var(--surface-hover);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

/* Auteur du rapport */
.rapport-auteur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.auteur-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.auteur-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  color: white;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.auteur-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.auteur-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auteur-rank {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rapport-date-bottom {
  text-align: center;
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rapport-hover-indicator {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rapport-card:hover .rapport-hover-indicator {
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.btn-new-rapport-empty {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Mobile First Adjustments */
.list-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .list-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
}

.list-header h2 {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .list-header h2 {
    font-size: 1.5rem;
  }
}

.list-header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .list-header-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

/* View Toggle */
.view-toggle {
  display: flex;
  background: var(--surface-hover);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.view-toggle-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  color: var(--text-secondary);
}

.view-toggle-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  font-weight: bold;
}

.btn-new-rapport {
  width: 100%;
}

/* Barre de recherche */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.search-input-container {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
}

.search-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.btn-clear-search {
  padding: 0.5rem;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  transition: all 0.2s ease;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-clear-search:hover {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .btn-new-rapport {
    width: auto;
  }
}

.rapport-card-body {
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rapport-card-body {
    flex-direction: row;
    gap: 1rem;
  }
}

.rapport-arrow {
  transform: rotate(90deg);
  margin: 0.5rem 0;
}

@media (min-width: 640px) {
  .rapport-arrow {
    transform: none;
    margin: 0;
  }
}

/* Vue Compacte */
.rapports-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rapport-compact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
}

.rapport-compact-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.compact-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 80px;
  flex-shrink: 0;
}

.compact-left .rapport-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

.compact-left .rapport-type-badge {
  padding: 0.125rem 0.375rem;
  color: white;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.compact-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.compact-staff,
.compact-member {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.staff-name,
.member-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-id,
.member-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-arrow {
  font-size: 1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.compact-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.compact-raison {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.compact-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.compact-images {
  padding: 0.125rem 0.375rem;
  background: var(--surface-hover);
  border-radius: 3px;
  font-size: 0.625rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.compact-auteur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
  flex-shrink: 0;
}

.auteur-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-color);
  flex-shrink: 0;
}

.auteur-avatar-placeholder-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: bold;
  color: white;
  border: 1px solid var(--primary-color);
  flex-shrink: 0;
}

.auteur-name-small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Vue compacte en liste - Nouvelle structure */
.rapport-compact-list-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rapport-compact-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.compact-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.compact-list-id {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compact-list-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.compact-list-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compact-list-parties {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.compact-party-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-party-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compact-party-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compact-party-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
}

.compact-party-arrow {
  font-size: 1.25rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.compact-list-reason {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.compact-list-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compact-author-avatar {
  flex-shrink: 0;
}

.compact-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.compact-author-rank {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.compact-list-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.compact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 140px;
}

.compact-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.compact-action-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.compact-action-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.compact-action-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.compact-action-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}


.compact-list-images {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
  padding-top: 0.25rem;
}

.compact-staff-count-badge {
  display: inline-block;
  padding: 0.125rem 0.125rem;
  background: rgba(245, 158, 11, 0.05);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* Contrôles de pagination */
.pagination-controls {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-secondary);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-current {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Saut de page */
.pagination-jump {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.page-jump-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-jump-form label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.page-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 80px;
  text-align: center;
}

.page-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.jump-btn {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.jump-btn:hover:not(:disabled) {
  background: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
}

/* Informations de traitement pour la vue compacte */
.compact-treatment-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 6px;
  border-left: 3px solid #22c55e;
  margin: 0.5rem 0;
}

.compact-treatment-text {
  font-size: 0.8125rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.compact-treatment-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.compact-treatment-date {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.75rem;
}
  .pagination-controls {
    padding: 1rem;
  }
  
  .pagination-buttons {
    gap: 0.25rem;
  }
  
  .pagination-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 35px;
  }
}

/* Responsive pour la vue compacte en liste */
@media (max-width: 768px) {
  .rapport-compact-list-item {
    padding: 0.75rem;
  }
  
  .compact-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .compact-list-parties {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .compact-party-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  
  .compact-list-actions {
    justify-content: center;
  }
  
  .compact-action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Section Top Auteurs */
.top-authors-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.top-authors-section h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.top-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.top-author-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.author-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-color-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.author-rank-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.author-stats {
  text-align: center;
  flex-shrink: 0;
}

.author-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.author-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Responsive pour les cartes d'auteurs */
@media (max-width: 768px) {
  .top-authors-grid {
    grid-template-columns: 1fr;
  }
  
  .top-author-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .author-rank {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .author-avatar {
    width: 35px;
    height: 35px;
  }
  
  .author-count {
    font-size: 1.3rem;
  }
}

.rapport-detail {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .detail-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 2rem;
  }
}

.header-info {
  flex: 1;
  text-align: center;
}

.header-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.status-actions {
  display: flex;
  gap: 0.5rem;
}

.header-info h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.detail-type-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-status-badge.traité {
  background-color: #10b981;
  color: white;
}

.detail-status-badge.en_attente {
  background-color: #f59e0b;
  color: white;
}

/* Styles pour l'affichage du nombre de rapports dans la vue détail */
.staff-count-detail {
  margin-top: 0.5rem;
}

.staff-count-badge-detail {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(245, 158, 11, 0.05);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.8;
  white-space: nowrap; /* Empêcher le retour à la ligne */
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: block;
}


.detail-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .detail-content {
    padding: 2rem;
    gap: 1.5rem;
  }
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .detail-section {
    flex-direction: row;
    padding: 1.25rem;
  }
}

.detail-section:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.section-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .section-icon {
    width: 40px;
    height: 40px;
  }
}

.section-content {
  flex: 1;
}

.section-content h3 {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-id {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  padding: 0.375rem 0.75rem;
  background: var(--input-bg);
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--border-color);
}

.section-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 0.875rem;
  background: var(--input-bg);
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
}

/* Images Section - Mobile First */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
}

.image-thumbnail {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  background: var(--input-bg);
}

.image-thumbnail:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-thumbnail:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 0.5rem;
  font-size: 0.7rem;
}

.image-name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  display: block;
  opacity: 0.8;
  font-size: 0.6rem;
}
.preuves-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  word-break: break-all;
  flex: 1;
}

.proof-link:hover {
  background: var(--primary-color-light);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.proof-link svg:first-child {
  color: var(--primary-color);
  flex-shrink: 0;
}

.proof-link span {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.proof-link svg:last-child {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.copy-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-link-btn:hover {
  background: var(--primary-color-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.copy-link-btn:active {
  transform: scale(0.95);
}

.proof-link:hover svg:last-child {
  opacity: 1;
  color: var(--primary-color);
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
}

.file-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  background: var(--input-bg);
}

.file-thumbnail:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.image-thumbnail {
  aspect-ratio: 1;
}

.video-thumbnail {
  aspect-ratio: 16/9;
}

.file-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 0.5rem;
}

.file-thumbnail:hover .file-overlay {
  opacity: 1;
}

.file-overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.file-overlay span:first-child {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.file-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 0.5rem;
  font-size: 0.7rem;
}

.file-name {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  display: block;
  opacity: 0.8;
  font-size: 0.6rem;
}

/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.modal-content img,
.modal-file {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.modal-file {
  max-width: 90vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--danger-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  background: #d93636;
}

/* Color Variations */
.staff-section .section-icon {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.member-section .section-icon {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.raison-section .section-icon {
  background: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.contestation-section .section-icon {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.images-section .section-icon {
  background: var(--text-secondary);
  color: white;
  border-color: var(--text-secondary);
}

/* Mobile Specific */
.detail-header .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .detail-header .btn {
    width: auto;
  }
}

.modal-close {
  top: 1rem;
  right: 1rem;
}

@media (min-width: 768px) {
  .modal-close {
    top: -50px;
    right: 0;
  }
}

/* Informations de traitement */
.treatment-info {
  margin: 1rem 0;
  padding: 0 1rem;
}

.treatment-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.treatment-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.treatment-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.treatment-user {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
}

.treatment-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.user-info-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.info-container {
  max-width: 800px;
  width: 100%;
  background: var(--surface);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.info-header {
  text-align: center;
  margin-bottom: 3rem;
}

.info-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.info-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

.info-content {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-hover);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.special-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.recruitment-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.requirements-list {
  margin: 1.5rem 0;
}

.requirements-list h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.requirements-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-list li:last-child {
  border-bottom: none;
}

.recruitment-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  text-align: center;
}

.recruitment-cta p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.discord-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
  background: linear-gradient(135deg, #4752c4, #3c45a5);
}

.card-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.card-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.card-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.user-status {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  color: #10b981;
  font-weight: 500;
}

.status-icon {
  font-size: 1.25rem;
}

.status-text {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .user-info-page {
    padding: 1rem;
  }
  
  .info-container {
    padding: 2rem;
  }
  
  .info-header h1 {
    font-size: 2rem;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .info-container {
    padding: 1.5rem;
  }
  
  .info-header h1 {
    font-size: 1.75rem;
  }
  
  .info-subtitle {
    font-size: 1rem;
  }
}
.public-rapport-container {
  min-height: 100vh;
  background: var(--background);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.public-rapport {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.public-header {
  padding: 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.header-info h1 {
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.header-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.public-type-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-status-badge.traité {
  background-color: #10b981;
  color: white;
}

.public-status-badge.en_attente {
  background-color: #f59e0b;
  color: white;
}

.public-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.public-content {
  padding: 2rem;
}

.public-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.section-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 8px;
  color: white;
}

.section-content {
  flex: 1;
}

.section-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.user-id {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.section-text {
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-thumbnail {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
}

.image-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.image-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-thumbnail:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Styles pour les liens de preuves */
.preuves-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
  word-break: break-all;
  flex: 1;
}

.proof-link:hover {
  background: var(--primary-color-light);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.proof-link svg:first-child {
  color: var(--primary-color);
  flex-shrink: 0;
}

.proof-link span {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.proof-link svg:last-child {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

.copy-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-link-btn:hover {
  background: var(--primary-color-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.copy-link-btn:active {
  transform: scale(0.95);
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Informations de traitement pour la page publique */
.public-treatment-info {
  margin: 1rem 0;
  padding: 0 1rem;
}

.public-treatment-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.public-treatment-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.public-treatment-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-treatment-user {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
}

.public-treatment-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 4rem 2rem;
}

.error-message h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-message p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-secondary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .public-rapport-container {
    padding: 1rem;
  }
  
  .public-header {
    padding: 1.5rem;
  }
  
  .public-content {
    padding: 1.5rem;
  }
  
  .public-section {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .section-icon {
    width: 32px;
    height: 32px;
  }
  
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
/* Notification System Styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
}

.notification.visible {
  transform: translateX(0);
  opacity: 1;
}

.notification.leaving {
  transform: translateX(100%);
  opacity: 0;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--notification-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
}

.notification-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--notification-color);
  transform-origin: left;
  animation: notification-progress linear forwards;
}

@keyframes notification-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Types de notifications */
.notification-success {
  border-left: 4px solid #22c55e;
}

.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-warning {
  border-left: 4px solid #f59e0b;
}

.notification-info {
  border-left: 4px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    transform: translateY(-100%);
  }
  
  .notification.visible {
    transform: translateY(0);
  }
  
  .notification.leaving {
    transform: translateY(-100%);
  }
  
  .notification-content {
    padding: 12px;
  }
  
  .notification-title {
    font-size: 13px;
  }
  
  .notification-message {
    font-size: 12px;
  }
}

/* Animation d'entrée en pile */
.notification:nth-child(1) { animation-delay: 0ms; }
.notification:nth-child(2) { animation-delay: 50ms; }
.notification:nth-child(3) { animation-delay: 100ms; }
.notification:nth-child(4) { animation-delay: 150ms; }
.notification:nth-child(5) { animation-delay: 200ms; }
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - Mobile First */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Desktop */
@media (min-width: 768px) {
  .header {
    padding: 1.25rem 2rem;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
  }
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .nav-menu {
    flex-direction: row;
    gap: 0.75rem;
    width: auto;
  }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--input-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--input-bg);
  border-radius: 8px;
  border: 2px solid var(--border-color);
  width: 100%;
  transition: all 0.2s;
}

.user-info-header:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.user-info-header.active {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

@media (min-width: 768px) {
  .user-info-header {
    padding: 0.5rem 1rem;
    width: auto;
  }
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

@media (min-width: 768px) {
  .user-avatar-img {
    width: 40px;
    height: 40px;
  }
}

.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.user-details-header {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.2;
}

.logo {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 0;
  font-weight: 400;
  display: none;
}

@media (min-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    display: block;
    font-size: 0.875rem;
  }
}

/* Buttons - Mobile First */
.btn {
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .btn {
    width: auto;
    padding: 0.625rem 1.25rem;
  }
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-discord {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord svg {
  width: 20px;
  height: 20px;
}

/* Main Content - Mobile First */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 768px) {
  .main-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: 3rem 2rem;
  }
}

.form-container,
.detail-container,
.list-container {
  width: 100%;
}

.btn-back-main {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .btn-back-main {
    margin-bottom: 2rem;
  }
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--surface-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark Mode par défaut */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #2563eb;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Dark theme colors */
  --background: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #262626;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --border-color: #2a2a2a;
  --input-bg: #1f1f1f;
  --shadow: rgba(0, 0, 0, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

#root {
  width: 100%;
  min-height: 100vh;
}

/* Scrollbar personnalisé - Dark */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

