/* ─── Cuprum Barrel Tracker Theme ─────────────────────────────────────────── */
:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222;
    --bg-input: #151515;
    --border: #2a2a2a;
    --border-focus: #c47a2a;
    --copper: #c47a2a;
    --copper-light: #d4943e;
    --copper-dark: #a05e1a;
    --copper-glow: rgba(196, 122, 42, 0.15);
    --copper-glow-strong: rgba(196, 122, 42, 0.3);
    --gold: #d4a855;
    --text: #e8e0d6;
    --text-muted: #8a8078;
    --text-dim: #5a5550;
    --green: #4a9e6a;
    --green-bg: rgba(74, 158, 106, 0.1);
    --red: #c45a4a;
    --red-bg: rgba(196, 90, 74, 0.1);
    --yellow: #c4a03a;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Subtle background texture ───────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--copper-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 122, 42, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #161616 0%, #111 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.brand-icon {
    color: var(--copper);
    font-size: 1.4rem;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--copper);
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 2rem;
    flex: 1;
}

.nav-links a, .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.nav-links a:hover, .nav-dropdown-trigger:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active, .nav-dropdown-trigger.active { color: var(--copper); background: var(--copper-glow); }
.nav-icon { font-size: 0.75rem; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    padding: 0.25rem 0;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.nav-dropdown-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.btn-logout {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}
.btn-logout:hover { color: var(--red); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ─── Container ───────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.container-wide { max-width: 1400px; }
.container-narrow { max-width: 700px; }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: 1.8rem; color: var(--copper); margin-bottom: 0.5rem; }
h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; color: var(--text-muted); }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover { border-color: rgba(196, 122, 42, 0.2); }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--copper-glow);
}

.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copper) 0%, var(--copper-dark) 100%);
    color: #fff;
    border-color: var(--copper);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
    box-shadow: 0 4px 16px rgba(196, 122, 42, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }

.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: rgba(196, 90, 74, 0.3);
}
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }

.btn-success {
    background: transparent;
    color: var(--green);
    border-color: rgba(74, 158, 106, 0.3);
}
.btn-success:hover { background: var(--green-bg); border-color: var(--green); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Barrel Grid ─────────────────────────────────────────────────────────── */
.barrel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.barrel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.barrel-card:hover {
    border-color: var(--copper);
    box-shadow: 0 4px 24px rgba(196, 122, 42, 0.15);
    transform: translateY(-2px);
}

.barrel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.barrel-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--copper);
}

.barrel-spirit {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.barrel-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.barrel-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.barrel-meta-label { color: var(--text-dim); }
.barrel-meta-value { color: var(--text); }

/* ─── Age Status ──────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-ready {
    color: var(--green);
    background: var(--green-bg);
}

.status-aging {
    color: var(--yellow);
    background: rgba(196, 160, 58, 0.1);
}

.status-archived {
    color: var(--text-dim);
    background: rgba(255,255,255,0.04);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-fill.aging {
    background: linear-gradient(90deg, var(--copper-dark), var(--copper-light));
}

.progress-fill.ready {
    background: var(--green);
}

/* ─── Flash Messages ──────────────────────────────────────────────────────── */
.flash-messages { margin-bottom: 1.5rem; }

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    animation: flashIn 0.3s ease;
}

.flash-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(74, 158, 106, 0.2); }
.flash-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(196, 90, 74, 0.2); }
.flash-info { background: var(--copper-glow); color: var(--copper); border: 1px solid rgba(196, 122, 42, 0.2); }

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Login Page ──────────────────────────────────────────────────────────── */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand .brand-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.login-brand .brand-text { font-size: 1.8rem; }
.login-brand .brand-sub { display: block; margin-top: 0.25rem; font-size: 0.8rem; }

.locked-msg {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--red);
}

