/* Secure Ticket Vault - phase 1 styles */

.secure-vault-card .panel-heading,
.secure-vault-admin-card .panel-heading {
    font-weight: 600;
}

.secure-vault-alert {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.secure-vault-textarea {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.secure-vault-actions .btn + .btn {
    margin-left: 0.5rem;
}

/* --- File list (Phase 2) --- */

.secure-vault-file-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.secure-vault-file {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.15);
    font-size: 0.85rem;
}

.secure-vault-file:last-child {
    border-bottom: none;
}

.secure-vault-file-name {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    word-break: break-all;
}

.secure-vault-file a,
.secure-vault-file-note {
    margin-left: 0.75rem;
}

/* --- Activity log (admin only) --- */

.secure-vault-log-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    max-height: 220px;
    overflow-y: auto;
}

.secure-vault-log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.1);
}

.secure-vault-log-entry:last-child {
    border-bottom: none;
}

.secure-vault-log-ip {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.secure-vault-file-input {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* --- Secure message thread + internal notes --- */

.secure-vault-thread {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(127, 127, 127, 0.06);
    border: 1px solid rgba(127, 127, 127, 0.15);
    border-radius: 4px;
}

.secure-vault-message,
.secure-vault-note {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(127, 127, 127, 0.06);
    border: 1px solid rgba(127, 127, 127, 0.15);
    border-radius: 4px;
}

.secure-vault-message:last-child,
.secure-vault-note:last-child {
    margin-bottom: 0;
}

/* Client-side only: the client's own messages get a subtle accent so
   the conversation reads left/right like a normal chat. */
.secure-vault-message-mine {
    background: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
}

.secure-vault-message-meta {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.secure-vault-message-text {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Dark mode: relies on the theme's existing dark-mode root class/attr.
   Adjust the selector below to match whatever Lagom uses for dark mode
   in your installed version (e.g. [data-bs-theme="dark"] or .dark-mode). */
[data-bs-theme="dark"] .secure-vault-thread,
[data-bs-theme="dark"] .secure-vault-message,
[data-bs-theme="dark"] .secure-vault-note {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .secure-vault-message-mine {
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}
