styles.css 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @keyframes fadeIn {
  2. from { opacity: 0; }
  3. to { opacity: 1; }
  4. }
  5. @keyframes slideUp {
  6. from { transform: translateY(10px); opacity: 0; }
  7. to { transform: translateY(0); opacity: 1; }
  8. }
  9. /* Toast personalizado */
  10. #toast {
  11. top: 2rem;
  12. right: 2rem;
  13. min-width: 220px;
  14. max-width: 320px;
  15. background: #22c55e; /* verde por defecto */
  16. color: #fff;
  17. box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
  18. border-radius: 0.75rem;
  19. z-index: 9999;
  20. transition: transform 0.3s, background 0.2s;
  21. animation: fadeIn 0.3s;
  22. position: fixed;
  23. display: flex;
  24. align-items: center;
  25. gap: 0.75rem;
  26. padding: 0.75rem 1.5rem;
  27. }
  28. #toast.bg-green-500 { background: #22c55e; }
  29. #toast.bg-red-500 { background: #ef4444; }
  30. #toast.bg-blue-500 { background: #3b82f6; }
  31. #toast.translate-x-full { transform: translateX(120%); }
  32. /* Tooltip personalizado */
  33. .custom-tooltip {
  34. position: absolute;
  35. z-index: 50;
  36. background: #222;
  37. color: #fff;
  38. padding: 0.25rem 0.75rem;
  39. border-radius: 0.375rem;
  40. font-size: 0.875rem;
  41. white-space: pre-line;
  42. box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  43. opacity: 0;
  44. pointer-events: none;
  45. transition: opacity 0.15s;
  46. }
  47. .custom-tooltip.visible {
  48. opacity: 1;
  49. }
  50. /* Mejoras para dark mode */
  51. .dark .text-gray-900 { color: #f3f4f6 !important; }
  52. .dark .text-gray-700 { color: #d1d5db !important; }
  53. .dark .text-gray-600 { color: #9ca3af !important; }
  54. .dark .text-gray-500 { color: #6b7280 !important; }
  55. .dark .bg-white { background-color: #1f2937 !important; }
  56. .dark .border-gray-200 { border-color: #374151 !important; }
  57. .dark .border-gray-300 { border-color: #4b5563 !important; }
  58. .dark .bg-gray-50 { background-color: #111827 !important; }
  59. .dark .bg-blue-100 { background-color: #1e40af !important; }
  60. .dark .bg-red-100 { background-color: #7f1d1d !important; }
  61. .dark .bg-blue-900\/20 { background-color: rgba(30,64,175,0.2) !important; }
  62. .dark .bg-blue-900\/30 { background-color: rgba(30,64,175,0.3) !important; }
  63. .dark .bg-blue-900\/50 { background-color: rgba(30,64,175,0.5) !important; }
  64. .dark .bg-red-900\/30 { background-color: rgba(127,29,29,0.3) !important; }
  65. .dark .bg-red-900\/50 { background-color: rgba(127,29,29,0.5) !important; }
  66. /* Truncado de texto */
  67. .truncate {
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. white-space: nowrap;
  71. max-width: 180px;
  72. display: inline-block;
  73. vertical-align: bottom;
  74. }