styles.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. z-index: 9999 !important;
  98. }
  99. .fancybox__content {
  100. background: transparent !important;
  101. border-radius: 12px !important;
  102. overflow: hidden !important;
  103. box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
  104. }
  105. .fancybox__image {
  106. border-radius: 8px !important;
  107. box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6) !important;
  108. }
  109. .fancybox__toolbar {
  110. background: rgba(0, 0, 0, 0.8) !important;
  111. backdrop-filter: blur(10px) !important;
  112. border-radius: 8px !important;
  113. margin: 10px !important;
  114. border: 1px solid rgba(255, 255, 255, 0.1) !important;
  115. }
  116. .fancybox__button {
  117. background: rgba(255, 255, 255, 0.1) !important;
  118. border: 1px solid rgba(255, 255, 255, 0.2) !important;
  119. color: white !important;
  120. border-radius: 6px !important;
  121. transition: all 0.2s ease !important;
  122. margin: 2px !important;
  123. }
  124. .fancybox__button:hover {
  125. background: rgba(255, 255, 255, 0.2) !important;
  126. border-color: rgba(255, 255, 255, 0.4) !important;
  127. transform: translateY(-1px) !important;
  128. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  129. }
  130. .fancybox__button svg {
  131. color: white !important;
  132. filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
  133. }
  134. .fancybox__infobar {
  135. background: rgba(0, 0, 0, 0.8) !important;
  136. color: white !important;
  137. border-radius: 6px !important;
  138. padding: 8px 12px !important;
  139. margin: 10px !important;
  140. backdrop-filter: blur(10px) !important;
  141. border: 1px solid rgba(255, 255, 255, 0.1) !important;
  142. }
  143. .fancybox__caption {
  144. background: rgba(0, 0, 0, 0.8) !important;
  145. color: white !important;
  146. border-radius: 0 0 12px 12px !important;
  147. backdrop-filter: blur(10px) !important;
  148. border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  149. text-align: center !important;
  150. font-size: 14px !important;
  151. font-weight: 500 !important;
  152. line-height: 1.4 !important;
  153. }
  154. .fancybox__nav .fancybox__button {
  155. background: rgba(255, 255, 255, 0.1) !important;
  156. border-radius: 50% !important;
  157. width: 48px !important;
  158. height: 48px !important;
  159. backdrop-filter: blur(10px) !important;
  160. }
  161. .fancybox__nav .fancybox__button:hover {
  162. background: rgba(255, 255, 255, 0.2) !important;
  163. transform: scale(1.1) !important;
  164. }
  165. /* GLightbox Custom Styles */
  166. .glightbox-container {
  167. z-index: 9999 !important;
  168. }
  169. .glightbox-clean .goverlay {
  170. background: rgba(0, 0, 0, 0.9) !important;
  171. backdrop-filter: blur(10px);
  172. }
  173. .glightbox-clean .gslide-media {
  174. border-radius: 8px;
  175. box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  176. }
  177. .glightbox-clean .gnext,
  178. .glightbox-clean .gprev {
  179. background: rgba(0, 0, 0, 0.8) !important;
  180. backdrop-filter: blur(10px);
  181. border-radius: 50% !important;
  182. width: 50px !important;
  183. height: 50px !important;
  184. color: white !important;
  185. transition: all 0.3s ease !important;
  186. }
  187. .glightbox-clean .gnext:hover,
  188. .glightbox-clean .gprev:hover {
  189. background: rgba(0, 0, 0, 0.9) !important;
  190. transform: scale(1.1);
  191. }
  192. .glightbox-clean .gclose {
  193. background: rgba(0, 0, 0, 0.8) !important;
  194. backdrop-filter: blur(10px);
  195. border-radius: 50% !important;
  196. color: white !important;
  197. transition: all 0.3s ease !important;
  198. }
  199. .glightbox-clean .gclose:hover {
  200. background: rgba(0, 0, 0, 0.9) !important;
  201. transform: scale(1.1);
  202. }
  203. /* Video play button overlay */
  204. .video-preview-overlay {
  205. position: absolute;
  206. top: 50%;
  207. left: 50%;
  208. transform: translate(-50%, -50%);
  209. background: rgba(0, 0, 0, 0.7);
  210. border-radius: 50%;
  211. width: 80px;
  212. height: 80px;
  213. display: flex;
  214. align-items: center;
  215. justify-content: center;
  216. transition: all 0.3s ease;
  217. backdrop-filter: blur(10px);
  218. }
  219. .video-preview-overlay:hover {
  220. background: rgba(0, 0, 0, 0.8);
  221. transform: translate(-50%, -50%) scale(1.1);
  222. }
  223. .video-preview-overlay svg {
  224. width: 32px;
  225. height: 32px;
  226. color: white;
  227. margin-left: 4px; /* Slight offset for play icon */
  228. }
  229. /* PDF Modal Styles */
  230. .pdf-modal {
  231. z-index: 10000;
  232. }
  233. .pdf-modal iframe {
  234. background: white;
  235. border-radius: 4px;
  236. }
  237. /* Dark mode specific adjustments */
  238. .dark .fancybox__backdrop {
  239. background: rgba(0, 0, 0, 0.95) !important;
  240. }
  241. .dark .fancybox__toolbar {
  242. background: rgba(17, 24, 39, 0.9) !important;
  243. border-color: rgba(75, 85, 99, 0.3) !important;
  244. }
  245. .dark .fancybox__infobar {
  246. background: rgba(17, 24, 39, 0.9) !important;
  247. border-color: rgba(75, 85, 99, 0.3) !important;
  248. }
  249. .dark .fancybox__caption {
  250. background: rgba(17, 24, 39, 0.9) !important;
  251. border-top-color: rgba(75, 85, 99, 0.3) !important;
  252. }
  253. .dark .glightbox-clean .goverlay {
  254. background: rgba(0, 0, 0, 0.95) !important;
  255. }
  256. .dark .video-preview-overlay {
  257. background: rgba(17, 24, 39, 0.8);
  258. }
  259. .dark .video-preview-overlay:hover {
  260. background: rgba(17, 24, 39, 0.9);
  261. }
  262. /* Responsive adjustments */
  263. @media (max-width: 768px) {
  264. .fancybox__nav .fancybox__button {
  265. width: 44px !important;
  266. height: 44px !important;
  267. }
  268. .fancybox__toolbar {
  269. margin: 5px !important;
  270. padding: 5px !important;
  271. }
  272. .fancybox__button {
  273. padding: 6px !important;
  274. margin: 1px !important;
  275. }
  276. .glightbox-clean .gnext,
  277. .glightbox-clean .gprev {
  278. width: 40px !important;
  279. height: 40px !important;
  280. }
  281. .video-preview-overlay {
  282. width: 60px;
  283. height: 60px;
  284. }
  285. .video-preview-overlay svg {
  286. width: 24px;
  287. height: 24px;
  288. }
  289. }
  290. /* Image hover effects */
  291. .image-preview-container {
  292. position: relative;
  293. overflow: hidden;
  294. border-radius: 0.5rem;
  295. }
  296. .image-preview-overlay {
  297. position: absolute;
  298. top: 0;
  299. left: 0;
  300. right: 0;
  301. bottom: 0;
  302. background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  303. opacity: 0;
  304. transition: opacity 0.3s ease;
  305. display: flex;
  306. align-items: center;
  307. justify-content: center;
  308. border-radius: 0.5rem;
  309. }
  310. .image-preview-container:hover .image-preview-overlay {
  311. opacity: 1;
  312. }
  313. .zoom-icon {
  314. background: rgba(255, 255, 255, 0.9);
  315. border-radius: 50%;
  316. padding: 0.5rem;
  317. box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  318. transform: scale(0.8);
  319. transition: transform 0.2s ease;
  320. }
  321. .image-preview-container:hover .zoom-icon {
  322. transform: scale(1);
  323. }