Add manifest.json, sidepanel components, and scripts. Include project assets and documentation files. Remove placeholder blank file.
1138 lines
20 KiB
CSS
1138 lines
20 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-dark: #0f0f1e;
|
|
--bg-card: #1a1a2e;
|
|
--bg-hover: #252540;
|
|
--primary: #6366f1;
|
|
--primary-light: #818cf8;
|
|
--primary-dark: #4f46e5;
|
|
--secondary: #ec4899;
|
|
--accent: #14b8a6;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #94a3b8;
|
|
--border: #334155;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--error: #ef4444;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
padding: 16px;
|
|
padding-bottom: 180px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Navigation Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--bg-card);
|
|
padding: 4px;
|
|
border-radius: 12px;
|
|
margin-bottom: 16px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
font-family: 'Prompt', sans-serif;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
/* Tab Content */
|
|
.tab-content {
|
|
display: none;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
position: relative;
|
|
text-align: center;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header-gradient {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
|
|
animation: shimmer 3s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
|
|
0%,
|
|
100% {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
50% {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
|
|
.title {
|
|
position: relative;
|
|
font-family: 'Prompt', sans-serif;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.subtitle {
|
|
position: relative;
|
|
font-size: 12px;
|
|
opacity: 0.95;
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* Section */
|
|
.section {
|
|
background: var(--bg-card);
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
margin-bottom: 12px;
|
|
border: 1px solid var(--border);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.section:hover {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
|
|
}
|
|
|
|
.section-title {
|
|
font-family: 'Prompt', sans-serif;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Upload Area */
|
|
.upload-area {
|
|
position: relative;
|
|
border: 2px dashed var(--border);
|
|
border-radius: 12px;
|
|
padding: 32px 20px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background: rgba(99, 102, 241, 0.05);
|
|
}
|
|
|
|
.upload-area:hover {
|
|
border-color: var(--primary);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.upload-area.drag-over {
|
|
border-color: var(--accent);
|
|
background: rgba(20, 184, 166, 0.1);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.upload-placeholder svg {
|
|
color: var(--primary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.upload-placeholder p {
|
|
font-size: 16px;
|
|
margin-bottom: 8px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.upload-hint {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.image-preview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.image-preview-item {
|
|
position: relative;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
padding-bottom: 100%;
|
|
/* Square aspect ratio */
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.image-preview-item img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.remove-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: rgba(239, 68, 68, 0.9);
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
z-index: 10;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.remove-btn:hover {
|
|
background: var(--error);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Style Grid */
|
|
.style-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.style-card {
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 10px;
|
|
padding: 14px 12px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-align: center;
|
|
}
|
|
|
|
.style-card:hover {
|
|
border-color: var(--primary);
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.style-card.active {
|
|
border-color: var(--primary);
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
|
|
}
|
|
|
|
.style-icon {
|
|
font-size: 28px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.style-name {
|
|
font-family: 'Prompt', sans-serif;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 2px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.style-desc {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Ratio Grid */
|
|
.ratio-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.ratio-btn {
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 10px;
|
|
padding: 12px 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.ratio-btn:hover {
|
|
border-color: var(--primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.ratio-btn.active {
|
|
border-color: var(--accent);
|
|
background: rgba(20, 184, 166, 0.15);
|
|
}
|
|
|
|
.ratio-box {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.ratio-box.square {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.ratio-box.portrait-34 {
|
|
width: 28px;
|
|
height: 38px;
|
|
}
|
|
|
|
.ratio-box.portrait-45 {
|
|
width: 30px;
|
|
height: 38px;
|
|
}
|
|
|
|
.ratio-box.landscape-43 {
|
|
width: 38px;
|
|
height: 28px;
|
|
}
|
|
|
|
.ratio-box.portrait-23 {
|
|
width: 26px;
|
|
height: 38px;
|
|
}
|
|
|
|
.ratio-box.portrait-916 {
|
|
width: 22px;
|
|
height: 38px;
|
|
}
|
|
|
|
.ratio-box.landscape-169 {
|
|
width: 44px;
|
|
height: 26px;
|
|
}
|
|
|
|
.ratio-btn span {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Emotion Grid */
|
|
.emotion-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.emotion-btn {
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
text-align: center;
|
|
}
|
|
|
|
.emotion-btn:hover {
|
|
border-color: var(--primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.emotion-btn.active {
|
|
border-color: var(--secondary);
|
|
background: rgba(236, 72, 153, 0.2);
|
|
}
|
|
|
|
/* Form Elements */
|
|
.form-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.text-input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-family: 'Sarabun', sans-serif;
|
|
transition: all 0.3s ease;
|
|
resize: vertical;
|
|
}
|
|
|
|
.text-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.text-style-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Position Grid */
|
|
.position-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.position-btn {
|
|
padding: 8px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.position-btn:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.position-btn.active {
|
|
border-color: var(--accent);
|
|
background: rgba(20, 184, 166, 0.2);
|
|
}
|
|
|
|
/* Checkbox Style */
|
|
.checkbox-style {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.checkbox-style:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.checkbox-style input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.checkbox-style span {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Font Style Grid */
|
|
.font-style-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.font-style-btn {
|
|
padding: 8px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.font-style-btn:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.font-style-btn.active {
|
|
border-color: var(--primary);
|
|
background: rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.color-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.color-picker-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid var(--border);
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.color-picker-wrapper:focus-within {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.color-picker-wrapper input[type="color"] {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.color-label {
|
|
font-size: 13px;
|
|
font-family: 'Courier New', monospace;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.custom-prompt {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid var(--border);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
font-family: 'Sarabun', sans-serif;
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.custom-prompt:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.action-buttons {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 16px;
|
|
background: rgba(15, 15, 30, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
border-top: 1px solid var(--border);
|
|
z-index: 100;
|
|
display: flex;
|
|
justify-content: center;
|
|
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
|
|
margin: 0;
|
|
}
|
|
|
|
.action-buttons .btn {
|
|
max-width: 420px;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: 'Prompt', sans-serif;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.btn-primary:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
#generateBtn {
|
|
background: linear-gradient(135deg, #ef4444 0%, #d50000 100%);
|
|
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
#generateBtn:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, #f87171 0%, #b71c1c 100%);
|
|
box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Status Message */
|
|
.status-message {
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.status-message.success {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
border: 1px solid var(--success);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-message.error {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border: 1px solid var(--error);
|
|
color: var(--error);
|
|
}
|
|
|
|
.status-message.info {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
border: 1px solid var(--primary);
|
|
color: var(--primary-light);
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-dark);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--primary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary-light);
|
|
}
|
|
|
|
/* Loading Animation */
|
|
.loading {
|
|
position: relative;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin: -10px 0 0 -10px;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: white;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* History Section */
|
|
.history-section {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.history-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.history-header .section-title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 12px;
|
|
background: var(--bg-hover);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-small:hover {
|
|
border-color: var(--primary);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.history-stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
background: var(--bg-hover);
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.history-list {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.history-item {
|
|
background: var(--bg-hover);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
font-size: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.history-item:hover {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.history-item.success {
|
|
border-left: 3px solid var(--success);
|
|
}
|
|
|
|
.history-item.error {
|
|
border-left: 3px solid var(--error);
|
|
}
|
|
|
|
.history-date {
|
|
color: var(--text-secondary);
|
|
font-size: 11px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.history-settings {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 4px;
|
|
margin-top: 6px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.history-headline {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
|
|
/* Remover Tool Styles */
|
|
.canvas-container {
|
|
border: 2px solid var(--border);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
#maskCanvas {
|
|
opacity: 1;
|
|
touch-action: none;
|
|
}
|
|
|
|
.brush-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
#brushSize {
|
|
height: 6px;
|
|
-webkit-appearance: none;
|
|
background: var(--bg-hover);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
}
|
|
|
|
#brushSize::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: var(--primary);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
#brushSize::-webkit-slider-thumb:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
#brushSizeVal {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
min-width: 40px;
|
|
}
|
|
|
|
.preset-controls {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.preset-controls .text-input {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.preset-list {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.preset-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preset-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.preset-item:hover {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.preset-name {
|
|
flex-grow: 1;
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.preset-delete-btn {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 4px;
|
|
opacity: 0.6;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.preset-delete-btn:hover {
|
|
opacity: 1;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
background: var(--bg-hover);
|
|
padding: 4px;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
font-family: 'Prompt', sans-serif;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--bg-card);
|
|
color: var(--primary);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Grid Creator Styles */
|
|
.grid-images-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
min-height: 40px;
|
|
}
|
|
|
|
.grid-thumb-item {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.grid-thumb-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.section-status {
|
|
text-align: right;
|
|
margin-top: 5px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.template-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.template-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
background: var(--bg-hover);
|
|
border: 2px solid transparent;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.template-btn:hover {
|
|
border-color: var(--primary-light);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.template-btn.active {
|
|
border-color: var(--primary);
|
|
background: rgba(99, 102, 241, 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.template-preview {
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
position: relative;
|
|
background-color: transparent;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.preview-slot {
|
|
position: absolute;
|
|
background-color: var(--bg-card);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-sizing: border-box;
|
|
/* Simulate gap */
|
|
transform: scale(0.96);
|
|
border-radius: 4px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.template-btn:hover .preview-slot {
|
|
border-color: var(--primary);
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.template-btn.active .preview-slot {
|
|
background-color: var(--primary);
|
|
/* Active Color */
|
|
border-color: var(--primary-light);
|
|
box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
/* Just basic styling for now, user will see the output */
|
|
|
|
.canvas-preview-container {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
background: #111;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
overflow: hidden;
|
|
padding: 10px;
|
|
} |