/* ─── Search Bar ──────────────────────────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-wrap .form-input {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ─── Detail Page ─────────────────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-section { margin-bottom: 2rem; }
.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.15rem;
}
.detail-value {
    font-size: 1.05rem;
    color: var(--text);
}

.detail-hero {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.detail-hero .barrel-name {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

/* ─── QR Section ──────────────────────────────────────────────────────────── */
.qr-section {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.qr-preview {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    display: inline-block;
}

.qr-preview img {
    display: block;
    width: 180px;
    height: 180px;
    image-rendering: pixelated;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ─── Attachments ─────────────────────────────────────────────────────────── */
.attachment-list { list-style: none; }
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.attachment-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--copper-glow);
    color: var(--copper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.attachment-name {
    font-size: 0.88rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.attachment-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ─── Upload Area ─────────────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--copper);
    background: var(--copper-glow);
}

.upload-area-icon { font-size: 2rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.upload-area-text { font-size: 0.88rem; color: var(--text-muted); }

/* ─── Print Page ──────────────────────────────────────────────────────────── */
.print-page { background: #fff; color: #111; padding: 2rem; }
.print-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #c47a2a;
}
.print-info { font-size: 0.9rem; }
.print-info dt { font-weight: 600; color: #555; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.print-info dd { margin: 0 0 0.5rem; }

.print-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media print {
    .print-controls, .navbar { display: none !important; }
    .print-page { padding: 0; }
    body { background: #fff; }
    body::before { display: none; }
}

/* ─── Archive Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal h2 { margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ─── Admin Tables ────────────────────────────────────────────────────────── */
.admin-section { margin-bottom: 2rem; }
.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.inline-form .form-group { margin-bottom: 0; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; }
    .nav-links { display: none; flex-direction: column; width: 100%; margin-left: 0; margin-top: 0.5rem; }
    .navbar.open .nav-links { display: flex; }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-user { display: none; }
    .navbar.open .nav-user { display: flex; width: 100%; justify-content: center; margin-top: 0.5rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .barrel-grid { grid-template-columns: 1fr; }
    .container { padding: 1rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Error Page ──────────────────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}
.error-code {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1;
}
.error-msg {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ─── Misc ────────────────────────────────────────────────────────────────── */
.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.text-muted { color: var(--text-muted); }
.text-copper { color: var(--copper); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
}

a { color: var(--copper); transition: var(--transition); }
a:hover { color: var(--copper-light); }

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ─── Checkbox toggle ─────────────────────────────────────────────────────── */
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
    accent-color: var(--copper);
    width: 16px;
    height: 16px;
}

/* ─── Attachment Preview Grid ─────────────────────────────────────────────── */
.attachment-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.attachment-preview-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.attachment-preview-card:hover {
    border-color: var(--copper);
    box-shadow: 0 4px 16px rgba(196, 122, 42, 0.15);
}

.attachment-preview-link {
    display: block;
    text-decoration: none;
}

.attachment-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-preview-card:hover .attachment-thumb img {
    transform: scale(1.04);
}

.attachment-thumb-pdf {
    background: linear-gradient(135deg, #1a1510 0%, #111 100%);
}

.attachment-thumb-doc {
    background: linear-gradient(135deg, #101520 0%, #111 100%);
}

.pdf-preview-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pdf-icon-svg {
    width: 48px;
    height: 56px;
    opacity: 0.7;
}

.pdf-icon-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--copper);
    letter-spacing: 0.1em;
}

.attachment-preview-info {
    padding: 0.65rem 0.75rem;
}

.attachment-preview-info .attachment-name {
    display: block;
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.attachment-preview-info .attachment-name:hover {
    color: var(--copper);
}

.attachment-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* ─── Audit Log Badges ────────────────────────────────────────────────────── */
.log-action-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.log-created       { background: rgba(74,158,106,0.15); color: var(--green); }
.log-edited        { background: rgba(196,160,58,0.15); color: var(--yellow); }
.log-archived      { background: rgba(196,90,74,0.15);  color: var(--red); }
.log-unarchived    { background: rgba(74,158,106,0.1);  color: var(--green); }
.log-file-uploaded { background: rgba(196,122,42,0.15); color: var(--copper); }
.log-file-deleted  { background: rgba(196,90,74,0.1);   color: var(--red); }

/* ─── v6 Additions ────────────────────────────────────────────────────────── */

/* Warning flash (inspection due soon) */
.flash-warning {
    background: rgba(196, 160, 58, 0.12);
    border: 1px solid rgba(196, 160, 58, 0.4);
    color: var(--yellow);
}

/* LALs copper highlight */
.text-copper {
    color: var(--copper);
    font-weight: 500;
}

/* Inspection status badge on cards */
.status-badge.status-inspect-due {
    background: rgba(196, 160, 58, 0.15);
    color: var(--yellow);
}
.status-badge.status-inspect-overdue {
    background: var(--red-bg);
    color: var(--red);
}

/* Location row in barrel cards */
.barrel-meta-item .barrel-meta-value.location-text {
    color: var(--text-muted);
    font-size: 0.82rem;
}
