Spaces:
Running
Running
File size: 27,668 Bytes
a47b0ee 6b6e452 a47b0ee 79c3804 a47b0ee c303852 a47b0ee c303852 a47b0ee c303852 a47b0ee c303852 a47b0ee 6b6e452 a47b0ee 6b6e452 a47b0ee 6b6e452 a47b0ee c303852 a47b0ee c303852 a47b0ee 6b6e452 a47b0ee c303852 a47b0ee 6b6e452 a47b0ee 6b6e452 a47b0ee 2b0f5b9 5bb997f a47b0ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 |
/* Use Inter font */
html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; }
}
/* --- Base Futuristic Theme --- */
body {
/* background-color: #0f172a; */ /* slate-900 - Old background */
background-color: #02040a; /* Deepest space blue/black */
background-image: radial-gradient(ellipse at center,
#1a2035 0%, /* Inner glow - dark indigo */
#0f172a 40%, /* Mid-tone slate/blue */
#02040a 75% /* Fading to deep space */
);
background-attachment: fixed; /* Keeps the gradient fixed during scroll */
color: #cbd5e1; /* slate-300 */
overflow: hidden; /* Prevent body scroll, manage scrolling in sections */
min-height: 100vh; /* Ensure gradient covers full viewport height */
}
/* Apply justify-center to main-content when CTA is active */
#main-content.justify-center-cta-active {
justify-content: center;
}
/* --- Layout Heights --- */
:root {
--history-panel-expanded-height: 12rem; /* 192px */
--history-panel-collapsed-height: 0rem; /* Can be 0 or a small value for a visible collapsed bar */
--history-panel-toggle-button-height: 2.5rem; /* Height of the toggle button area */
--history-panel-current-height: var(--history-panel-collapsed-height); /* Initial state: collapsed */
}
#main-content {
height: calc(100vh - var(--history-panel-current-height) - var(--history-panel-toggle-button-height));
overflow-y: auto;
width: 100%;
margin-left: 0;
transition: height 0.3s ease-in-out;
}
/* Hide scrollbar for specific elements */
#history-panel::-webkit-scrollbar { display: none; }
#history-panel { -ms-overflow-style: none; scrollbar-width: none; }
/* Custom scrollbar for main content */
#main-content::-webkit-scrollbar { width: 8px; }
#main-content::-webkit-scrollbar-track { background: rgba(51, 65, 85, 0.5); border-radius: 10px; }
#main-content::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }
#main-content::-webkit-scrollbar-thumb:hover { background: #64748b; }
/* History Panel Scrollbar */
#history-panel::-webkit-scrollbar { height: 6px; background-color: rgba(30, 41, 59, 0.5); }
#history-panel::-webkit-scrollbar-thumb { background-color: #475569; border-radius: 3px; }
#history-panel::-webkit-scrollbar-thumb:hover { background-color: #64748b; }
#history-panel { scrollbar-width: thin; scrollbar-color: #475569 rgba(30, 41, 59, 0.5); }
/* Code output styling in config modal */
#code-output-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem; /* mb-2 */
}
#copy-code-button {
background-color: #334155; /* slate-700 */
color: #94a3b8; /* slate-400 */
padding: 0.25rem 0.75rem; /* py-1 px-3 */
font-size: 0.75rem; /* text-xs */
border-radius: 0.375rem; /* rounded-md */
transition: background-color 0.2s, color 0.2s;
line-height: 1; /* Ensure icon is vertically centered */
}
#copy-code-button:hover {
background-color: #475569; /* slate-600 */
color: #cbd5e1; /* slate-300 */
}
#copy-code-button.copied {
background-color: #059669; /* emerald-600 */
color: white;
}
#export-code-button {
background-color: #334155; /* slate-700 */
color: #94a3b8; /* slate-400 */
padding: 0.25rem 0.75rem; /* py-1 px-3 */
font-size: 0.75rem; /* text-xs */
border-radius: 0.375rem; /* rounded-md */
transition: background-color 0.2s, color 0.2s, opacity 0.2s;
line-height: 1; /* Ensure icon is vertically centered */
}
#export-code-button:hover:not(:disabled) {
background-color: #475569; /* slate-600 */
color: #cbd5e1; /* slate-300 */
}
#export-code-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#code-output-container {
margin-top: 0.25rem;
height: 300px;
overflow-y: auto;
background-color: #020617;
border: 1px solid #334155;
border-radius: 0.375rem;
padding: 1rem;
scrollbar-width: thin;
scrollbar-color: #475569 rgba(30, 41, 59, 0.5);
}
#code-output-container::-webkit-scrollbar {
width: 6px; display: block;
}
#code-output-container::-webkit-scrollbar-track {
background: rgba(51, 65, 85, 0.3); border-radius: 3px;
}
#code-output-container::-webkit-scrollbar-thumb {
background: #475569; border-radius: 3px;
}
#code-output-container::-webkit-scrollbar-thumb:hover {
background: #64748b;
}
#code-output {
font-family: monospace;
color: #94a3b8;
white-space: pre-wrap;
word-wrap: break-word;
}
#code-output code.language-html {
font-size: 9pt;
color: #e2e8f0;
}
/* Preview frame styling */
.preview-frame {
width: 100%; height: 100%; flex-grow: 1; border: none;
background-color: #ffffff;
}
.preview-loader {
position: absolute; top: 0; left: 0; right: 0; bottom: 0;
background-color: rgba(15, 23, 42, 0.7);
display: flex; align-items: center; justify-content: center; z-index: 10;
}
/* Spinner */
.spinner {
width: 2rem; height: 2rem;
border: 4px solid rgba(71, 85, 105, 0.3);
border-left-color: #22d3ee; /* cyan-400 */
border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Refinement loading */
#refinement-loading-indicator {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
background-color: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(5px); color: #e2e8f0;
padding: 1rem 1.5rem; border-radius: 0.5rem;
z-index: 1000; display: none; align-items: center; gap: 0.75rem;
border: 1px solid #334155; box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}
#refinement-loading-indicator svg { color: #22d3ee; }
/* Slider value */
#interval-value, #num-variations-value { font-weight: 600; color: #22d3ee; }
/* Config Button (replaces sidebar toggle) */
#top-left-controls {
position: fixed; top: 1rem; left: 1rem; z-index: 60;
display: flex;
gap: 0.5rem; /* Space between buttons */
}
#config-button, #new-button, #show-prompt-modal-button {
background-color: rgba(51, 65, 85, 0.7);
backdrop-filter: blur(5px); border-radius: 9999px; padding: 0.5rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.3); cursor: pointer;
border: 1px solid #475569;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
display: flex; /* Center icon */
align-items: center;
justify-content: center;
}
#config-button:hover, #new-button:hover, #show-prompt-modal-button:hover {
background-color: rgba(71, 85, 105, 0.8);
box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}
#config-button svg, #new-button svg, #show-prompt-modal-button svg {
width: 1.25rem; height: 1.25rem; color: #94a3b8; transition: color 0.2s;
}
#config-button:hover svg, #new-button:hover svg, #show-prompt-modal-button:hover svg {
color: #22d3ee;
}
/* Full Screen Overlay */
#fullscreen-overlay {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
background-color: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(8px); z-index: 900; display: flex; flex-direction: column;
padding: 1rem; box-sizing: border-box; opacity: 0; visibility: hidden;
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
#fullscreen-overlay.visible { opacity: 1; visibility: visible; }
#fullscreen-iframe {
flex-grow: 1; width: 100%; height: 100%; border: 1px solid #334155;
border-radius: 0.5rem; background-color: white;
margin-top: 3rem; /* Add space for top buttons */
}
#exit-fullscreen-btn {
position: absolute; top: 1.5rem; right: 1.5rem; z-index: 955; /* Above nav buttons */
background-color: #ef4444; color: white;
}
#exit-fullscreen-btn:hover { background-color: #dc2626; }
/* Fullscreen History Navigation Buttons */
#fullscreen-history-nav {
position: absolute;
top: 1.5rem;
left: 50%;
transform: translateX(-50%);
z-index: 950; /* Below exit button, above iframe */
display: none; /* Hidden by default */
gap: 1rem;
}
#fullscreen-history-nav.visible {
display: flex; /* Show when needed */
}
#fullscreen-history-nav button {
background-color: rgba(51, 65, 85, 0.8); /* slate-700/80 */
color: #cbd5e1; /* slate-300 */
border: 1px solid #64748b; /* slate-500 */
padding: 0.5rem 1rem; /* py-2 px-4 */
border-radius: 0.375rem; /* rounded-md */
font-size: 0.875rem; /* text-sm */
font-weight: 500;
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#fullscreen-history-nav button:hover:not(:disabled) {
background-color: rgba(71, 85, 105, 0.9); /* slate-600/90 */
border-color: #94a3b8; /* slate-400 */
color: #fff;
}
#fullscreen-history-nav button:disabled {
background-color: rgba(51, 65, 85, 0.5);
border-color: #475569; /* slate-600 */
color: #64748b; /* slate-500 */
cursor: not-allowed;
opacity: 0.6;
}
body.fullscreen-active #top-left-controls { opacity: 0; pointer-events: none; }
body.fullscreen-active #main-content { overflow: hidden; }
body.fullscreen-active #history-panel { display: none; }
/* Perspective Grid Styles (for 4 variations) */
#perspective-viewport {
flex-grow: 1; min-height: 0; display: flex;
justify-content: center;
padding: 0.5rem;
perspective: 1500px;
overflow: hidden;
}
#preview-grid-wrapper {
display: grid;
width: 98%; max-width: 1200px;
height: 95%;
transition: transform 0.5s ease-out;
}
#preview-grid-wrapper.grid-mode {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, 1fr); gap: 1.5rem;
transform-style: preserve-3d;
transform: rotateX(10deg) rotateY(0deg) scale(0.95);
}
#preview-grid-wrapper.single-mode {
grid-template-columns: 1fr;
grid-template-rows: 1fr; gap: 0;
transform: none;
width: 100%; height: 100%; max-width: none; aspect-ratio: unset;
}
.preview-item-perspective {
background-color: rgba(51, 65, 85, 0.6);
backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
border-radius: 0.75rem;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 5px rgba(34, 211, 238, 0.1);
display: flex; flex-direction: column; overflow: hidden;
transform-style: preserve-3d;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
border: 1px solid #475569;
height: 100%; /* Added to fill grid cell height */
}
.preview-item-perspective:hover:not(.selected) {
transform: translateY(-8px) scale(1.03) translateZ(5px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(34, 211, 238, 0.2);
border-color: #64748b;
}
.preview-item-perspective.selected {
border-color: #22d3ee;
transform: scale(1.06) translateZ(20px);
box-shadow: 0 15px 40px rgba(34, 211, 238, 0.3), 0 0 25px rgba(34, 211, 238, 0.4), inset 0 0 10px rgba(34, 211, 238, 0.2);
z-index: 5;
}
.preview-header {
padding: 0.6rem 1rem; border-bottom: 1px solid #475569;
display: flex; justify-content: space-between; align-items: center;
flex-shrink: 0; background-color: rgba(71, 85, 105, 0.5);
}
.preview-header-title {
font-size: 0.9rem; font-weight: 600; color: #e2e8f0;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-header-buttons { display: flex; align-items: center; gap: 0.5rem; }
.preview-header-buttons button, .preview-header-buttons .fullscreen-btn {
padding: 0.25rem 0.5rem; border-radius: 0.375rem;
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.preview-header-buttons .fullscreen-btn { color: #94a3b8; }
.preview-header-buttons .fullscreen-btn:hover:not(:disabled) {
color: #22d3ee; background-color: rgba(51, 65, 85, 0.7);
}
.preview-header-buttons .fullscreen-btn:disabled { color: #475569; cursor: not-allowed; }
.preview-body {
position: relative; flex-grow: 1; min-height: 0;
display: flex; overflow: hidden;
}
.single-preview-item {
width: 100%; height: 100%;
background-color: rgba(30, 41, 59, 0.5);
border: 1px solid #334155;
border-radius: 0.5rem;
display: flex; flex-direction: column; overflow: hidden;
}
/* Futuristic input/select styles */
.futuristic-input, .futuristic-select {
background-color: rgba(30, 41, 59, 0.8); border: 1px solid #475569;
color: #e2e8f0; border-radius: 0.375rem;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
transition: border-color 0.2s, box-shadow 0.2s;
padding: 0.5rem 0.75rem;
}
.futuristic-input::placeholder { color: #64748b; }
.futuristic-input:focus, .futuristic-select:focus {
outline: none; border-color: #22d3ee;
box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.3), inset 0 1px 2px rgba(0,0,0,0.2);
}
.futuristic-select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.5rem center;
background-size: 1.2em 1.2em;
padding-right: 2.5rem;
}
/* Futuristic button styles */
.futuristic-button {
background-color: #0e7490; color: #f0f9ff;
font-weight: 500; border-radius: 0.375rem;
transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
box-shadow: 0 2px 5px rgba(0,0,0,0.2), 0 0 0 0 rgba(34, 211, 238, 0.0);
}
.futuristic-button:hover:not(:disabled) {
background-color: #0891b2;
box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 10px 2px rgba(34, 211, 238, 0.3);
transform: translateY(-1px);
}
.futuristic-button:active:not(:disabled) {
transform: translateY(0px);
box-shadow: 0 2px 5px rgba(0,0,0,0.2), 0 0 5px 1px rgba(34, 211, 238, 0.2);
}
.futuristic-button:disabled {
background-color: #334155; color: #64748b;
cursor: not-allowed; opacity: 0.7;
}
.futuristic-button.selected-state {
background-color: #059669;
}
.futuristic-button.selected-state:hover:not(:disabled) {
background-color: #047857;
box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 10px 2px rgba(16, 185, 129, 0.3);
}
/* Range slider styling */
input[type="range"].futuristic-slider {
-webkit-appearance: none; appearance: none; width: 100%; height: 8px;
background: #334155; border-radius: 5px; outline: none;
opacity: 0.9; transition: opacity .2s;
}
input[type="range"].futuristic-slider:hover { opacity: 1; }
input[type="range"].futuristic-slider::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none; width: 18px; height: 18px;
background: #22d3ee; border-radius: 50%; cursor: pointer;
border: 2px solid #0f172a; box-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
}
input[type="range"].futuristic-slider::-moz-range-thumb {
width: 18px; height: 18px; background: #22d3ee;
border-radius: 50%; cursor: pointer; border: 2px solid #0f172a;
box-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
}
/* --- History Panel (Bottom) --- */
#history-panel-controls {
height: var(--history-panel-toggle-button-height);
display: flex;
align-items: center;
justify-content: center; /* Center the group */
gap: 1rem; /* Space between nav arrows and toggle */
background-color: rgba(15, 23, 42, 0.9); /* Match history panel bg */
border-top: 1px solid #334155; /* Match history panel border */
position: relative; /* For potential absolute positioning of button if needed or pseudo-elements */
z-index: 51; /* Above history panel content, below modals */
}
#history-toggle-button {
background-color: rgba(51, 65, 85, 0.7); /* slate-700 with alpha */
border: 1px solid #475569; /* slate-600 */
border-radius: 9999px; /* pill shape */
padding: 0.375rem; /* py-1.5 px-1.5 (adjust based on icon size) */
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #94a3b8; /* slate-400 for icon */
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
#history-toggle-button:hover {
background-color: rgba(71, 85, 105, 0.8);
color: #cbd5e1; /* slate-300 */
box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}
#history-toggle-button svg {
width: 1.25rem; /* w-5 */
height: 1.25rem; /* h-5 */
}
#history-panel {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--history-panel-current-height); /* Use CSS variable */
background-color: rgba(15, 23, 42, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
/* border-top: 1px solid #334155; Removed as controls has it now */
padding: 1rem 2rem; /* Add more horizontal padding for fan effect */
z-index: 50;
overflow-x: auto;
overflow-y: hidden;
display: flex;
align-items: center;
/* gap: 1rem; Remove fixed gap, overlaps will be handled by transforms */
transition: height 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out;
opacity: 1;
perspective: 1000px; /* Add perspective for 3D transforms */
}
#history-panel.history-collapsed {
/* height is controlled by --history-panel-current-height via JS */
padding-top: 0;
padding-bottom: 0;
opacity: 0;
overflow: hidden; /* Ensure content is clipped during collapse */
}
/* Hide thumbnails when panel is collapsed to prevent interaction/layout issues */
#history-panel.history-collapsed .history-thumbnail-item,
#history-panel.history-collapsed #history-panel-placeholder {
display: none;
}
.history-thumbnail-item {
position: relative; /* Keep for z-index */
flex-shrink: 0;
width: 10rem;
height: 7.5rem;
background-color: rgba(51, 65, 85, 0.5);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid #475569;
border-radius: 0.5rem;
box-shadow: 0 6px 18px rgba(0,0,0,0.35),
inset 0 0 8px rgba(34, 211, 238, 0.15),
0 0 2px rgba(34,211,238,0.1);
display: flex;
flex-direction: column;
overflow: hidden;
/* transform-style: preserve-3d; Remove this */
/* transform: perspective(600px) rotateY(-8deg) rotateX(3deg) translateZ(-15px); Remove static transform */
transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
border-color 0.3s ease,
z-index 0.7s ease; /* Add z-index transition */
/* Add margin to handle potential overlap calculations if needed, maybe negative */
margin-left: -30px; /* Example: Pull items closer together */
}
/* Pull first item back to the left */
.history-thumbnail-item:first-child {
margin-left: 0;
}
.history-thumbnail-item:hover {
/* transform: perspective(600px) rotateY(-3deg) rotateX(1deg) translateZ(0px) scale(1.08); */ /* Remove old hover transform */
transform: translateY(-15px) scale(1.15) rotate(0deg); /* Bring up, scale, and un-rotate on hover */
box-shadow: 0 15px 40px rgba(0,0,0,0.5),
inset 0 0 12px rgba(34, 211, 238, 0.25),
0 0 15px rgba(34,211,238,0.4);
border-color: #22d3ee;
z-index: 100; /* Ensure hovered item is on top */
}
.history-thumbnail-item.active-history-item {
border-color: #22d3ee;
/* transform: perspective(600px) rotateY(-4deg) rotateX(2deg) translateZ(0px) scale(1.06); */ /* Remove old active transform */
box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3),
inset 0 0 15px rgba(34, 211, 238, 0.3),
0 0 10px rgba(34,211,238,0.4);
/* Active item might need slightly different base transform/z-index set by JS */
z-index: 50; /* Ensure active is above others but below hover */
}
.history-thumbnail-preview-container {
width: 100%;
height: calc(100% - 2rem);
overflow: hidden;
position: relative;
border-bottom: 1px solid #334155;
cursor: pointer;
}
.history-thumbnail-preview {
width: 400%;
height: 400%;
transform: scale(0.25);
transform-origin: 0 0;
border: none;
pointer-events: none;
background-color: #fff;
}
.history-thumbnail-title {
font-size: 0.65rem;
color: #cbd5e1;
padding: 0.25rem 0.5rem;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.25rem;
cursor: pointer;
}
.history-thumbnail-fullscreen-btn {
position: absolute;
top: 0.25rem;
right: 0.25rem;
padding: 0.15rem;
border-radius: 0.25rem;
background-color: rgba(30, 41, 59, 0.6);
color: #94a3b8;
opacity: 0;
transition: opacity 0.2s ease-in-out, background-color 0.2s, color 0.2s;
z-index: 15;
cursor: pointer;
}
.history-thumbnail-item:hover .history-thumbnail-fullscreen-btn {
opacity: 1;
}
.history-thumbnail-fullscreen-btn:hover {
background-color: rgba(51, 65, 85, 0.8);
color: #e2e8f0;
}
.history-thumbnail-fullscreen-btn svg {
width: 0.75rem;
height: 0.75rem;
}
#history-panel-placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
color: #64748b;
font-size: 0.875rem;
}
/* --- Modal Animation Effects --- */
@keyframes fadeInDistort {
from {
opacity: 0;
transform: scale(0.9) skewY(3deg);
}
to {
opacity: 1;
transform: scale(1) skewY(0deg);
}
}
@keyframes fadeOutDistort {
from {
opacity: 1;
transform: scale(1) skewY(0deg);
}
to {
opacity: 0;
transform: scale(0.95) skewY(-2deg);
}
}
.modal-anim-fade-in {
animation: fadeInDistort 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.modal-anim-fade-out {
animation: fadeOutDistort 0.3s cubic-bezier(0.75, 0.2, 0.75, 0.2) forwards;
}
/* --- Modals (Prompt & Config) --- */
.modal-overlay { /* Common class for overlays */
position: fixed;
inset: 0;
background-color: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
padding: 2rem;
opacity: 0; /* Start transparent for animation */
}
.modal-overlay.visible {
display: flex;
opacity: 1;
}
.modal-content { /* Common class for content box */
background-color: #1e293b;
padding: 1.5rem 2rem;
border-radius: 0.75rem;
border: 1px solid #334155;
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
width: 100%;
max-width: 42rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
#modal-user-prompt { /* Specific to prompt modal */
min-height: 100px;
resize: vertical;
}
.modal-button-secondary {
background-color: #334155;
color: #cbd5e1;
border: 1px solid #475569;
}
.modal-button-secondary:hover:not(:disabled) {
background-color: #475569;
border-color: #64748b;
color: #fff;
}
.history-nav-button {
background-color: transparent; /* Make nav buttons less prominent */
border: none;
border-radius: 9999px;
padding: 0.375rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #64748b; /* slate-500 for icon, less prominent */
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.history-nav-button:hover:not(:disabled) {
background-color: rgba(51, 65, 85, 0.7);
color: #94a3b8; /* slate-400 */
}
.history-nav-button:disabled {
color: #334155; /* slate-700 - very faded */
cursor: not-allowed;
opacity: 0.5;
}
/* Style for truncated prompt subtitle to indicate clickability */
#main-content-subtitle.prompt-truncated {
cursor: pointer;
text-decoration: underline dotted rgba(203, 213, 225, 0.5); /* slate-300 dotted underline */
transition: text-decoration-color 0.2s ease;
}
#main-content-subtitle.prompt-truncated:hover {
text-decoration-color: rgba(34, 211, 238, 0.8); /* cyan-400 */
}
/* Ensure prompt display modal text area is styled correctly */
#full-prompt-text {
scrollbar-width: thin;
scrollbar-color: #475569 rgba(30, 41, 59, 0.5);
}
#full-prompt-text::-webkit-scrollbar {
width: 6px;
}
#full-prompt-text::-webkit-scrollbar-track {
background: rgba(51, 65, 85, 0.3);
border-radius: 3px;
}
#full-prompt-text::-webkit-scrollbar-thumb {
background: #475569;
border-radius: 3px;
}
#full-prompt-text::-webkit-scrollbar-thumb:hover {
background: #64748b;
}
/* --- Initial Setup CTA Styles --- */
#initial-setup-cta {
/* Default to flex for when it becomes visible */
/* flex-grow is added by JS when active */
background-color: rgba(23, 37, 60, 0.75); /* Slightly bluer, less opaque than modals */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid #334155; /* slate-700 */
border-radius: 0.75rem; /* rounded-xl */
box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(71, 85, 105, 0.4); /* slate-600 for inset border */
padding: 2rem; /* Increased padding */
width: 100%;
max-width: 48rem; /* Consistent max width, e.g., max-w-3xl */
margin-left: auto;
margin-right: auto;
opacity: 0;
transform: translateY(30px) scale(0.97);
transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
pointer-events: none;
}
#initial-setup-cta.active-cta {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
#gemini-logo-initial-cta {
height: 40px; /* Adjust as needed */
margin-bottom: 1.5rem; /* Space below the logo */
opacity: 0.85; /* Slightly see-through to blend a bit */
}
#initial-api-key-input {
/* Uses .futuristic-input, can add specifics if needed */
box-shadow: 0 0 15px rgba(34, 211, 238, 0.1); /* Subtle glow on input */
}
.example-prompt-button {
background-color: rgba(51, 65, 85, 0.7); /* slate-700 with alpha */
backdrop-filter: blur(5px);
border: 1px solid #475569; /* slate-600 */
color: #cbd5e1; /* slate-300 */
padding: 0.6rem 1.2rem; /* Adjusted padding */
border-radius: 9999px; /* pill shape */
font-size: 0.875rem; /* text-sm */
font-weight: 500;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
opacity: 0;
transform: translateY(15px);
/* Add opacity and transform to existing transition */
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.example-prompt-button.visible {
opacity: 1;
transform: translateY(0);
}
.example-prompt-button:hover {
background-color: rgba(71, 85, 105, 0.85); /* slate-600 with alpha */
color: #e2e8f0; /* slate-200 */
box-shadow: 0 0 12px rgba(34, 211, 238, 0.25), 0 4px 8px rgba(0,0,0,0.3);
transform: translateY(-2px); /* Keep existing translateY but ensure it combines with the initial one */
}
.example-prompt-button.visible:hover {
transform: translateY(-2px); /* Explicitly for visible state */
}
.example-prompt-button:active {
transform: translateY(0px); /* Reset or slightly depress */
box-shadow: 0 2px 5px rgba(0,0,0,0.2), 0 0 5px 1px rgba(34, 211, 238, 0.1);
}
.example-prompt-button.visible:active {
transform: translateY(0px);
} |