@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1A56A0;
  --secondary: #1A7A4A;
  --success: #16A34A;
  --warning: #B45309;
  --danger: #DC2626;
  --background: #F5F5F5;
  --sidebar-width: 260px;
  --header-height: 64px;
}

* {
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--background);
  color: #1f2937;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Rich Text Editor Simulation */
.rich-editor {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  min-height: 150px;
  background: white;
}

.rich-editor-toolbar {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  background: #f9fafb;
  border-radius: 0.5rem 0.5rem 0 0;
}

.rich-editor-content {
  padding: 1rem;
  min-height: 100px;
  outline: none;
}

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

.badge-cloturee {
  background-color: #dcfce7;
  color: #166534;
}

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

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

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

/* Table Styles */
.enterprise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.enterprise-table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.enterprise-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #374151;
}

.enterprise-table tr:hover td {
  background-color: #f8fafc;
}

/* Comparison Matrix Specific */
.comparison-cell {
  min-width: 180px;
  text-align: center;
  position: relative;
}

.comparison-cell.best-price {
  background-color: #f0fdf4;
  border-left: 3px solid var(--success);
}

.comparison-cell.selected-award {
  background-color: #eff6ff;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 160, 0.1);
}

/* Sidebar Navigation */
.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left: 3px solid #1A7A4A;
}

/* Cards */
.enterprise-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid #e5e7eb;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

/* Decision Panel */
.decision-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

/* Version Badge */
.version-badge {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* Sidebar Transition Specifics */
.sidebar.collapsed .sidebar-text {
  opacity: 0;
  width: 0;
  margin-left: 0;
  display: none;
}

.sidebar.collapsed .sidebar-text-container {
  opacity: 0;
  width: 0;
  display: none;
}

.sidebar.collapsed .sidebar-item {
  justify-content: center;
  padding: 0.75rem 0;
}

.sidebar.collapsed .sidebar-item i {
  margin-right: 0 !important;
}