/* ==========================================================================
   about-manual.css — styles for about.php (About Naro POS + user manual)
   Loaded through $page_css in includes/header.php, or directly by the
   public (signed-out) view of about.php.
   ========================================================================== */

/* ---------- HERO ---------- */
.manual-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #667eea 100%);
    color: #fff;
    border-radius: 20px;
    padding: 30px 32px;
    margin-bottom: 22px;
    box-shadow: 0 12px 34px rgba(26, 26, 46, 0.22);
    flex-wrap: wrap;
}
.manual-hero-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.manual-hero h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}
.manual-hero-tag {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a5b4fc;
}
.manual-hero-sub {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}
.manual-hero-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.manual-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 12px;
    font-weight: 500;
}
@media (max-width: 700px) {
    .manual-hero { padding: 22px 20px; gap: 16px; }
    .manual-hero h1 { font-size: 23px; }
    .manual-hero-logo { width: 72px; height: 72px; }
}

/* ---------- ROLE QUICK PICKER ---------- */
.manual-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.manual-role-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    background: #fff;
    border: 1px solid #e9eaf1;
    border-radius: 14px;
    padding: 15px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}
.manual-role-card i { font-size: 19px; color: #667eea; margin-bottom: 5px; }
.manual-role-card strong { font-size: 14px; color: #1a1a2e; font-weight: 700; }
.manual-role-card span { font-size: 12px; color: #7a8194; line-height: 1.45; }
.manual-role-card:hover {
    transform: translateY(-3px);
    border-color: #c7cdf7;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.16);
}

/* ---------- TAB STRIP ---------- */
.manual-tabs {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 4px 10px;
    margin-bottom: 4px !important;
    scrollbar-width: thin;
}
.manual-tabs .nav-link {
    white-space: nowrap;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5b6172;
    background: #fff;
    border: 1px solid #e9eaf1;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.manual-tabs .nav-link i { font-size: 13px; }
.manual-tabs .nav-link:hover { color: #1a1a2e; border-color: #c7cdf7; background: #f7f8ff; }
.manual-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.32);
}
.manual-tabs::-webkit-scrollbar { height: 6px; }
.manual-tabs::-webkit-scrollbar-thumb { background: #d6d9e6; border-radius: 6px; }

/* ---------- CONTENT SHELL ---------- */
.manual-content {
    background: #fff;
    border-radius: 18px;
    padding: 26px 30px 32px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef0f6;
}
@media (max-width: 700px) { .manual-content { padding: 20px 16px 24px; } }

.manual-h2 {
    font-size: 21px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.manual-h2 i {
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.manual-h3 {
    font-size: 16px;
    font-weight: 700;
    color: #23273a;
    margin: 26px 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f0f1f6;
}
.manual-lead { font-size: 14.5px; color: #4b5162; line-height: 1.7; }
.manual-muted { font-size: 13px; color: #7a8194; line-height: 1.65; }
.manual-content p { font-size: 14px; color: #4b5162; line-height: 1.7; }

.manual-list, .manual-steps { padding-left: 20px; margin: 0 0 14px; }
.manual-list li, .manual-steps li {
    font-size: 14px;
    color: #4b5162;
    line-height: 1.7;
    margin-bottom: 7px;
}
.manual-steps { counter-reset: none; }
.manual-list ul { margin-top: 6px; padding-left: 18px; }
.manual-list ul li { font-size: 13.5px; margin-bottom: 4px; }

/* ---------- NOTES ---------- */
.manual-note {
    display: flex;
    gap: 13px;
    background: #f3f5ff;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 13px 16px;
    margin: 16px 0;
    font-size: 13.5px;
    color: #3f4457;
    line-height: 1.65;
}
.manual-note i { color: #667eea; font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.manual-note-warn { background: #fff8ec; border-left-color: #f2994a; }
.manual-note-warn i { color: #f2994a; }
.manual-note-danger { background: #fef2f2; border-left-color: #eb3349; }
.manual-note-danger i { color: #eb3349; }

/* ---------- CARDS ---------- */
.manual-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.manual-card {
    background: #fbfbfe;
    border: 1px solid #eceef6;
    border-radius: 13px;
    padding: 16px 17px;
}
.manual-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #23273a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.manual-card h4 i { color: #667eea; font-size: 14px; }
.manual-card p, .manual-card ul { font-size: 13.2px; color: #5b6172; line-height: 1.6; margin: 0; }
.manual-card ul { padding-left: 18px; }
.manual-card ul li { margin-bottom: 5px; }
.manual-card-ok { background: #f4fcf7; border-color: #d5f0e0; }
.manual-card-ok h4 i { color: #28a745; }
.manual-card-no { background: #fdf5f5; border-color: #f7dcdc; }
.manual-card-no h4 i { color: #eb3349; }

/* ---------- TABLES ---------- */
.manual-table { font-size: 13.4px; margin-bottom: 14px; }
.manual-table thead th {
    background: #f6f7fb;
    color: #3f4457;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e9eaf1;
    white-space: nowrap;
}
.manual-table td { color: #4b5162; vertical-align: top; line-height: 1.6; border-color: #f0f1f6; }

.manual-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-admin   { background: rgba(220, 53, 69, 0.12);  color: #c62b41; }
.badge-manager { background: rgba(242, 153, 74, 0.16); color: #c9761f; }
.badge-sales   { background: rgba(17, 153, 142, 0.14); color: #0f7c73; }
.badge-stock   { background: rgba(102, 126, 234, 0.14); color: #4a5bd0; }

/* ---------- FIGURES ---------- */
.manual-figure {
    position: relative;
    margin: 20px 0 24px;
    border: 1px solid #e9eaf1;
    border-radius: 14px;
    overflow: hidden;
    background: #fafbff;
}
.manual-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    object-position: top center;
    background: #f2f3f9;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.manual-figure img:hover { opacity: 0.93; }
.manual-figure figcaption {
    padding: 11px 16px;
    font-size: 12.8px;
    color: #5b6172;
    line-height: 1.6;
    border-top: 1px solid #eef0f6;
    background: #fff;
}
.manual-figure-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(26, 26, 46, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

/* ---------- LIGHTBOX ---------- */
.manual-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 14, 26, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    cursor: zoom-out;
}
.manual-lightbox.show { display: flex; }
.manual-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    cursor: default;
}
.manual-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.manual-lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- AUTHOR PANEL ---------- */
.author-panel {
    display: grid;
    grid-template-columns: minmax(230px, 320px) 1fr;
    gap: 18px;
    background: linear-gradient(135deg, #1a1a2e 0%, #232a4d 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    margin: 16px 0 4px;
}
@media (max-width: 760px) { .author-panel { grid-template-columns: 1fr; padding: 20px; } }

.author-identity { display: flex; gap: 15px; align-items: flex-start; }
.author-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}
.author-identity h4 { margin: 0 0 3px; font-size: 17px; font-weight: 700; }
.author-role { margin: 0; font-size: 12.8px; color: #a5b4fc; font-weight: 600; }
.author-company { margin: 6px 0 0; font-size: 12.6px; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.03em; }
.author-location { margin: 4px 0 0; font-size: 12.4px; color: rgba(255, 255, 255, 0.62); }

.author-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; align-content: start; }
.author-contact-item { display: flex; gap: 6px; min-width: 0; }
.author-line {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 11px;
    padding: 10px 13px;
    text-decoration: none;
    color: #fff;
    font-size: 12.9px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    word-break: break-word;
}
.author-line:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); color: #fff; }
.author-line i { font-size: 14px; color: #a5b4fc; width: 16px; text-align: center; flex-shrink: 0; }
.author-line span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.author-line small {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

/* Copy button shown beside every contact detail */
.author-copy {
    flex-shrink: 0;
    width: 42px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.07);
    color: #a5b4fc;
    border-radius: 11px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.author-copy:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }
.author-copy.copied { background: rgba(56, 239, 125, 0.22); border-color: rgba(56, 239, 125, 0.4); color: #38ef7d; }

.author-hint {
    margin: 12px 0 0;
    font-size: 12.6px;
    color: #6b7280;
    line-height: 1.6;
}
.author-hint i { color: #667eea; }

/* ---------- PUBLIC (SIGNED-OUT) SHELL ----------
   The .public-* rules now live in assets/css/public-shell.css, which is
   linked alongside this file, so about.php and video_tutorials.php share
   one definition. */

@media print {
    .manual-tabs, .manual-roles, .public-topbar, .manual-lightbox-close { display: none !important; }
    .tab-pane { display: block !important; opacity: 1 !important; }
    .manual-content { box-shadow: none; border: none; padding: 0; }
    .manual-figure img { max-height: none; }
}
