/* ═════════════════════════════════════════════════════════════════════
   Neanes Copilot Overlay — Floating Byzantine Assistant inside Neanes
   ═════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'NeanesFont';
    src: url('/neanes-app/assets/NeanesEngraving-DdBZ_JJu.otf') format('opentype'),
         url('./assets/NeanesEngraving-DdBZ_JJu.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


.neanes-copilot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: linear-gradient(135deg, #d4af37, #997e26);
    color: #0c0e14;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    padding: 10px 20px;
    font-family: 'Cinzel', serif, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    user-select: none;
}

.neanes-copilot-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.6);
}

.neanes-copilot-window {
    position: fixed;
    top: 60px;
    right: 24px;
    width: 440px;
    height: 620px;
    max-height: calc(100vh - 90px);
    z-index: 99999;
    background: rgba(12, 15, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f1f3f7;
    animation: slideInCopilot 0.25s ease-out;
}

@keyframes slideInCopilot {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.copilot-header {
    background: rgba(22, 27, 38, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.copilot-header-title {
    font-family: 'Cinzel', serif, Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copilot-header-actions button {
    background: transparent;
    border: none;
    color: #9aa4b8;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.copilot-header-actions button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.copilot-nav-tabs {
    background: rgba(16, 20, 29, 0.9);
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.copilot-nav-tab {
    background: transparent;
    border: none;
    color: #9aa4b8;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.copilot-nav-tab:hover {
    color: #fff;
}

.copilot-nav-tab.active {
    color: #ffd700;
    border-bottom-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.copilot-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.copilot-pane {
    display: none;
}

.copilot-pane.active {
    display: block;
}

.overlay-form-group {
    margin-bottom: 12px;
}

.overlay-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 4px;
}

.overlay-textarea, .overlay-input, .overlay-select {
    width: 100%;
    background: rgba(20, 25, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #f1f3f7;
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
}

.overlay-textarea:focus, .overlay-input:focus, .overlay-select:focus {
    border-color: #d4af37;
}

.overlay-btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0c0e14;
    border: 1px solid #ffd700;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.overlay-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f3f7;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.overlay-score-box {
    margin-top: 12px;
    background: rgba(14, 18, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 12px;
    max-height: 240px;
    overflow-y: auto;
}

.overlay-neumes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
    padding: 8px 0;
}

.overlay-neume-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 52px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.overlay-neume-cell:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.2);
}

.byz-neume-glyph {
    font-family: 'NeanesFont', 'Neanes', 'NeanesEngraving', serif;
    font-size: 38px;
    line-height: 1;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

.byz-neume-glyph.martyria {
    color: #e5484d;
    text-shadow: 0 0 12px rgba(229, 72, 77, 0.4);
    font-size: 34px;
}

.overlay-neume-pitch {
    font-size: 11px;
    color: #e5484d;
    font-weight: 700;
    font-family: 'Cinzel', serif, monospace;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.overlay-neume-syll {
    font-size: 12px;
    color: #f1f3f7;
    margin-top: 2px;
    font-weight: 500;
}

.overlay-btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: 1px solid #34d399;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.overlay-btn-accent:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

