Files
Unified_Dashboard_Suite_Go/web/png-frame-detector/css/styles.css
T

1620 lines
28 KiB
CSS
Raw Normal View History

/* ===== RESET & BASE STYLES ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-gradient: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
--secondary-gradient: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
--success-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
--danger-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
--dark-gradient: linear-gradient(
135deg,
rgba(255, 255, 255, 0.15) 0%,
rgba(255, 255, 255, 0.05) 100%
);
--primary-color: #ec4899;
--secondary-color: #f43f5e;
--success-color: #34d399;
--danger-color: #f87171;
--warning-color: #fb923c;
--dark-color: #f8fafc;
--light-bg: rgba(255, 255, 255, 0.08);
--white: #ffffff;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
--shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
--shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
--border-radius: 20px;
--border-radius-sm: 12px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--font-family:
"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
font-family: var(--font-family);
background: #0a0118;
min-height: 100vh;
padding: 20px;
line-height: 1.6;
color: var(--dark-color);
position: relative;
}
/* Animated gradient background */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
-45deg,
#8b5cf6,
#ec4899,
#f97316,
#06b6d4,
#8b5cf6
);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
opacity: 0.15;
z-index: 0;
pointer-events: none;
}
@keyframes gradientShift {
0%,
100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
/* ===== CONTAINER ===== */
.container {
max-width: 1600px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(30px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 30px;
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
overflow: hidden;
animation: fadeIn 0.6s ease-out;
position: relative;
z-index: 10;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ===== HEADER ===== */
header {
background: var(--primary-gradient);
color: var(--white);
padding: 40px 30px;
text-align: center;
position: relative;
overflow: hidden;
}
header::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.1) 0%,
transparent 70%
);
animation: pulse 15s infinite;
}
@keyframes pulse {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
header h1 {
font-size: 42px;
font-weight: 800;
margin-bottom: 12px;
position: relative;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
header h1 i {
margin-right: 15px;
animation: rotate 3s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.subtitle {
font-size: 18px;
opacity: 0.95;
font-weight: 400;
position: relative;
}
/* ===== TABS ===== */
.tabs {
display: flex;
background: linear-gradient(to right, #f8f9fa 0%, #e9ecef 100%);
border-bottom: 3px solid #dee2e6;
overflow-x: auto;
}
.tab {
padding: 18px 35px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
font-weight: 600;
color: #6c757d;
transition: var(--transition);
border-bottom: 4px solid transparent;
position: relative;
white-space: nowrap;
}
.tab::after {
content: "";
position: absolute;
bottom: -4px;
left: 50%;
width: 0;
height: 4px;
background: var(--primary-gradient);
transition: var(--transition);
transform: translateX(-50%);
}
.tab:hover {
background: rgba(236, 72, 153, 0.1);
color: var(--primary-color);
}
.tab.active {
color: var(--primary-color);
background: rgba(255, 255, 255, 0.1);
}
.tab.active::after {
width: 100%;
}
.tab i {
margin-right: 10px;
font-size: 18px;
}
/* ===== TAB CONTENT ===== */
.tab-content {
display: none;
animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.tab-content.active {
display: block;
}
/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
display: grid;
grid-template-columns: 1.8fr 1.2fr;
gap: 30px;
padding: 30px;
/* Prevent grid blowout */
min-width: 0;
}
@media (max-width: 1200px) {
.main-content {
grid-template-columns: 1fr;
}
}
/* Full width layout for batch tab */
.batch-content-layout {
grid-template-columns: 1fr !important;
}
/* ===== PANELS ===== */
.left-panel,
.right-panel {
background: rgba(255, 255, 255, 0.05);
border-radius: var(--border-radius);
padding: 30px;
box-shadow: var(--shadow-sm);
box-shadow: var(--shadow-sm);
border: 1px solid rgba(255, 255, 255, 0.1);
/* Ensure flex/grid items can shrink */
min-width: 0;
width: 100%;
}
.right-panel {
max-height: 800px;
overflow-y: auto;
}
.right-panel::-webkit-scrollbar {
width: 8px;
}
.right-panel::-webkit-scrollbar-track {
background: #e9ecef;
border-radius: 10px;
}
.right-panel::-webkit-scrollbar-thumb {
background: var(--primary-gradient);
border-radius: 10px;
}
/* ===== UPLOAD AREA ===== */
.upload-area {
border: 3px dashed var(--primary-color);
border-radius: var(--border-radius);
padding: 60px 40px;
text-align: center;
background: var(--white);
cursor: pointer;
transition: var(--transition);
margin-bottom: 30px;
position: relative;
overflow: hidden;
}
.upload-area::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(102, 126, 234, 0.1),
transparent
);
transition: left 0.5s;
}
.upload-area:hover::before {
left: 100%;
}
.upload-area:hover {
border-color: var(--secondary-color);
background: linear-gradient(
135deg,
rgba(102, 126, 234, 0.05) 0%,
rgba(118, 75, 162, 0.05) 100%
);
transform: translateY(-5px);
box-shadow: var(--shadow-md);
}
.upload-area.drag-over {
border-color: var(--success-color);
background: linear-gradient(
135deg,
rgba(79, 172, 254, 0.1) 0%,
rgba(0, 242, 254, 0.1) 100%
);
transform: scale(1.02);
}
.upload-area i {
font-size: 72px;
background: var(--primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 25px;
display: inline-block;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.upload-area h3 {
font-size: 22px;
color: var(--white);
margin-bottom: 12px;
font-weight: 700;
}
.upload-area p {
color: rgba(255, 255, 255, 0.7);
font-size: 15px;
}
/* ===== IMAGE CONTAINER ===== */
.image-container {
background: var(--white);
border-radius: var(--border-radius);
padding: 25px;
margin-top: 25px;
text-align: center;
min-height: 450px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #e9ecef;
position: relative;
overflow: hidden;
}
.image-container::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 10px,
rgba(102, 126, 234, 0.02) 10px,
rgba(102, 126, 234, 0.02) 20px
);
}
#imageCanvas {
max-width: 100%;
max-height: 550px;
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-md);
position: relative;
z-index: 1;
}
/* ===== EMPTY STATE ===== */
.empty-state {
text-align: center;
color: #adb5bd;
padding: 60px 20px;
}
.empty-state i {
font-size: 80px;
margin-bottom: 25px;
opacity: 0.3;
display: block;
}
.empty-state p {
font-size: 16px;
margin-bottom: 8px;
}
.empty-state p:first-of-type {
font-weight: 600;
font-size: 18px;
color: #868e96;
}
/* ===== CONTROLS & BUTTONS ===== */
.controls {
display: flex;
gap: 15px;
margin-top: 30px;
flex-wrap: wrap;
}
.btn {
padding: 16px 32px;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
display: inline-flex;
align-items: center;
gap: 12px;
min-width: 180px;
justify-content: center;
position: relative;
overflow: hidden;
box-shadow: var(--shadow-sm);
}
/* Uiverse.io Style: Ripple Effect */
.btn::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.6);
transform: translate(-50%, -50%);
transition:
width 0.6s,
height 0.6s;
}
.btn:active::before {
width: 300px;
height: 300px;
transition:
width 0s,
height 0s;
}
/* Uiverse.io Style: Glow Pulse on Hover */
.btn:hover {
transform: translateY(-4px) scale(1.02);
box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
animation: glowPulse 1.5s ease-in-out infinite;
}
@keyframes glowPulse {
0%,
100% {
box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}
50% {
box-shadow: 0 20px 50px rgba(236, 72, 153, 0.6);
}
}
/* Uiverse.io Style: Shimmer Effect */
.btn::after {
content: "";
position: absolute;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, 0) 100%
);
transform: rotateZ(60deg) translate(-1em, 7.5em);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0% {
transform: rotateZ(60deg) translate(-1em, 7.5em);
}
100% {
transform: rotateZ(60deg) translate(1em, -10em);
}
}
.btn i {
font-size: 18px;
position: relative;
z-index: 1;
transition: transform 0.3s ease;
}
.btn:hover i {
transform: scale(1.2) rotate(15deg);
}
.btn span {
position: relative;
z-index: 1;
}
.btn-primary {
background: var(--primary-gradient);
color: var(--white);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.btn-success {
background: var(--success-gradient);
color: var(--white);
}
.btn-success:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}
.btn-warning {
background: var(--danger-gradient);
color: var(--white);
}
.btn-warning:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}
.btn-secondary {
background: linear-gradient(135deg, #475569 0%, #334155 100%);
color: var(--white);
}
.btn-secondary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
.btn:disabled:hover {
box-shadow: var(--shadow-sm);
}
.btn:active {
transform: translateY(-1px) !important;
}
/* ===== COORDINATE ITEMS ===== */
.coord-item {
background: var(--white);
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
border-left: 5px solid var(--primary-color);
box-shadow: var(--shadow-sm);
transition: var(--transition);
position: relative;
overflow: hidden;
color: #495057; /* Force dark text on white background */
}
/* Ensure text is selectable */
.coord-string,
.results-content,
.batch-item-details,
.format-code {
user-select: text !important;
-webkit-user-select: text !important;
cursor: text;
}
.coord-item::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--primary-gradient);
opacity: 0;
transition: opacity 0.3s;
}
.coord-item:hover {
transform: translateX(8px);
box-shadow: var(--shadow-md);
}
.coord-item:hover::before {
opacity: 0.03;
}
.color-dot {
width: 18px;
height: 18px;
border-radius: 50%;
display: inline-block;
margin-right: 12px;
border: 3px solid var(--white);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
vertical-align: middle;
}
.coord-string {
background: #f8f9fa;
padding: 14px;
border-radius: var(--border-radius-sm);
font-family: "Monaco", "Courier New", monospace;
font-size: 13px;
word-break: break-all;
margin-top: 14px;
border: 1px solid #e9ecef;
color: var(--primary-color);
line-height: 1.6;
}
/* ===== FORMAT INFO ===== */
.format-info {
background: linear-gradient(
135deg,
rgba(236, 72, 153, 0.15) 0%,
rgba(244, 63, 94, 0.1) 100%
);
padding: 25px;
border-radius: var(--border-radius);
margin-top: 30px;
border-left: 5px solid var(--primary-color);
box-shadow: var(--shadow-sm);
}
.format-info h4 {
color: var(--primary-color);
margin-bottom: 18px;
font-size: 18px;
font-weight: 700;
}
.format-info h4 i {
margin-right: 10px;
}
.format-info p {
margin-bottom: 12px;
color: rgba(255, 255, 255, 0.9);
}
.format-code {
background: rgba(0, 0, 0, 0.4);
color: #fbbf24;
padding: 14px;
border-radius: var(--border-radius-sm);
font-family: "Monaco", "Courier New", monospace;
font-size: 13px;
margin-top: 12px;
box-shadow: var(--shadow-sm);
display: inline-block;
border: 1px solid rgba(236, 72, 153, 0.3);
}
/* ===== BATCH PROCESSING ===== */
.batch-section {
background: var(--white);
border-radius: var(--border-radius);
padding: 30px;
margin-top: 0;
border: 3px dashed var(--success-color);
box-shadow: var(--shadow-sm);
}
.batch-section h3 {
color: var(--dark-color);
margin-bottom: 15px;
font-size: 24px;
font-weight: 700;
}
.batch-section h3 i {
margin-right: 12px;
color: var(--success-color);
}
.progress-container {
margin-top: 25px;
background: var(--light-bg);
border-radius: 12px;
padding: 25px;
box-shadow: var(--shadow-sm);
}
.progress-bar {
width: 100%;
height: 14px;
background: #e9ecef;
border-radius: 10px;
overflow: hidden;
margin: 18px 0;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.progress-fill {
height: 100%;
background: var(--success-gradient);
border-radius: 10px;
transition: width 0.3s ease-out;
width: 0%;
position: relative;
overflow: hidden;
}
.progress-fill::after {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
/* ===== BATCH RESULTS (Horizontal Slide View) ===== */
.batch-results {
background: var(--white);
border-radius: 12px;
border: 1px solid #e9ecef;
box-shadow: var(--shadow-sm);
padding: 20px;
margin-top: 25px;
/* Constraint */
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
.batch-slider-wrapper {
position: relative;
display: flex;
align-items: center;
gap: 15px;
background: var(--light-bg);
border-radius: 12px;
padding: 20px 10px;
border: 1px solid #e9ecef;
/* Constraint */
width: 100%;
max-width: 100%;
overflow: hidden; /* IMPORTANT: Prevents child from expanding parent */
}
.batch-list {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
gap: 20px;
padding: 10px;
/* Sizing */
min-height: 400px; /* Increased Height for larger cards */
flex: 1; /* Take remaining space */
width: 0; /* IMPORTANT: Allows flex item to shrink below content size */
min-width: 0; /* Standard flexbox fix for overflow */
/* Scrollbar Styling */
scrollbar-width: thin;
scrollbar-color: var(--primary-color) #e9ecef;
scroll-behavior: smooth;
}
.batch-list::-webkit-scrollbar {
height: 8px;
}
.batch-list::-webkit-scrollbar-track {
background: #e9ecef;
border-radius: 4px;
}
.batch-list::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}
/* Slider Buttons */
.slider-btn {
flex: 0 0 40px; /* Fixed size */
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
background: var(--white);
color: var(--primary-color);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 2;
}
.slider-btn:hover {
background: var(--primary-color);
color: var(--white);
transform: scale(1.1);
box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}
.slider-btn:active {
transform: scale(0.95);
}
/* Card Item */
.batch-item {
flex: 0 0 auto; /* Don't shrink */
width: 320px; /* Increased width */
background: var(--white);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.05);
color: #495057; /* Force dark text on white background */
padding: 15px;
display: flex;
flex-direction: column;
transition:
transform 0.2s,
box-shadow 0.2s;
}
.batch-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.batch-item.error {
border-left: 4px solid var(--danger-color);
}
.batch-item.success {
border-left: 4px solid var(--success-color);
}
/* Image in Card */
.batch-image-container {
width: 100%;
height: 240px; /* Increased height */
background: #f8f9fa;
border-radius: 8px;
overflow: hidden;
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #eee;
position: relative;
}
/* Folder Badge */
.folder-badge {
display: inline-block;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 5px 12px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
margin: 8px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}
.folder-badge i {
margin-right: 5px;
}
.batch-info-btn {
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.9);
border: none;
color: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: all 0.2s;
font-size: 14px;
z-index: 10;
}
.batch-info-btn:hover {
transform: scale(1.1);
background: var(--primary-color);
color: white;
}
.batch-image {
width: 100%;
height: 100%;
object-fit: contain; /* Show full image within box */
display: block;
}
/* details */
.batch-item-header {
font-weight: 600;
font-size: 14px;
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
gap: 8px;
}
.batch-item-details {
font-size: 11px;
color: #6c757d;
font-family: "Monaco", monospace;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; /* Limit to 2 lines */
-webkit-box-orient: vertical;
}
/* ===== RESULTS SECTION ===== */
.results-section {
background: var(--white);
border-radius: var(--border-radius);
padding: 30px;
margin-top: 0;
border: 1px solid #dee2e6;
box-shadow: var(--shadow-sm);
}
.results-section h3 {
color: var(--dark-color);
margin-bottom: 15px;
font-size: 24px;
font-weight: 700;
}
.results-section h3 i {
margin-right: 12px;
color: var(--primary-color);
}
.results-content {
max-height: 400px;
overflow-y: auto;
font-family: "Monaco", "Courier New", monospace;
font-size: 13px;
background: var(--light-bg);
padding: 20px;
border-radius: 12px;
border: 1px solid #e9ecef;
/* HORIZONTAL SCROLL FIX */
white-space: pre !important;
word-break: keep-all !important;
overflow-x: auto !important;
width: 100%;
max-width: 100%;
display: block;
margin-top: 20px;
line-height: 1.8;
color: #2d3748;
}
/* ===== LOADING SPINNER ===== */
.loading {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
align-items: center;
justify-content: center;
backdrop-filter: blur(5px);
}
.spinner {
width: 80px;
height: 80px;
border: 8px solid rgba(255, 255, 255, 0.2);
border-top: 8px solid var(--white);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ===== MESSAGE NOTIFICATIONS ===== */
.message {
position: fixed;
top: 30px;
right: 30px;
padding: 20px 30px;
border-radius: 12px;
color: var(--white);
font-weight: 600;
z-index: 10000;
opacity: 0;
transform: translateX(400px);
transition: var(--transition);
max-width: 450px;
box-shadow: var(--shadow-xl);
display: flex;
align-items: center;
gap: 15px;
}
.message::before {
content: "";
font-family: "Font Awesome 6 Free";
font-weight: 900;
font-size: 24px;
}
.message.show {
opacity: 1;
transform: translateX(0);
}
.message.success {
background: var(--success-gradient);
}
.message.success::before {
content: "\f058";
}
.message.error {
background: var(--danger-gradient);
}
.message.error::before {
content: "\f06a";
}
.message.info {
background: var(--primary-gradient);
}
.message.info::before {
content: "\f05a";
}
/* ===== FILE INPUT ===== */
.file-input {
display: none;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
body {
padding: 10px;
}
header h1 {
font-size: 28px;
}
.subtitle {
font-size: 14px;
}
.main-content {
padding: 20px;
}
.left-panel,
.right-panel {
padding: 20px;
}
.upload-area {
padding: 40px 20px;
}
.controls {
flex-direction: column;
}
.btn {
width: 100%;
min-width: unset;
}
.tab {
padding: 15px 20px;
font-size: 14px;
}
.message {
right: 10px;
left: 10px;
max-width: calc(100% - 20px);
}
}
/* ===== UTILITY CLASSES ===== */
.text-center {
text-align: center;
}
.mt-1 {
margin-top: 8px;
}
.mt-2 {
margin-top: 16px;
}
.mt-3 {
margin-top: 24px;
}
.mt-4 {
margin-top: 32px;
}
.mb-1 {
margin-bottom: 8px;
}
.mb-2 {
margin-bottom: 16px;
}
.mb-3 {
margin-bottom: 24px;
}
.mb-4 {
margin-bottom: 32px;
}
.text-primary {
color: var(--primary-color);
}
.text-success {
color: var(--success-color);
}
.text-danger {
color: var(--danger-color);
}
.text-muted {
color: #6c757d;
}
.fw-bold {
font-weight: 700;
}
.fw-normal {
font-weight: 400;
} /* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
.modal.show {
display: flex;
}
.modal-content {
background-color: white;
border-radius: 12px;
width: 90%;
max-width: 500px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.modal-header {
padding: 20px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
margin: 0;
color: #1a2980;
font-size: 18px;
}
.close-modal {
font-size: 24px;
cursor: pointer;
color: #6c757d;
transition: color 0.2s;
}
.close-modal:hover {
color: #1a2980;
}
.modal-body {
padding: 20px;
}
.modal-footer {
padding: 20px;
border-top: 1px solid #e9ecef;
display: flex;
justify-content: flex-end;
gap: 10px;
}
.setting-group {
margin-bottom: 20px;
}
.setting-group label {
display: block;
margin-bottom: 10px;
font-weight: 600;
color: #495057;
}
.checkbox-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.checkbox-group label {
font-weight: normal;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.input-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 15px;
}
.form-input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ced4da;
border-radius: 6px;
font-family: "Courier New", monospace;
text-align: center;
}
.preview-box {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.code-preview {
font-family: "Courier New", monospace;
font-size: 13px;
color: #1a2980;
word-break: break-all;
margin-top: 5px;
}
/* Sortable List Styles */
.sortable-list {
list-style: none;
padding: 0;
margin: 0;
}
.sortable-item {
display: flex;
align-items: center;
padding: 10px 15px;
background: #fff;
border: 1px solid #dee2e6;
margin-bottom: 8px;
border-radius: 6px;
cursor: move;
transition: all 0.2s ease;
user-select: none;
}
.sortable-item:hover {
border-color: #adb5bd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sortable-item.dragging {
opacity: 0.5;
background: #e9ecef;
border: 1px dashed #6c757d;
}
.drag-handle {
color: #adb5bd;
margin-right: 12px;
cursor: move;
}
.sortable-item input[type="checkbox"] {
margin-right: 10px;
}
.item-label {
flex-grow: 1;
font-weight: 500;
color: #495057;
}
/* Sortable List Styles */
.sortable-list {
list-style: none;
padding: 0;
margin: 0;
}
.sortable-item {
display: flex;
align-items: center;
padding: 12px 15px;
background: #fff;
border: 1px solid #e9ecef;
margin-bottom: 8px;
border-radius: 8px;
cursor: grab;
transition:
transform 0.2s cubic-bezier(0.2, 0, 0, 1),
box-shadow 0.2s;
user-select: none;
position: relative;
}
.sortable-item:hover {
border-color: #adb5bd;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
z-index: 5;
}
.sortable-item.dragging {
opacity: 0.9;
background: #ffffff;
border: 1px solid #667eea;
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
z-index: 100;
cursor: grabbing;
transform: scale(1.02);
}
.drag-handle {
color: #adb5bd;
margin-right: 15px;
cursor: grab;
padding: 4px;
transition: color 0.2s;
}
.sortable-item:hover .drag-handle {
color: #667eea;
}
.sortable-item input[type="checkbox"] {
margin-right: 12px;
width: 16px;
height: 16px;
cursor: pointer;
accent-color: #667eea;
}
.item-label {
flex-grow: 1;
font-weight: 500;
color: #495057;
}
/* Detail Modal Styles */
.detail-modal-body {
display: grid;
grid-template-columns: 1fr 300px;
gap: 20px;
padding: 20px;
max-height: 80vh;
overflow: hidden;
}
.detail-canvas-container {
background: #f8f9fa;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border: 1px solid #dee2e6;
height: 500px;
}
#detailCanvas {
max-width: 100%;
max-height: 100%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.detail-sidebar {
background: #fff;
border-left: 1px solid #dee2e6;
padding-left: 20px;
display: flex;
flex-direction: column;
height: 500px;
}
.detail-list {
flex: 1;
overflow-y: auto;
padding-right: 5px;
}
.detail-item {
display: flex;
align-items: center;
padding: 10px;
background: #fff;
border: 1px solid #e9ecef;
border-radius: 8px;
margin-bottom: 8px;
transition: background 0.2s;
color: #495057; /* Force dark text */
}
.detail-item:hover {
background: #f8f9fa;
}
.detail-remove-btn {
margin-left: auto;
width: 24px;
height: 24px;
border-radius: 50%;
border: none;
background: #fee2e2;
color: #ef4444;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.detail-remove-btn:hover {
background: #ef4444;
color: white;
transform: scale(1.1);
}
.detail-modal-content {
width: 90%;
max-width: 1000px; /* Wider for detail view */
}
@media (max-width: 768px) {
.detail-modal-body {
grid-template-columns: 1fr;
height: auto;
overflow-y: auto;
}
.detail-sidebar {
border-left: none;
border-top: 1px solid #dee2e6;
padding-left: 0;
padding-top: 20px;
height: auto;
}
}