
/* COMPOSER: Holographic, Scanlines */
.composer-area { 
    padding: 10px 16px; 
    background: linear-gradient(to top, #000 90%, transparent); 
    z-index: 60; position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* MINIMIZED STATE */
.composer-area.minimized {
    transform: translateY(calc(100% - 42px)); /* Keep header visible */
    cursor: pointer;
}
.composer-area.minimized .composer-box { 
    border-bottom-left-radius: 0; 
    border-bottom-right-radius: 0; 
    border-color: var(--neon-gold);
}
.composer-area.minimized .composer-content { opacity: 0; pointer-events: none; }

/* FULLSCREEN STATE */
.composer-area.fullscreen {
    position: fixed; inset: 0; padding: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
}
.composer-area.fullscreen .composer-box {
    height: 100%; border-radius: 0; border: none;
    display: flex; flex-direction: column;
}
.composer-area.fullscreen .composer-content { flex: 1; display: flex; flex-direction: column; }
.composer-area.fullscreen .input-wrapper { flex: 1; }
.composer-area.fullscreen .message-input { max-height: none; height: 100%; }

.composer-box {
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transition: border-color 0.3s;
}
.composer-box:focus-within { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }

/* VISUAL TABS */
.composer-tabs { display: flex; gap: 4px; padding: 8px 10px 0 10px; }
.mode-tab {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary); padding: 4px 10px; font-size: 0.65rem;
    border-radius: 6px 6px 0 0; cursor: pointer; transition: 0.2s;
    font-weight: bold; letter-spacing: 0.5px;
}
.mode-tab:hover { background: rgba(255,255,255,0.05); }
.mode-tab.active { 
    background: rgba(6, 182, 212, 0.1); color: var(--neon-cyan); 
    border-color: var(--neon-cyan); border-bottom-color: transparent;
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* WINDOW CONTROLS */
.gap-2 { gap: 8px; }
.win-ctrl:hover { color: #fff; border-color: #fff; }

/* SUBJECT TOGGLE */
.subject-wrapper { padding: 8px 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); animation: slideDown 0.2s; }
.subject-input {
    width: 100%; background: transparent; border: none;
    color: var(--neon-gold); font-weight: 700; outline: none;
    font-size: 0.9rem;
}
@keyframes slideDown { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }

/* INPUTS */
.message-input {
    width: 100%; min-height: 120px; max-height: 300px; overflow-y: auto;
    background: transparent; border: none; color: #fff; padding: 16px;
    font-size: 1rem; outline: none; line-height: 1.6;
}
.visual-editor { white-space: pre-wrap; }
.source-editor { font-family: 'Courier New', monospace; font-size: 0.9rem; color: #a5f3fc; resize: none; }

/* REPLY SHARD STYLE */
.reply-shard {
    background: rgba(6, 182, 212, 0.1);
    border-left: 3px solid var(--neon-cyan);
    padding: 8px 12px; margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem; color: #ccc;
    position: relative;
    user-select: none;
}
.shard-meta { font-size: 0.7rem; color: var(--neon-cyan); margin-bottom: 4px; font-weight: bold; text-transform: uppercase; }
.shard-body { opacity: 0.8; font-style: italic; }

/* TOOLBAR */
.visual-toolbar { 
    display: flex; gap: 4px; padding: 6px 10px; background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.visual-toolbar button {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: #ccc; width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.visual-toolbar button:hover { color: #fff; border-color: var(--neon-cyan); }

.icon-btn {
    background: none; border: none; font-size: 1rem; cursor: pointer; opacity: 0.7; transition: 0.2s; color: #fff;
}
.icon-btn:hover { opacity: 1; transform: scale(1.1); }

.send-btn {
    margin: 4px; width: 42px; height: 42px;
    background: var(--neon-gold); border: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 0 15px var(--neon-gold-dim);
    transition: transform 0.2s; color: #000; font-size: 1.4rem;
}
.send-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 0 25px var(--neon-gold); }
