/* style.css - Style global compact et dynamique pour L-Vault */

:root {
    --app-font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --app-font-size: 88%;
    --pico-font-family: var(--app-font-family);
}

/* Application prioritaire sur l'ensemble du DOM */
html, body, button, input, select, textarea, table, h1, h2, h3, h4, h5, h6 {
    font-family: var(--app-font-family) !important;
}

html {
    font-size: var(--app-font-size) !important;
}

body {
    padding-bottom: 30px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--pico-border-color);
    padding-bottom: 0.8rem;
}

.header-bar h1 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--pico-border-color);
    padding-bottom: 8px;
}

.nav-tabs a {
    padding: 4px 12px;
    font-size: 0.9em;
}

article {
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}

article header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    font-size: 1.05em;
}

input, select, textarea, button {
    font-size: 0.95em !important;
    padding: 6px 10px !important;
    margin-bottom: 0.8rem;
}

table {
    font-size: 0.9em;
}

table th, table td {
    padding: 6px 10px;
    vertical-align: middle;
}

.badge {
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.badge-peda { background-color: #0284c7; color: #ffffff; }
.badge-sc { background-color: #d97706; color: #ffffff; }
.badge-mixte { background-color: #7c3aed; color: #ffffff; }
.badge-custom { background-color: #4b5563; color: #ffffff; }
.badge-empty { background-color: #9ca3af; color: #ffffff; font-style: italic; }

.status-ok { color: #16a34a; font-weight: bold; }
.status-warning { color: #d97706; font-weight: bold; }
.status-danger { color: #dc2626; font-weight: bold; }

.actions-cell {
    text-align: center;
    white-space: nowrap;
}

pre.key-block {
    font-family: monospace !important;
    font-size: 0.85em;
    background: rgba(0,0,0,0.05);
    padding: 6px;
    border-radius: 4px;
    max-height: 100px;
    overflow-y: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

code {
    font-size: 0.85em;
}