styles.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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. }
  75. /* Custom styles for the Flask Temporary File Upload application */
  76. /* Dark mode compatibility */
  77. .dark .bg-white {
  78. background-color: #1f2937;
  79. }
  80. .dark .text-gray-900 {
  81. color: #f9fafb;
  82. }
  83. .dark .text-gray-600 {
  84. color: #d1d5db;
  85. }
  86. .dark .border-gray-300 {
  87. border-color: #4b5563;
  88. }
  89. /* Fancybox Dark Theme Customization */
  90. .fancybox__backdrop {
  91. background: rgba(0, 0, 0, 0.9) !important;
  92. backdrop-filter: blur(10px) !important;
  93. }
  94. .fancybox__container {
  95. --fancybox-bg: transparent;
  96. --fancybox-color: #ffffff;
  97. }
  98. .fancybox__content {
  99. background: transparent !important;
  100. border-radius: 12px !important;
  101. overflow: hidden !important;
  102. box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
  103. }
  104. .fancybox__image {
  105. border-radius: 8px !important;
  106. box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6) !important;
  107. }
  108. .fancybox__toolbar {
  109. background: rgba(0, 0, 0, 0.8) !important;
  110. backdrop-filter: blur(10px) !important;
  111. border-radius: 8px !important;
  112. margin: 10px !important;
  113. border: 1px solid rgba(255, 255, 255, 0.1) !important;
  114. }
  115. .fancybox__button {
  116. background: rgba(255, 255, 255, 0.1) !important;
  117. border: 1px solid rgba(255, 255, 255, 0.2) !important;
  118. color: white !important;
  119. border-radius: 6px !important;
  120. transition: all 0.2s ease !important;
  121. margin: 2px !important;
  122. }
  123. .fancybox__button:hover {
  124. background: rgba(255, 255, 255, 0.2) !important;
  125. border-color: rgba(255, 255, 255, 0.4) !important;
  126. transform: translateY(-1px) !important;
  127. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  128. }
  129. .fancybox__button svg {
  130. color: white !important;
  131. filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
  132. }
  133. .fancybox__infobar {
  134. background: rgba(0, 0, 0, 0.8) !important;
  135. color: white !important;
  136. border-radius: 6px !important;
  137. padding: 8px 12px !important;
  138. margin: 10px !important;
  139. backdrop-filter: blur(10px) !important;
  140. border: 1px solid rgba(255, 255, 255, 0.1) !important;
  141. }
  142. .fancybox__caption {
  143. background: rgba(0, 0, 0, 0.8) !important;
  144. color: white !important;
  145. border-radius: 0 0 12px 12px !important;
  146. backdrop-filter: blur(10px) !important;
  147. border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  148. text-align: center !important;
  149. font-size: 14px !important;
  150. font-weight: 500 !important;
  151. line-height: 1.4 !important;
  152. }
  153. .fancybox__nav .fancybox__button {
  154. background: rgba(255, 255, 255, 0.1) !important;
  155. border-radius: 50% !important;
  156. width: 48px !important;
  157. height: 48px !important;
  158. backdrop-filter: blur(10px) !important;
  159. }
  160. .fancybox__nav .fancybox__button:hover {
  161. background: rgba(255, 255, 255, 0.2) !important;
  162. transform: scale(1.1) !important;
  163. }
  164. /* Dark mode specific adjustments */
  165. .dark .fancybox__backdrop {
  166. background: rgba(0, 0, 0, 0.95) !important;
  167. }
  168. .dark .fancybox__toolbar {
  169. background: rgba(17, 24, 39, 0.9) !important;
  170. border-color: rgba(75, 85, 99, 0.3) !important;
  171. }
  172. .dark .fancybox__infobar {
  173. background: rgba(17, 24, 39, 0.9) !important;
  174. border-color: rgba(75, 85, 99, 0.3) !important;
  175. }
  176. .dark .fancybox__caption {
  177. background: rgba(17, 24, 39, 0.9) !important;
  178. border-top-color: rgba(75, 85, 99, 0.3) !important;
  179. }
  180. /* Responsive adjustments */
  181. @media (max-width: 768px) {
  182. .fancybox__nav .fancybox__button {
  183. width: 44px !important;
  184. height: 44px !important;
  185. }
  186. .fancybox__toolbar {
  187. margin: 5px !important;
  188. padding: 5px !important;
  189. }
  190. .fancybox__button {
  191. padding: 6px !important;
  192. margin: 1px !important;
  193. }
  194. }
  195. /* Image hover effects */
  196. .image-preview-container {
  197. position: relative;
  198. overflow: hidden;
  199. border-radius: 0.5rem;
  200. }
  201. .image-preview-overlay {
  202. position: absolute;
  203. top: 0;
  204. left: 0;
  205. right: 0;
  206. bottom: 0;
  207. background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  208. opacity: 0;
  209. transition: opacity 0.3s ease;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. border-radius: 0.5rem;
  214. }
  215. .image-preview-container:hover .image-preview-overlay {
  216. opacity: 1;
  217. }
  218. .zoom-icon {
  219. background: rgba(255, 255, 255, 0.9);
  220. border-radius: 50%;
  221. padding: 0.5rem;
  222. box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  223. transform: scale(0.8);
  224. transition: transform 0.2s ease;
  225. }
  226. .image-preview-container:hover .zoom-icon {
  227. transform: scale(1);
  228. }