/* 아람이어 공통 보정 (Color Admin v6 위에, reco.css 와 같은 규칙: ae- 접두사) */

/* 로그인 */
.ae-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #2d353c; }
.ae-login-box { width: 380px; max-width: calc(100% - 32px); }

/* 페이지 머리 */
.ae-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; min-height: 38px; }
.ae-head .page-header { margin: 0; font-size: 1.375rem; }
.ae-head .page-header small { font-size: .875rem; margin-left: .5rem; color: var(--bs-secondary-color); font-weight: 400; }
.ae-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.ae-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--bs-secondary-color); align-items: center; }
.ae-meta i { opacity: .7; margin-right: 2px; }

/* 카드 */
.ae-card { border: 0; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 1rem; }
.ae-card > .card-header { background: none; font-weight: 600; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color); display: flex; align-items: center; gap: .5rem; }
.ae-card > .card-header .actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.ae-card > .card-body { padding: 1rem; }
.ae-card > .card-footer { background: none; padding: .75rem 1rem; display: flex; justify-content: flex-end; gap: .5rem; }

/* 검색바 */
.ae-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.ae-search .form-control, .ae-search .form-select { width: auto; min-width: 140px; }
.ae-search .grow { flex: 1 1 260px; }

/* 표 */
.ae-table { margin-bottom: 0; }
.ae-table thead th { background: var(--bs-tertiary-bg); font-weight: 600; white-space: nowrap; font-size: .8125rem; }
.ae-table td, .ae-table th { vertical-align: middle; }
.ae-table td.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-table .col-act { width: 1%; white-space: nowrap; text-align: right; }
.ae-table tr.ae-done .ae-task { text-decoration: line-through; color: var(--bs-secondary-color); }

