* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #050505; color: white; font-family: 'Segoe UI', sans-serif; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

header { height: 60px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 2px solid #FFD700; flex-shrink: 0; }
.logo { color: #FFD700; font-size: 24px; font-weight: bold; letter-spacing: 2px; }

#tabs-container { display: flex; align-items: center; gap: 8px; flex: 1; margin: 0 30px; overflow-x: auto; }
.tab { background: #111; color: #888; border: 1px solid #333; padding: 8px 18px; cursor: pointer; border-radius: 5px 5px 0 0; white-space: nowrap; }
.tab.active { background: #222 !important; color: #FFD700 !important; border: 1px solid #FFD700 !important; border-bottom: none !important; }
.btn-add { background: transparent; color: #FFD700; border: 1px dashed #FFD700; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: bold; font-size: 20px; flex-shrink: 0; }

.main-container { flex: 1; display: flex; width: 100%; overflow: hidden; }
.column { display: flex; flex-direction: column; border-right: 1px solid #222; height: 100%; }

#dictionary-col { width: 350px; background: #080808; flex-shrink: 0; }
#editor-col { flex: 3; background: #0a0a0a; min-width: 400px; }
#preview-col { width: 280px; background: #080808; border-right: none; flex-shrink: 0; }

.col-header { background: #111; padding: 12px 15px; color: #FFD700; font-weight: bold; font-size: 12px; text-transform: uppercase; border-bottom: 1px solid #222; }
textarea { flex: 1; width: 100%; background: transparent; color: #efefef; padding: 25px; font-family: 'Consolas', monospace; font-size: 18px; border: none; outline: none; line-height: 1.6; resize: none; }
.scroll-area { flex: 1; overflow-y: auto; padding: 15px; }

.tag-item { background: #111; padding: 15px; margin-bottom: 12px; border-radius: 8px; border-left: 5px solid #FFD700; border-bottom: 1px solid #222; cursor: pointer; transition: 0.2s; }
.tag-item:hover { background: #1a1a1a; transform: translateX(5px); }
.tag-item h4 { font-size: 15px; color: #FFD700; margin-bottom: 5px; }
.tag-item p { font-size: 11px; color: #777; line-height: 1.4; }

.btn-export { background: #FFD700; color: black; border: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-preview { background: #222; color: #FFD700; border: 1px solid #FFD700; padding: 12px; cursor: pointer; margin: 15px; border-radius: 6px; font-weight: bold; }

#live-view-container { position: fixed; inset: 40px; background: white; z-index: 9999; display: flex; flex-direction: column; border: 4px solid #FFD700; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.view-header { background: #222; color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none !important; }
iframe { flex: 1; border: none; background: white; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-content { background: #111; padding: 40px; border: 2px solid #FFD700; border-radius: 12px; text-align: center; }
.btn-confirm { background: #FFD700; padding: 10px 20px; border: none; cursor: pointer; font-weight: bold; margin-right: 10px; }
.btn-cancel { background: #333; color: white; padding: 10px 20px; border: none; cursor: pointer; }