:root {
  --radius: 0.5rem;
}

/* Animations personnalisées */
@keyframes accordion-down { from { height: 0 } to { height: var(--radix-accordion-content-height) } }
@keyframes accordion-up { from { height: var(--radix-accordion-content-height) } to { height: 0 } }

/* Style pour les cartes avec gradient */
.financial-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.dark .financial-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Animations des cartes */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Style du graphique mini dans les cartes */
.mini-chart { height: 40px; display: flex; align-items: end; gap: 2px; margin-top: 8px; }
.chart-bar { flex: 1; background: linear-gradient(to top, #3b82f6, #60a5fa); border-radius: 2px; min-height: 4px; animation: chart-grow 0.8s ease-out; }
@keyframes chart-grow { from { height: 0; } to { height: 100%; } }

/* Animation pour les toasts */
.animate-in { animation: slideIn 0.3s ease-out; }
.slide-in-from-right { animation: slideInFromRight 0.3s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInFromRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* Styles pour les sliders modernes */
.slider-thumb { background: linear-gradient(to right, #3b82f6, #1d4ed8); }
.slider-thumb::-webkit-slider-thumb { appearance: none; height: 20px; width: 20px; background: #3b82f6; border: 2px solid #1e40af; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); transition: all 0.2s ease; }
.slider-thumb::-webkit-slider-thumb:hover { background: #1d4ed8; transform: scale(1.1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); }
.slider-thumb::-moz-range-thumb { height: 20px; width: 20px; background: #3b82f6; border: 2px solid #1e40af; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); transition: all 0.2s ease; }
.slider-thumb::-moz-range-thumb:hover { background: #1d4ed8; transform: scale(1.1); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); }
.slider-thumb::-webkit-slider-track { background: #374151; border-radius: 4px; }
.slider-thumb::-moz-range-track { background: #374151; border-radius: 4px; }

/* Styles pour les boutons actifs d'épargne */
.savings-action-btn.active { background-color: #3b82f6 !important; border-color: #1d4ed8 !important; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important; }
.savings-action-btn { transition: all 0.2s ease !important; }

/* Styles pour la slide-barre multi-joueurs */
#players-slider { scrollbar-width: none; -ms-overflow-style: none; }
#players-slider::-webkit-scrollbar { display: none; }
.player-card { display: flex; align-items: center; padding: 12px 16px; border-radius: 12px; border: 2px solid transparent; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-width: 220px; background-color: rgba(31, 41, 55, 0.8); backdrop-filter: blur(10px); cursor: pointer; position: relative; overflow: hidden; }
.player-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1)); opacity: 0; transition: opacity 0.3s ease; }
.player-card:hover::before { opacity: 1; }
.player-card.current-player { border-color: #10b981; background-color: rgba(16, 185, 129, 0.15); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
.player-card.waiting-player { border-color: #6b7280; background-color: rgba(107, 114, 128, 0.1); }
.player-card.finished-player { border-color: #3b82f6; background-color: rgba(59, 130, 246, 0.1); }
.player-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
.player-status { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.player-status.current { color: #10b981; }
.player-status.waiting { color: #6b7280; }
.player-status.finished { color: #3b82f6; }
.player-info { flex: 1; min-width: 0; margin: 0 12px; }
.player-name { font-weight: 600; color: #f3f4f6; font-size: 14px; margin-bottom: 2px; }
.player-capital { color: #9ca3af; font-size: 12px; font-weight: 500; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; position: relative; }
.status-indicator.active { background-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
.status-indicator.active::after { content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; background-color: #10b981; border-radius: 50%; transform: translate(-50%, -50%); animation: pulse 2s infinite; }
.status-indicator.waiting { background-color: #6b7280; }
.status-indicator.finished { background-color: #3b82f6; }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } }

/* Styles pour les informations de partie */
.game-info-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background-color: rgba(31, 41, 55, 0.5); border-radius: 8px; backdrop-filter: blur(5px); }
.game-info-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Responsive - slide-barre */
@media (max-width: 768px) { .player-card { min-width: 180px; padding: 10px 14px; } .player-name { font-size: 13px; } .player-capital { font-size: 11px; } .player-status { font-size: 10px; } .game-info-icon { width: 20px; height: 20px; } }
@media (max-width: 640px) { .player-card { min-width: 160px; padding: 8px 12px; } .player-card .w-10 { width: 2rem; height: 2rem; } }

/* Dialogues immobiliers */
.custom-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #1f2937; border: 1px solid #374151; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); z-index: 1001; max-width: 90vw; max-height: 90vh; overflow: hidden; }
.custom-modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; }
.property-management-modal { max-height: 80vh; overflow-y: auto; }
.property-management-modal .modal-content { max-height: 70vh; overflow-y: auto; }
.property-management-modal::-webkit-scrollbar { width: 8px; }
.property-management-modal::-webkit-scrollbar-track { background: #374151; border-radius: 4px; }
.property-management-modal::-webkit-scrollbar-thumb { background: #6b7280; border-radius: 4px; }
.property-management-modal::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Boutons de filtre immobilier */
.property-filter-btn {
  padding: 0.5rem 1rem;
  background-color: #374151;
  color: #9ca3af;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.property-filter-btn:hover {
  background-color: #4b5563;
  color: #f3f4f6;
  border-color: #6b7280;
}

.property-filter-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Interface intégrée */
main { min-height: 100vh; display: flex; flex-direction: column; }
#multiplayer-sidebar { flex-shrink: 0; height: auto !important; max-height: 70px !important; min-height: 50px !important; overflow: hidden; }
.player-card { min-width: 180px; flex-shrink: 0; }
#multiplayer-sidebar .bg-blue-600, #multiplayer-sidebar .bg-orange-600, #multiplayer-sidebar .bg-green-600, #multiplayer-sidebar .bg-red-600, #multiplayer-sidebar .bg-gray-700 { border-radius: 4px; font-weight: 600; font-size: 0.75rem; padding: 4px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.performance-excellent { color: #10b981; font-weight: 600; text-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
.performance-good { color: #3b82f6; font-weight: 500; }
.performance-neutral { color: #9ca3af; }
#end-turn-btn { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25); transition: all 0.3s ease; }
#end-turn-btn:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4); transform: translateY(-2px); }
#end-turn-btn:disabled { background: #6b7280; box-shadow: none; transform: none; }
@media (max-width: 1200px) { #players-list { flex-wrap: wrap; gap: 8px; } .player-card { min-width: 160px; } #multiplayer-sidebar .max-w-7xl { padding: 0 1rem; } }
@media (max-width: 768px) { #multiplayer-sidebar .flex.items-center.justify-between { flex-direction: column; align-items: flex-start; gap: 12px; } #multiplayer-sidebar .flex.items-center.space-x-6 { flex-wrap: wrap; gap: 8px; } }
#global-turn { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; padding: 4px 12px; border-radius: 20px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); animation: pulseGlow 2s ease-in-out infinite alternate; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4); } 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.6); } }
.player-tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.9); color: white; padding: 8px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.player-card:hover .player-tooltip { opacity: 1; }
@media (max-width: 768px) { #multiplayer-sidebar .flex { flex-direction: column; gap: 12px; } #players-list { flex-wrap: wrap; gap: 8px; } .player-card { min-width: 200px; } }