.form-label { font-weight: 600; font-size: .8125rem; margin-bottom: .25rem; }
.pre-line { white-space: pre-line; }
.ae-help { font-size: 12.5px; line-height: 1.65; color: var(--bs-secondary-color, #6c757d); }
.ae-help b { color: var(--bs-body-color, #212529); font-weight: 600; }
.bg-indigo { background-color: #8753de !important; }

/* 통계 */
.ae-stat { border-radius: .5rem; padding: 1rem 1.25rem; color: #fff; height: 100%; }
.ae-stat .label { font-size: .8125rem; opacity: .85; }
.ae-stat .value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.ae-stat a { color: #fff; opacity: .85; font-size: .8125rem; text-decoration: none; }
.ae-stat a:hover { opacity: 1; }
.ae-bars { display: flex; flex-direction: column; gap: 4px; }
.ae-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ae-bar-row .d { width: 42px; color: var(--bs-secondary-color); }
.ae-bar-row .b { flex: 1; background: var(--bs-tertiary-bg); border-radius: 3px; height: 10px; overflow: hidden; }
.ae-bar-row .b i { display: block; height: 100%; background: #348fe2; border-radius: 3px; }
.ae-bar-row .n { width: 24px; text-align: right; }

/* 브랜드 로고 */
.app-header .brand .brand-logo { display: flex; align-items: center; gap: 8px; }
.ae-logo { height: 22px; width: auto; }
.ae-logo-sub { font-size: 13px; font-weight: 600; color: #6c757d; padding-left: 8px; border-left: 1px solid #dee2e6; white-space: nowrap; }

/* 녹음기 */
.ae-recorder { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 14px; background: var(--bs-tertiary-bg); flex-wrap: wrap; }
.ae-rec-btn { width: 84px; height: 84px; border-radius: 50%; border: 0; background: #ff5b57; color: #fff; font-size: 32px;
    box-shadow: 0 6px 18px rgba(255, 91, 87, .35); transition: transform .15s; flex: 0 0 84px; }
.ae-rec-btn:hover:not(:disabled) { transform: scale(1.05); }
.ae-rec-btn:disabled { background: #adb5bd; box-shadow: none; }
.ae-recorder.recording .ae-rec-btn { animation: aeRec 1.4s infinite; }
@keyframes aeRec { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 87, .55); } 70% { box-shadow: 0 0 0 18px rgba(255, 91, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 87, 0); } }
.ae-rec-info { flex: 1; min-width: 180px; }
.ae-rec-time { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.ae-rec-state { font-size: 13px; color: var(--bs-secondary-color); }
.ae-meter { height: 6px; background: #dee2e6; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ae-meter > div { height: 100%; width: 0; background: linear-gradient(90deg, #00acac, #f59c1a, #ff5b57); transition: width .08s; }
.ae-rec-actions { display: flex; gap: 8px; }
.ae-or { text-align: center; margin: 18px 0; position: relative; color: var(--bs-secondary-color); font-size: 12px; }
.ae-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--bs-border-color); }
.ae-or span { position: relative; background: var(--bs-body-bg, #fff); padding: 0 10px; }
.ae-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed var(--bs-border-color);
    border-radius: 14px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; width: 100%; }
.ae-drop i { font-size: 28px; color: #348fe2; }
.ae-drop:hover, .ae-drop.over { background: #f1f7fe; border-color: #348fe2; }

/* 회의 상세 */
.ae-proc { display: flex; align-items: center; gap: 18px; padding: 26px 20px; }
.ae-list { margin: 0; padding-left: 1.1rem; }
.ae-list li { margin: 3px 0; }
.ae-hl { padding: 6px 0; border-bottom: 1px solid var(--bs-border-color); font-size: 14px; }
.ae-hl:last-child { border: 0; }
.ae-spk { display: inline-block; background: rgba(52, 143, 226, .14); color: #1a5fb4; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.ae-transcript-card { position: sticky; top: 70px; }
.ae-player { padding: 10px 1rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.ae-player audio { width: 100%; height: 36px; }
.ae-segs { max-height: calc(100vh - 260px); overflow-y: auto; position: relative; }
.ae-seg { padding: 6px 8px; border-radius: 8px; margin-bottom: 2px; }
.ae-seg-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ae-seg-time { color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.ae-seg-text { cursor: pointer; font-size: 14px; line-height: 1.65; padding-left: 2px; }
.ae-seg-text:hover { color: #1a5fb4; }
.ae-star { margin-left: auto; color: #ced4da; opacity: 0; transition: opacity .15s; }
.ae-seg:hover .ae-star, .ae-seg.hl .ae-star { opacity: 1; }
.ae-seg.hl { background: #fff8dc; }
.ae-seg.hl .ae-star { color: #f5b301; }
.ae-seg.playing { background: #e8f2fd; box-shadow: inset 3px 0 0 #348fe2; }
#btnHlOnly.active { background: #fff1b8; }
.ae-user-row { display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--bs-border-color); margin: 0; }

/* Q&A */
.ae-answer { border: 1px solid var(--bs-border-color); border-radius: 12px; padding: 14px 16px; background: #fbfcfe; line-height: 1.75; }
.ae-answer-q { font-weight: 700; margin-bottom: 6px; color: #1a5fb4; }
.ae-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-hint { border: 1px solid #d6dcf5; background: #fff; color: #4a3aa8; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; }
.chat-hint:hover { background: #f1efff; }
.ai-typing { display: inline-flex; gap: 4px; vertical-align: middle; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b6; animation: aiDot 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

@media (max-width: 767px) {
    .ae-recorder { justify-content: center; text-align: center; }
    .ae-rec-actions { width: 100%; justify-content: center; }
    .ae-transcript-card { position: static; }
    .ae-segs { max-height: none; }
}

/* 모바일 헤더: 로고가 아래 줄로 밀리지 않게 */
@media (max-width: 767px) {
    .app-header .brand { width: auto; flex: 1; min-width: 0; display: flex; align-items: center; }
    .app-header .brand .brand-logo { width: auto; padding: .5rem .5rem; }
    .ae-logo { height: 18px; }
    .ae-logo-sub { display: none; }
}

/* 상세: ★ 위치 표시줄, 검색어 강조 */
.ae-hlbar { position: relative; height: 10px; margin: 4px 0 6px; background: var(--bs-border-color-translucent); border-radius: 5px; }
.ae-hlbar:empty { display: none; }
.ae-hlbar span { position: absolute; top: -2px; width: 4px; height: 14px; margin-left: -2px; background: #f5b301; border-radius: 2px; cursor: pointer; }
.ae-seg-text mark { background: #ffe58f; padding: 0 1px; border-radius: 2px; }
