* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #1a1a2e;
color: #eee;
min-height: 100vh;
display: flex;
}
.sidebar {
width: 220px;
min-height: 100vh;
background: #16213e;
padding: 30px 16px;
display: flex;
flex-direction: column;
gap: 12px;
border-right: 2px solid #0f3460;
position: relative;
z-index: 10;
}
.sidebar h2 {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 2px;
color: #888;
margin-bottom: 10px;
text-align: center;
}
.sidebar-btn {
padding: 14px 18px;
background: #0f3460;
color: #e94560;
border: 2px solid transparent;
border-radius: 10px;
font-size: 15px;
font-weight: 600;
cursor: grab;
transition: all 0.25s;
user-select: none;
position: relative;
}
.sidebar-btn:hover {
background: #1a1a4e;
border-color: #e94560;
transform: translateX(6px);
box-shadow: 0 0 20px rgba(233, 69, 96, 0.25);
}
.sidebar-btn:active { cursor: grabbing }
.sidebar-btn .icon {
margin-right: 8px;
font-size: 18px;
}
.main {
position: relative;
flex: 1;
padding: 40px;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
}
.sidebar-right {
display: flex;
width: 400px;
min-height: 100vh;
flex-direction: column;
overflow-y: auto;
}
iframe {
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
}
textarea {
margin-top: 48px;
padding: 12px;
width: 100%;
min-height: 150px;
background: #0f3460;
border: 2px solid #0f3460;
border-radius: 12px;
color: #eee;
font-family: inherit;
font-size: 14px;
resize: vertical;
outline: none;
transition: border-color 0.3s;
}
textarea:focus { border-color: #e94560 }
textarea::placeholder { color: #cacaca }
.alert-btn {
width: 42px;
height: 42px;
margin: 24px auto 0 auto;
background: url('stars.png') center center no-repeat, linear-gradient(135deg, #e94560, #c23152);
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
}
.alert-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}
.submit-btn {
width: 126px;
margin: 24px auto 0 auto;
padding: 14px 0;
background: linear-gradient(135deg, #e94560, #c23152);
color: #fff;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
}
.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}
.drop-zone-wrapper {
width: 100%;
max-width: 700px;
min-height: 200px;
position: relative;
}
.drop-zone {
width: 100%;
min-height: 200px;
background: rgba(22, 33, 62, 0.5);
border: 2px dashed #0f3460;
border-radius: 16px;
padding: 24px;
display: flex;
flex-direction: column;
gap: 12px;
transition: border-color 0.3s, background 0.3s;
}
.drop-zone.drag-over {
border-color: #e94560;
background: rgba(233, 69, 96, 0.05);
}
.drop-zone .empty-hint {
text-align: center;
color: #cacaca;
font-size: 15px;
pointer-events: none;
transition: opacity 0.3s;
}
#alertBtnDos.hidden, .drop-zone .empty-hint.hidden { display: none }
.content-block {
background: #16213e;
border: 2px solid #0f3460;
border-radius: 12px;
padding: 16px 20px;
cursor: grab;
transition: box-shadow 0.2s, transform 0.15s;
position: relative;
user-select: none;
}
.content-block:hover {
border-color: #e94560;
box-shadow: 0 0 15px rgba(233, 69, 96, 0.15);
}
.content-block.dragging {
opacity: 0.4;
transform: scale(0.98);
}
.content-block .block-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: #e94560;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.content-block .block-label::before {
content: '⠿';
font-size: 14px;
color: #666;
}
.content-block textarea {
width: 100%;
min-height: 40px;
background: transparent;
border: none;
color: #eee;
font-family: inherit;
font-size: inherit;
resize: vertical;
outline: none;
line-height: 1.6;
user-select: text;
}
.content-block h1 {
font-size: 28px;
color: #fff;
}
.content-block h2 {
font-size: 22px;
color: #ddd;
}
.content-block h3 {
font-size: 18px;
color: #ccc;
}
.content-block p {
font-size: 15px;
color: #bbb;
line-height: 1.7;
}
.content-block blockquote {
font-style: italic;
color: #aaa;
border-left: 3px solid #e94560;
padding-left: 16px;
margin: 0;
}
.placeholder {
border: 2px dashed #e94560;
border-radius: 12px;
min-height: 60px;
background: rgba(233, 69, 96, 0.06);
transition: all 0.2s;
flex-shrink: 0;
}
.drag-ghost {
position: fixed;
pointer-events: none;
z-index: 9999;
background: #16213e;
border: 2px solid #e94560;
border-radius: 12px;
padding: 16px 20px;
opacity: 0.9;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
transform: rotate(2deg);
max-width: 400px;
}
.drag-ghost .block-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: #e94560;
margin-bottom: 8px;
}
.content-block .delete-btn {
position: absolute;
top: 8px;
right: 10px;
background: none;
border: none;
color: #555;
font-size: 18px;
cursor: pointer;
transition: color 0.2s;
opacity: 0;
user-select: none;
}
.content-block:hover .delete-btn { opacity: 1 }
.content-block .delete-btn:hover { color: #e94560 }
#reloadIFrame {
position: absolute;
top: 0;
right: 12px;
background: url(reload.svg) center center no-repeat, linear-gradient(135deg, #e94560, #c23152);
background-size: 28px 28px, cover;
z-index: 1;
}
.overlay {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 12;
background: rgba(0, 0, 0, 0.75);
cursor: pointer;
}
.overlay .window {
display: flex;
width: 1024px;
flex-direction: column;
padding: 16px;
border: 2px solid #0f3460;
border-radius: 12px;
background: #16213e;
cursor: auto;
}
.overlay .submit-btn {}
.overlay.hidden { display: none }
.ql-snow {
color: #000;
background: #fff;
}
.ql-editor { min-height: 300px; }
.ql-editor p, .ql-editor ol, .ql-editor pre, .ql-editor blockquote, .ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6 {
padding: 0 0 6px 0 !important;
letter-spacing: 0.01em;
}
.ql-snow[role="toolbar"] {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
#editor {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.content-block {
animation: fadeIn 0.35s ease-out;
}