File size: 24,418 Bytes
12a8e0f | 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 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 | /* CSS Variables for dark mode & red accents */
:root {
--bg-color: #121212;
--text-color: #e0e0e0;
--accent-color: #ff3b3f;
--card-bg: #1e1e1e;
--border-color: #333;
--input-bg: #2a2a2a;
--select-bg: #1e1e1e;
--transition-speed: 0.35s;
--gradient-red: linear-gradient(135deg, #ff3b3f, #e03234, #ff3b3f);
}
/* Global Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
padding: 20px;
overflow-x: hidden;
position: relative;
}
/* Background animation with gradient shifts */
.background-animation {
position: fixed;
top: -25%;
left: -25%;
width: 150%;
height: 150%;
background: radial-gradient(circle at center, rgba(255,59,63,0.1), rgba(0,0,0,0.95));
filter: blur(10px);
z-index: -2;
animation: backgroundShift 25s ease-in-out infinite alternate;
}
@keyframes backgroundShift {
0% { transform: translate(0, 0) scale(1.1); }
100% { transform: translate(5%, 5%) scale(1.1); }
}
/* Particle background elements for extra life */
.particle-container {
pointer-events: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.particle {
position: absolute;
width: 8px;
height: 8px;
background-color: var(--accent-color);
border-radius: 50%;
opacity: 0.6;
animation: particleFloat 6s linear infinite;
}
.particle:nth-child(1) { top: 20%; left: 10%; animation-duration: 7s; }
.particle:nth-child(2) { top: 50%; left: 80%; animation-duration: 9s; }
.particle:nth-child(3) { top: 75%; left: 40%; animation-duration: 8s; }
.particle:nth-child(4) { top: 30%; left: 65%; animation-duration: 10s; }
.particle:nth-child(5) { top: 60%; left: 20%; animation-duration: 7.5s; }
@keyframes particleFloat {
0% { transform: translateY(0) scale(0.9); opacity: 0.8; }
50% { transform: translateY(-15px) scale(1.1); opacity: 0.6; }
100% { transform: translateY(0) scale(0.9); opacity: 0.8; }
}
/* Link Styles with animated underline */
a {
color: var(--accent-color);
text-decoration: none;
position: relative;
}
a::after {
content: "";
position: absolute;
width: 0%;
height: 2px;
bottom: -2px;
left: 0;
background: var(--accent-color);
transition: width var(--transition-speed) ease;
}
a:hover::after {
width: 100%;
}
/* Headings with fade in down animation */
h1, h2, h3 {
margin-bottom: 10px;
animation: fadeInDown var(--transition-speed) ease-in-out;
}
/* Container Styles */
.container {
max-width: 1200px;
margin: 0 auto;
animation: fadeIn 0.6s ease-in-out;
position: relative;
z-index: 1;
}
/* Card style for form sections and general containers */
.card {
background-color: var(--card-bg);
padding: 20px;
margin-bottom: 20px;
border: 1px solid var(--border-color);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: transform var(--transition-speed), box-shadow var(--transition-speed), border var(--transition-speed);
position: relative;
overflow: hidden;
}
.card::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: var(--gradient-red);
opacity: 0;
transition: opacity 0.6s, transform 0.6s;
z-index: -1;
transform: rotate(45deg) scale(0.5);
}
.card:hover {
box-shadow: 0 6px 12px rgba(0,0,0,0.5);
border: 1px solid var(--accent-color);
}
.card:hover::before {
opacity: 0.15;
transform: rotate(45deg) scale(1);
}
/* Form Styles */
form {
display: grid;
grid-gap: 20px;
}
fieldset {
border: none;
margin-bottom: 15px;
padding: 10px;
animation: slideIn 0.6s ease-out;
}
legend {
font-size: 1.2em;
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 2px solid var(--accent-color);
}
/* Labels */
label {
display: block;
margin-bottom: 2px;
margin-top: 5px;
transition: color var(--transition-speed);
}
/* Input, Select Styles with enhanced focus glow */
input[type="text"],
input[type="number"],
select {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
background-color: var(--input-bg);
color: var(--text-color);
transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 8px var(--accent-color);
}
/* Custom checkbox styling for dark tone */
input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
margin-right: 10px;
border: 2px solid var(--border-color);
border-radius: 3px;
background: var(--input-bg);
cursor: pointer;
vertical-align: middle;
position: relative;
transition: background var(--transition-speed), border-color var(--transition-speed);
/* Flexbox centering */
display: inline-flex; /* Treat as an inline-level flex container */
align-items: center; /* Center content vertically */
justify-content: center; /* Center content horizontally */
}
/* Default checked state (will be overridden by positive/negative) */
input[type="checkbox"]:checked {
background: var(--accent-color); /* Fallback, should be overridden */
border-color: var(--accent-color);
}
input[type="checkbox"]:checked::after {
content: "✓"; /* Default checkmark */
font-size: 16px;
line-height: 1;
color: var(--bg-color);
font-weight: bold;
/* Ensure the pseudo-element is treated as a flex item */
display: block; /* Or inline, depending on final visual tuning */
}
/* Positive State (Green Check) */
input[type="checkbox"].positive-check {
background: #2e7d32; /* Green background */
border-color: #4caf50; /* Lighter green border */
}
input[type="checkbox"].positive-check::after {
content: "✓"; /* Checkmark */
color: #e0e0e0; /* Light text color for contrast */
}
/* Negative State (Red X) */
input[type="checkbox"].negative-check {
background: #c62828; /* Red background */
border-color: #f44336; /* Lighter red border */
}
input[type="checkbox"].negative-check::after {
content: "✕"; /* Cross mark */
color: #e0e0e0; /* Light text color for contrast */
font-weight: bold;
}
/* Checkbox/option alignment */
.option-item,
.descriptor-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
/* Button Styles */
button[type="submit"] {
background-color: var(--accent-color);
color: var(--bg-color);
border: none;
padding: 12px 25px;
border-radius: 4px;
font-size: 1em;
cursor: pointer;
transition: background-color var(--transition-speed), transform 0.3s;
}
button[type="submit"]:hover {
background-color: #e03234;
transform: scale(1.02);
}
/* --- New Styles for Path Input Group and Browse Button --- */
/* Style the container for label, input, and browse button */
.path-input-group {
display: flex;
align-items: center; /* Vertically align items */
gap: 10px; /* Space between elements */
margin-bottom: 15px; /* Consistent spacing below the group */
}
/* Adjust label width and remove default bottom margin */
.path-input-group label {
flex-shrink: 0; /* Prevent label from shrinking */
margin-bottom: 0;
width: 100px; /* Fixed width for alignment */
}
/* Allow input field to take available space */
.path-input-group input[type="text"] {
flex-grow: 1; /* Take remaining width */
width: auto; /* Override default 100% width */
}
/* Style the Browse button */
.browse-button {
padding: 10px 15px; /* Adjust padding */
background-color: var(--input-bg);
color: var(--text-color);
border: 1px solid var(--border-color);
border-radius: 4px; /* Match input fields */
cursor: pointer;
outline: none;
font-family: inherit; /* Inherit font from body */
transition: background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
/* Default red glow */
box-shadow: 0 0 6px rgba(255, 59, 63, 0.7);
flex-shrink: 0; /* Prevent button shrinking */
}
/* Style the Browse button on hover */
.browse-button:hover {
background-color: var(--accent-color);
border-color: var(--accent-color);
color: var(--bg-color); /* Contrast text color on hover */
box-shadow: none; /* Remove glow on hover */
transform: scale(1.03); /* Slight scale effect */
}
/* --- End New Styles --- */
/* Flash messages */
.flash-messages .alert {
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
}
.flash-messages .alert.success {
background-color: #2e7d32;
color: #fff;
}
.flash-messages .alert.error {
background-color: #c62828;
color: #fff;
}
/* Descriptors container styling */
.descriptors-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center; /* Center the groups horizontally */
}
.descriptor-group {
flex: 1 1 200px;
background-color: #222;
padding: 10px;
border-radius: 4px;
border: 1px solid var(--border-color);
transition: transform var(--transition-speed), box-shadow 0.3s;
}
.descriptor-group:hover {
box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
/* Progress bar container and bar styling (static, no slider-like jumping) */
#progressBarContainer {
width: 100%;
background-color: #333;
border-radius: 5px;
margin: 10px 0;
overflow: hidden;
}
#progressBar {
width: 0%;
height: 20px;
background: linear-gradient(90deg, var(--accent-color), #e03234);
border-radius: 5px;
transition: width 0.35s ease, background 0.35s ease;
}
/* Style for the progress bar when an error occurs */
#progressBar.error {
background-color: var(--accent-color); /* Red progress bar on error */
}
/* Initial process message */
#init_message {
font-style: italic;
color: #ccc;
margin-bottom: 10px;
}
/* --- Live Logs & Step Table --- */
.card-subsection h4 {
margin: 10px 0 6px 0;
}
.log-container {
background: #191919;
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 10px;
}
.log-content {
background: #0f0f0f;
border: 1px solid #2a2a2a;
color: #d8d8d8;
font-family: Consolas, "Courier New", monospace;
font-size: 12px;
line-height: 1.45;
border-radius: 4px;
padding: 10px;
max-height: 260px;
overflow-y: auto;
white-space: pre-wrap; /* keep lines tidy */
}
.progress-table {
width: 100%;
border-collapse: collapse;
margin-top: 6px;
}
.progress-table th,
.progress-table td {
border: 1px solid var(--border-color);
padding: 6px 8px;
text-align: left;
font-size: 13px;
}
.progress-table thead th {
background: #232323;
}
.progress-table tbody tr:nth-child(even) {
background: #1a1a1a;
}
/* Status badges */
.progress-table td.status {
font-weight: 600;
}
.status-pending { color: #b0b0b0; }
.status-running { color: #f0a500; }
.status-done { color: #27ae60; }
.status-error { color: var(--accent-color); }
/* Animated Header & Footer */
.animated-header, .animated-footer {
animation: headerFadeIn 1s ease-out;
}
@keyframes headerFadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Slide in animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-20px); }
to { opacity: 1; transform: translateX(0); }
}
/* Custom select dropdown styling to force dark tones on highlights and arrow */
.styled-select {
background-color: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 10px 40px 10px 10px;
color: var(--text-color);
width: 100%;
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
background-image:
linear-gradient(45deg, transparent 50%, var(--accent-color) 50%),
linear-gradient(135deg, var(--accent-color) 50%, transparent 50%);
background-position: calc(100% - 20px) calc(1em + 2px),
calc(100% - 15px) calc(1em + 2px);
background-size: 5px 5px;
background-repeat: no-repeat;
}
/* Remove default arrow in IE */
.styled-select::-ms-expand {
display: none;
}
/* Additional hover lift for form cards */
.form-card:hover {
box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}
/* 1. Dark highlight for Select2 single selection */
.select2-container--dark .select2-selection--single,
.select2-container--dark .select2-selection--single:hover,
.select2-container--dark .select2-selection--single:focus {
background-color: var(--input-bg) !important;
border-color: var(--border-color) !important;
color: var(--text-color) !important;
}
/* 2. Dark hover background for number input spinner arrows (WebKit only) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:hover::-webkit-outer-spin-button {
background-color: var(--input-bg) !important;
}
/* Custom select dropdown styling to force dark tones on highlights and arrow */
.styled-select {
background-color: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 10px 40px 10px 10px;
color: var(--text-color);
width: 100%;
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
transition: background-color var(--transition-speed), border-color var(--transition-speed);
/* Custom arrow using CSS gradients */
background-image:
linear-gradient(45deg, transparent 50%, var(--accent-color) 50%),
linear-gradient(135deg, var(--accent-color) 50%, transparent 50%);
background-position: calc(100% - 20px) calc(1em + 2px),
calc(100% - 15px) calc(1em + 2px);
background-size: 5px 5px;
background-repeat: no-repeat;
}
.styled-select:hover {
background-color: var(--select-bg);
border-color: var(--accent-color);
color: var(--text-color);
}
/* (Optional) For IE edge to remove the default arrow: */
.styled-select::-ms-expand {
display: none;
}
/* Custom Select2 dark settings have already been applied in the JS call above */
/* Custom dropdown for descriptors */
.custom-dropdown-descriptors {
background-color: var(--input-bg);
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
/* Changed box-shadow to border for a clear outline */
border: 1px solid var(--accent-color);
box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* Kept outer shadow */
transition: transform var(--transition-speed), border-color var(--transition-speed); /* Added border-color transition */
}
.custom-dropdown-descriptors:hover {
}
.dropdown-header {
cursor: pointer;
padding: 8px 20px;
/* Changed background to gray, text to light */
background: var(--card-bg);
color: var(--text-color);
font-weight: 700;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
/* Added transition for background and color */
transition: background-color var(--transition-speed), color var(--transition-speed);
}
.dropdown-header:hover {
/* Changed hover background to slightly darker gray */
background: var(--input-bg);
}
.dropdown-header .dropdown-title {
font-size: 1.1em;
}
.dropdown-arrow {
transition: transform 0.35s ease;
}
.dropdown-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
background-color: var(--input-bg);
padding: 0 20px;
}
/* When open, add some padding & animate max-height */
.custom-dropdown-descriptors.open .dropdown-content {
padding-top: 8px;
padding-bottom: 8px;
max-height: 2000px; /* Increased max-height */
}
/* Rotate arrow when open */
.custom-dropdown-descriptors.open .dropdown-arrow {
transform: rotate(180deg);
}
/* Reuse descriptors styles */
.descriptor-item {
display: flex;
align-items: center;
margin-bottom: 10px;
}
/* (Keep any other descriptor related CSS as needed) */
/* --- Styles for In-Context Options Box --- */
.context-options-box { /* Renamed class */
background-color: var(--card-bg); /* Reuse card background */
border: 1px solid var(--border-color);
border-radius: 8px;
/* overflow: hidden; REMOVED - not strictly needed */
margin-top: 10px;
margin-bottom: 15px;
padding: 15px 20px; /* Added padding for title and content */
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: opacity 0.3s ease; /* Keep fade transition */
opacity: 1;
}
/* Style for the title inside the box */
.context-options-box h4 {
margin-bottom: 12px; /* Space below title */
padding-bottom: 5px; /* Space for border */
border-bottom: 1px solid var(--border-color); /* Separator line */
color: var(--text-color); /* Ensure text color */
font-weight: 700; /* Make it bold like legend/header */
font-size: 1.1em; /* Match previous header size */
/* Remove inherited heading animation if desired */
animation: none;
}
/* Container for the options */
.context-options-container {
display: flex;
flex-direction: column; /* Stack options vertically */
gap: 8px; /* Space between options */
}
/* Style individual option items (reuse descriptor-item styles) */
.context-option-item {
display: flex;
align-items: center;
margin-bottom: 0; /* Remove default margin from descriptor-item if reusing */
transition: opacity 0.3s ease; /* For fade in/out */
opacity: 1;
}
/* Reuse checkbox styling */
.context-option-item input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
margin-right: 10px;
border: 2px solid var(--border-color);
border-radius: 3px;
background: var(--input-bg);
cursor: pointer;
vertical-align: middle;
position: relative;
transition: background var(--transition-speed), border-color var(--transition-speed);
display: inline-flex;
align-items: center;
justify-content: center;
}
.context-option-item input[type="checkbox"]:checked {
background: var(--accent-color);
border-color: var(--accent-color);
}
.context-option-item input[type="checkbox"]:checked::after {
content: "✓";
font-size: 16px;
line-height: 1;
color: var(--bg-color);
font-weight: bold;
display: block;
}
/* Style label */
.context-option-item label {
margin-bottom: 0; /* Override potential default */
cursor: pointer; /* Make label clickable */
}
/* --- End Styles for In-Context Options Box --- */
/* --- Tooltip Icon Style --- */
.tooltip-icon {
margin-left: 8px; /* Space between label text and icon */
display: inline-flex; /* Use flex to help align the image */
align-items: center; /* Center the image vertically */
}
.tooltip-icon img {
height: 1.35em; /* Increased height slightly */
width: auto; /* Maintain aspect ratio */
/* Add relative positioning to nudge the icon */
position: relative;
top: 3px; /* Move down 2 pixels */
left: -5px; /* Move left 3 pixels */
}
/* --- Cancel Button Style --- */
.cancel-button {
background-color: var(--input-bg); /* Dark background */
color: var(--text-color); /* Light text */
border: 1px solid var(--border-color); /* Subtle border */
padding: 8px 20px;
border-radius: 4px;
font-size: 0.9em;
cursor: pointer;
transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), transform 0.2s;
}
.cancel-button:hover:not(:disabled) {
background-color: var(--accent-color); /* Red background on hover */
color: var(--bg-color); /* Dark text on hover */
border-color: var(--accent-color);
transform: scale(1.03);
}
.cancel-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* --- Flash Message Popup Container --- */
#flash-container {
position: fixed;
top: 20px;
right: 20px;
width: 300px; /* Adjust width as needed */
z-index: 1000; /* Ensure it's above other content */
display: flex;
flex-direction: column;
gap: 10px;
}
/* Add animation to flash messages within the container */
#flash-container .alert {
animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
/* Slides in, fades out after 4.5s (total 5s visibility) */
opacity: 1;
/* Base styles applied to all alerts in the container */
padding: 10px;
margin-bottom: 10px; /* Keep consistent spacing */
border-radius: 4px;
}
/* Style for Success alerts (keep distinct if desired, or unify later) */
#flash-container .alert.success {
background-color: #2e7d32; /* Green background */
color: #fff;
border: 1px solid #4caf50;
}
/* Style for Error alerts - Apply Cancelation Style */
#flash-container .alert.error {
background-color: var(--card-bg); /* Use card background gray */
color: var(--text-color); /* Standard text color */
border: 1px solid var(--border-color); /* Subtle border */
box-shadow: 0 0 8px var(--accent-color); /* Red glow effect */
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
/* Optional: add height: 0; padding: 0; margin: 0; for smoother removal */
}
}
/* Custom style for Cancellation Success Popup */
.alert-cancel-success {
/* Inherit basic alert padding/margin/radius from .alert if needed,
but define specific appearance here */
padding: 10px;
margin-bottom: 10px; /* Kept for consistency if multiple messages appear */
border-radius: 4px;
background-color: var(--card-bg); /* Use card background gray */
color: var(--text-color); /* Standard text color */
border: 1px solid var(--border-color); /* Optional: subtle border */
/* Red glow effect */
box-shadow: 0 0 8px var(--accent-color);
}
/* style.css additions */
.error-link {
color: var(--accent-color); /* Make link stand out */
text-decoration: underline;
cursor: pointer;
}
.error-link:hover {
color: #ff8080; /* Lighter red on hover */
}
/* Flash message for cancellation success */
.alert.alert-cancel-success {
color: #ffffff; /* White text */
background-color: #5cb85c; /* Green background (adjust color as needed) */
border-color: #4cae4c;
/* Add existing padding, margin, border-radius etc. from .alert */
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
/* Add animation properties like other alerts */
opacity: 1;
transition: opacity 0.5s ease-out 4s; /* Start fade out after 4s */
animation: slideDownFadeIn 0.5s ease forwards; /* Use existing slide in */
}
/* Ensure this keyframe animation exists or adapt as needed */
@keyframes slideDownFadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* --- Input with Clear Button Styling --- */
/* Container for input + clear button */
.input-with-clear {
position: relative; /* Required for absolute positioning of clear button */
flex-grow: 1; /* Take remaining width in path-input-group */
display: flex;
align-items: center;
}
/* Adjust input styling when inside input-with-clear container */
.input-with-clear input[type="text"] {
width: 100%;
padding-right: 35px; /* Make room for clear button */
flex-grow: 1;
}
/* Clear button styling */
.clear-input-btn {
position: absolute;
right: 8px; /* Position inside the input field */
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-color);
font-size: 18px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color var(--transition-speed), color var(--transition-speed);
z-index: 1; /* Ensure it's above the input field */
opacity: 0.7;
}
.clear-input-btn:hover {
background-color: var(--accent-color);
color: var(--bg-color);
opacity: 1;
transform: translateY(-50%) scale(1.1);
}
.clear-input-btn:active {
transform: translateY(-50%) scale(0.95);
}
/* Update path-input-group to accommodate the new structure */
.path-input-group {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.path-input-group label {
flex-shrink: 0;
margin-bottom: 0;
width: 100px;
}
|