/* Bridge AI — kabinet (dashboard) uslublari. Umumiy uslublar ../assets/site.css da. */

.card:hover { transform: none; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); }

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    border-radius: .85rem;
    color: #cbd5e1;
    font-weight: 400;
    font-size: .95rem;
    transition: background-color .2s ease, color .2s ease;
}
.side-link:hover { background: rgba(124, 92, 255, 0.12); color: #fff; }
.side-link.active {
    background: linear-gradient(90deg, rgba(226, 59, 255, 0.22), rgba(124, 92, 255, 0.08));
    color: #fff;
    box-shadow: inset 2px 0 0 var(--magenta);
}
.badge {
    min-width: 1.4rem;
    padding: 0 .4rem;
    height: 1.4rem;
    display: inline-grid;
    place-items: center;
    border-radius: 9999px;
    background: var(--magenta);
    color: #fff;
    font-size: .72rem;
    font-weight: 500;
}

.input, .select, .textarea {
    width: 100%;
    background: rgba(6, 4, 26, 0.7);
    border: 1px solid var(--line);
    border-radius: .85rem;
    padding: .75rem 1rem;
    color: #f1f5f9;
    font-weight: 300;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { min-height: 14rem; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(226, 59, 255, 0.18);
}
.select option { background: #0d0a24; color: #f1f5f9; }
.select optgroup { background: #0d0a24; color: #94a3b8; font-style: normal; }
.label { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: .4rem; }
.btn-glow, .btn-ghost { cursor: pointer; font-weight: 400; }
button.btn-glow { border: 0; }

.flash { padding: .8rem 1.1rem; border-radius: .85rem; margin-bottom: 1.25rem; font-size: .95rem; font-weight: 400; }
.flash-ok { background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.4); color: #99f6e4; }
.flash-error { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.45); color: #fda4af; }

.bar { height: 8px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--teal), var(--magenta)); }

.score {
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2rem;
    padding: 0 .5rem;
    border-radius: .6rem;
    font-weight: 500;
    font-size: .95rem;
}
.score-high { background: rgba(94, 234, 212, 0.14); color: #5eead4; }
.score-mid { background: rgba(250, 204, 21, 0.12); color: #fde047; }
.score-low { background: rgba(244, 63, 94, 0.12); color: #fda4af; }

.status { display: inline-block; padding: .2rem .7rem; border-radius: 9999px; font-size: .75rem; font-weight: 400; white-space: nowrap; }
.st-pending { background: rgba(250, 204, 21, 0.12); color: #fde047; }
.st-ok { background: rgba(94, 234, 212, 0.14); color: #5eead4; }
.st-no { background: rgba(148, 163, 184, 0.14); color: #94a3b8; }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; padding: .75rem 1rem; white-space: nowrap; }
.table td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.me td { background: rgba(226, 59, 255, 0.08); }
.table-wrap { overflow-x: auto; }

.ring { --v: 0; width: 148px; height: 148px; border-radius: 9999px; display: grid; place-items: center; flex-shrink: 0;
    background: conic-gradient(var(--magenta) calc(var(--v) * 1%), var(--line) 0); }
.ring > div { width: 122px; height: 122px; border-radius: 9999px; background: #0d0a24; display: grid; place-items: center; text-align: center; }

.prose-task { white-space: pre-line; line-height: 1.7; color: #cbd5e1; }
.answer-box { white-space: pre-wrap; word-break: break-word; line-height: 1.6; color: #cbd5e1; font-size: .92rem; max-height: 16rem; overflow: auto; }

.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9999px; background: rgba(6, 4, 26, 0.6); flex-shrink: 0; }
.view-switch a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 9999px; font-size: .85rem; font-weight: 400; color: #94a3b8; transition: color .2s ease, background-color .2s ease; }
.view-switch a:hover { color: #fff; }
.view-switch a.active { background: linear-gradient(90deg, rgba(226, 59, 255, 0.3), rgba(124, 92, 255, 0.25)); color: #fff; }

.board { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
.board-col { background: rgba(6, 4, 26, 0.55); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem; min-height: 7rem; }
.board-col > h3 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-bottom: .75rem; display: flex; justify-content: space-between; }
.task-card { background: #120e30; border: 1px solid var(--line); border-radius: .8rem; padding: .8rem .9rem; margin-bottom: .7rem; }
.task-card.mine { border-color: rgba(226, 59, 255, 0.55); }
.mini { background: none; border: 1px solid var(--line); border-radius: 9999px; color: #cbd5e1; font-size: .72rem; padding: .15rem .6rem; cursor: pointer; font-family: inherit; }
.mini:hover { border-color: var(--teal); color: var(--teal); }
.mini.danger:hover { border-color: #fb7185; color: #fb7185; }
.msg { padding: .7rem .9rem; border-radius: .9rem; background: #120e30; border: 1px solid var(--line); }
.msg.own { background: rgba(226, 59, 255, 0.1); border-color: rgba(226, 59, 255, 0.35); }
.late { color: #fda4af; }

.st-late { background: rgba(244, 63, 94, 0.14); color: #fda4af; }
.note { display: block; padding: .9rem 1.1rem; border-radius: .9rem; border: 1px solid var(--line); background: #120e30; }
.note.unread { border-color: rgba(226, 59, 255, 0.5); background: rgba(226, 59, 255, 0.08); }
