/* Postflo premium/minimal global polish.
   Keep structure and page-specific colors intact; only refine rhythm and hierarchy. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --pf-nav-bg: rgba(8, 9, 11, 0.92);
    --pf-stroke: rgba(255, 255, 255, 0.08);
    --pf-stroke-strong: rgba(255, 255, 255, 0.16);
    --pf-text-soft: rgba(240, 237, 230, 0.74);
    --pf-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --pf-font-main: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Global font override for a consistent app-wide font treatment. */
html, body,
h1, h2, h3, h4, h5, h6,
p, span, div, li, label,
a, button, input, select, textarea,
th, td {
    font-family: var(--pf-font-main) !important;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep nav language intact, but tighten it and add a premium glass feel */
nav {
    background: var(--pf-nav-bg) !important;
    border-bottom-color: var(--pf-stroke) !important;
    backdrop-filter: saturate(130%) blur(14px);
    -webkit-backdrop-filter: saturate(130%) blur(14px);
}

.nav-actions,
.nav-links {
    gap: 10px;
}

.nav-actions > *,
.nav-links > * {
    flex-shrink: 0;
}

/* User request: avatar must be visually last in the row */
.nav-actions .avatar-wrap,
.nav-links .avatar-wrap {
    order: 999;
    margin-left: 6px;
}

.nav-link,
.nav-btn {
    border-color: var(--pf-stroke) !important;
    color: var(--pf-text-soft) !important;
    border-radius: 2px;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-btn:hover {
    border-color: var(--pf-stroke-strong) !important;
    color: #f0ede8 !important;
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

.user-avatar {
    border: 1px solid var(--pf-stroke-strong) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
}

.avatar-menu {
    border-color: var(--pf-stroke) !important;
    background: rgba(10, 11, 13, 0.96) !important;
    box-shadow: var(--pf-shadow);
    backdrop-filter: saturate(130%) blur(12px);
    -webkit-backdrop-filter: saturate(130%) blur(12px);
}

/* Harmonize clickable controls without repainting each page theme */
.copy-btn,
.pdf-btn,
.btn,
.btn-gold,
.btn-blue,
.btn-cyan,
.followup-btn,
.view-link,
.action-btn,
button {
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.copy-btn:hover,
.pdf-btn:hover,
.btn:hover,
.btn-gold:hover,
.btn-blue:hover,
.btn-cyan:hover,
.followup-btn:hover,
.view-link:hover,
.action-btn:hover {
    transform: translateY(-1px);
}

.nav-link:focus-visible,
.nav-btn:focus-visible,
.copy-btn:focus-visible,
.pdf-btn:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.72), 0 0 0 4px rgba(201, 168, 76, 0.2);
}

@media (max-width: 900px) {
    .nav-actions,
    .nav-links {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-actions .avatar-wrap,
    .nav-links .avatar-wrap {
        order: 999;
        margin-left: 0;
    }
}
