/* Custom styles for Transcrypt app */

/* Buttons */
button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
}

button:hover {
    background-color: #1d4ed8;
}

button:active {
    background-color: #1e40af;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.top-nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.welcome-user {
    font-weight: 600;
    color: #1f2937;
}

.landing-hero {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.landing-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.landing-subtitle {
    color: #334155;
    max-width: 760px;
    font-size: 1.05rem;
}

.landing-image {
    display: block;
    max-width: 180px;
    height: auto;
}

.landing-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.landing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

.landing-card h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.landing-card p {
    margin: 0;
    color: #475569;
    font-size: 0.93rem;
}

.auth-card {
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.2fr 0.8fr auto;
    gap: 8px;
}

.summary-system-message {
    min-width: 260px;
    font-size: 0.85rem;
}

.save-summary-btn {
    margin-right: 6px;
}

.danger-btn {
    background-color: #ef4444;
}

.danger-btn:hover {
    background-color: #dc2626;
}

/* Status messages */
#status {
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

body {
    padding-bottom: 152px;
}

.bottom-dock {
    position: sticky;
    bottom: 0;
    z-index: 50;
    width: 100%;
    padding: 0 0 10px;
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.82), transparent);
    backdrop-filter: blur(6px);
}

.bottom-dock .bottom-status {
    margin-top: 8px;
}

#status.info {
    display: block;
    background-color: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

#status.loading {
    display: block;
    background-color: #fefce8;
    border: 1px solid #fcd34d;
    color: #92400e;
}

#status.success {
    display: block;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

#status.error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Transcript area */
#transcript {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
    white-space: pre-wrap;
}

.segment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.segment-main {
    flex: 1;
    min-width: 0;
}

.segment-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: min(330px, 42%);
}

.segment {
    flex: 1;
    min-width: 0;
}

.timestamp {
    font-size: 0.8rem;
    color: #6b7280;
    margin-right: 6px;
}

#actorControls {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 12px;
}

.actor-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.actor-input-row .form-control {
    max-width: 280px;
}

.actor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.actor-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--actor-color, #93c5fd);
    background: color-mix(in srgb, var(--actor-color, #93c5fd) 15%, white);
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 600;
}

.actor-tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.actor-tag:hover {
    background: #f1f5f9;
}

.actor-tag.actor-assigned {
    border-color: var(--actor-color, #93c5fd);
    background: color-mix(in srgb, var(--actor-color, #93c5fd) 18%, white);
    color: #0f172a;
}

.segment-note {
    width: 100%;
    min-height: 58px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.84rem;
    color: #0f172a;
    background: #fff9c4;
    resize: vertical;
}

.segment-note:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

@media (max-width: 900px) {
    .segment-row {
        flex-wrap: wrap;
    }

    .segment-meta-right {
        width: 100%;
        align-items: stretch;
    }
}

.highlight {
    background-color: #fef08a;
    border-radius: 2px;
}

.edited {
    background-color: #dbeafe;
    border-radius: 2px;
    outline: 1px dashed #93c5fd;
}

/* Audio player */
#player {
    display: block;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    background: white;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.summary-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    line-height: 1.45;
}

.summary-box h1,
.summary-box h2,
.summary-box h3,
.summary-box h4 {
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
}

.summary-box p {
    margin: 0.4rem 0;
}

.summary-box ul,
.summary-box ol {
    margin: 0.35rem 0 0.35rem 1.2rem;
}

.summary-box code {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 1px 4px;
    border-radius: 4px;
}

.summary-box pre {
    background: #dbeafe;
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
}
