/* Navbar SaaS style extracted from index.php to keep layout clean and reusable */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Icon button (info) */
.nav-icon-btn {
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.15s;
    padding: 0;
}
.nav-icon-btn:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

/* Modal base */
.modal-backdrop-lite {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-backdrop-lite.show { display: flex; }
.modal-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    padding: 20px 22px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.modal-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.modal-card p {
    margin: 6px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}
.modal-card .muted { color: #64748b; font-size: 12px; }
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}
.modal-close-btn:hover { color: #0f172a; }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: none;
    z-index: 25;
}
.nav-container {
    background: #0f172a;
    color: #f8fafc;
    padding: 0 18px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #111827;
}
.nav-left { display: flex; align-items: center; gap: 20px; height: 100%; }
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.nav-brand i { color: #3b82f6; font-size: 17px; }
.nav-menu { display: flex; align-items: center; height: 100%; gap: 4px; }
.nav-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-item { position: relative; height: 100%; }
.nav-root > .nav-item > a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0 12px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    gap: 6px;
}
.nav-root > .nav-item > a:hover {
    color: #f8fafc;
    background: rgba(255,255,255,0.05);
    border-bottom-color: #3b82f6;
}
.nav-root > .nav-item.active > a {
    color: #ffffff;
    border-bottom-color: #3b82f6;
    background: rgba(255,255,255,0.02);
}
.nav-root > .nav-item.has-children > a { padding-right: 10px; }
.nav-label { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
    transition: transform 0.15s ease, color 0.15s ease;
}
.nav-item.has-children:hover > a .nav-caret,
.nav-item.has-children.show > a .nav-caret { transform: rotate(180deg); color: #f8fafc; }
.nav-sub {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    z-index: 30;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: -1px;
}
.nav-item.has-children.show > .nav-sub { display: block; }
.nav-sub .nav-item { margin: 0; }
.nav-sub .nav-item > a {
    color: #475569;
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s;
}
.nav-sub .nav-item > a:hover { color: #0f172a; background: #f1f5f9; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
    color: #e2e8f0;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
    background: rgba(255,255,255,0.03);
}
.nav-user:hover { background: rgba(255,255,255,0.05); color: #ffffff; }
.nav-user .user-icon {
    background: #3b82f6;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
}
.nav-user-wrapper { position: relative; }
.nav-sub-user { top: 100%; right: 0; left: auto; min-width: 180px; }
.nav-sub-user.show { display: block; }
.php-version-badge {
    position: fixed;
    top: 10px;
    right: 12px;
    font-size: 10px;
    color: #7a7a7a;
    font-family: Arial, sans-serif;
    opacity: 0.8;
    pointer-events: none;
}
