/* ============================================================
   pdf.okon.in  –  Modern White UI (Facebook / Google style)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary:        #1877f2;   /* Facebook blue */
    --primary-dark:   #1558b0;
    --primary-soft:   #e7f0fd;
    --danger:         #e41e3f;
    --success:        #00a854;
    --warning:        #f5a623;
    --page-bg:        #f0f2f5;   /* Facebook page background */
    --card-bg:        #ffffff;
    --border:         #dde1e7;
    --text:           #1c1e21;
    --text-muted:     #65676b;
    --navbar-h:       56px;
    --radius:         12px;
    --radius-sm:       8px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:      0 4px 12px rgba(0,0,0,.10);
    --shadow-lg:      0 8px 24px rgba(0,0,0,.12);
    --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--page-bg);
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* override Bootstrap main reset from old style */
main {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
}

/* ---------- Navbar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pdf-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    height: var(--navbar-h);
    box-shadow: var(--shadow-sm);
}

.pdf-navbar .container-xl { height: 100%; }

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e41e3f, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.brand-dot {
    color: var(--primary);
}

/* Nav links */
.pdf-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.pdf-navbar .nav-link:hover,
.pdf-navbar .nav-link:focus {
    color: var(--primary) !important;
    background: var(--primary-soft);
}

/* ---------- Dropdown (modern card style) ---------- */
.dropdown-menu-modern {
    border-radius: var(--radius);
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 8px;
    min-width: 240px;
}

.dropdown-menu-modern .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.12s;
}

.dropdown-menu-modern .dropdown-item:hover {
    background: var(--page-bg);
    color: var(--text);
}

.dropdown-menu-modern .dropdown-header {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
}

/* Dropdown icon badge */
.di-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.bg-blue-soft   { background: #e7f0fd; }
.bg-green-soft  { background: #e6f4ea; }
.bg-yellow-soft { background: #fef9e5; }
.bg-red-soft    { background: #fde8ec; }
.bg-gray-soft   { background: #f0f2f5; }
.bg-purple-soft { background: #f3e8fd; }
.text-purple    { color: #7b2ff7; }

/* ---------- Page wrapper ---------- */
.page-wrapper {
    flex: 1;
    width: 100%;
}

/* ---------- Hero (Home page) ---------- */
.pdf-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 60px 0 56px;
}

.pdf-hero h1 { color: var(--text); font-weight: 700; }
.pdf-hero .lead { color: var(--text-muted); }

/* ---------- Section headings ---------- */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ---------- Tool Cards (home grid) ---------- */
.tool-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.tool-card-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 20px;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
    height: 100%;
    cursor: pointer;
}

.tool-card-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #c5d2e8;
}

.tool-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.tool-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.tool-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---------- Why section ---------- */
.why-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    height: 100%;
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 14px;
}

/* ---------- Drop Zone ---------- */
.drop-zone {
    border: 2px dashed var(--border) !important;
    border-radius: var(--radius) !important;
    background: var(--card-bg) !important;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
}

/* ---------- Tool Layout ---------- */
.tool-page {
    min-height: calc(100vh - var(--navbar-h));
}

.tool-page-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--navbar-h);
    z-index: 100;
}

.tool-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
}

.tool-title {
    font-size: 1.1rem;
    color: var(--text);
}

.tool-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ---------- Tool Toolbar ---------- */
.tool-toolbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: calc(var(--navbar-h) + 80px);
    z-index: 99;
    padding: 8px 12px;
}

/* ---------- Passport Align Panels ---------- */
.passport-sidebar {
    flex-shrink: 0;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
}

.passport-props {
    flex-shrink: 0;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
}

.passport-sidebar .thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.15s;
}

.passport-sidebar .thumb.active { border-color: var(--primary); }

/* ---------- Image preview cards ---------- */
.img-preview-card {
    position: relative;
    cursor: grab;
}

.img-preview-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.img-preview-card .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.15s;
}

.img-preview-card:hover .remove-btn { opacity: 1; }

/* ---------- Cards / general ---------- */
.card {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 500; border-radius: var(--radius-sm); }
.btn-primary  { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-top {
    padding: 40px 0 32px;
}

.footer-bottom {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    background: var(--page-bg);
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.footer-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li { margin-top: 6px; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--primary); }

/* ---------- Utilities ---------- */
.border-2   { border-width: 2px !important; }
.border-dashed { border-style: dashed !important; }
.sortable-ghost { opacity: 0.4; }

