:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #38bdf8;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Top Contact Bar */
.topbar {
    background-color: var(--bg-darker);
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #1e293b;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar a {
    color: var(--accent);
    text-decoration: none;
}

/* Header & Navigation */
.navbar {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1e293b;
}

.brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: #fff;
}

/* Mega-Menu Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: var(--text-main);
    min-width: 520px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    z-index: 200;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dropdown-menu.narrow {
    min-width: 220px;
    grid-template-columns: 1fr;
}

.dropdown:hover .dropdown-menu {
    display: grid;
}

.menu-group-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin: 0.75rem 0 0.4rem 0;
}

.menu-group-title:first-child {
    margin-top: 0;
}

.dropdown-menu ul {
    list-style: none;
}

.dropdown-menu li {
    margin-bottom: 0.3rem;
}

.dropdown-menu a {
    color: #334155 !important;
    font-size: 0.9rem;
    display: block;
    padding: 0.15rem 0;
}

.dropdown-menu a:hover {
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border: 1px solid #475569;
    color: #f8fafc !important;
    background: transparent;
}

.btn-outline:hover {
    border-color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #1e293b, var(--bg-darker));
    color: #fff;
    padding: 4.5rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.18;
    margin: 1rem 0;
    font-weight: 800;
}

.hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

/* Layout Containers & Cards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
}

.section-block {
    margin-bottom: 4.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.section-subtitle {
    color: var(--text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.tag-pdf { background: #fee2e2; color: #991b1b; }
.tag-video { background: #dbeafe; color: #1e40af; }
.tag-green { background: #dcfce7; color: #166534; }

/* Pure CSS Interactive Tabs */
.tabs-box {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tabs-box input[type="radio"] {
    display: none;
}

.tabs-box label {
    padding: 0.9rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    border-right: 1px solid var(--border);
    transition: all 0.15s;
}

.tabs-box label:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.tabs-box .tab-panel {
    width: 100%;
    order: 99;
    display: none;
    padding: 2rem;
    background: #fff;
}

.tabs-box input[type="radio"]:checked + label {
    background: #fff;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tabs-box input[type="radio"]:checked + label + .tab-panel {
    display: block;
}

/* Module Grids inside Tabs */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.module-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.module-box h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.4rem;
}

.module-box ul {
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.module-box li {
    margin-bottom: 0.3rem;
}

/* Native Accordions */
details.accordion {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
}

details.accordion summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details.accordion summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 800;
}

details.accordion[open] summary::after {
    content: "−";
}

details.accordion .accordion-body {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list {
    columns: 2;
    gap: 2rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.feature-list li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .feature-list { columns: 1; }
}

/* Customer Quotes & Team Grid */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quote-card {
    background: #fff;
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
}

.quote-card p {
    font-style: italic;
    color: #334155;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.quote-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.team-member {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

/* Portal Viewer */
.viewer-frame {
    width: 100%;
    height: 760px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #000;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    color: #64748b;
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.9rem;
    margin-top: 4rem;
}

.footer-banner {
    background: #1e293b;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
}
/* =========================================================
   ADMIN DASHBOARD & CLIENT PORTAL STYLES
   ========================================================= */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: #fff;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar .brand {
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #1e293b;
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid #1e293b;
    padding-top: 1.25rem;
}

.btn-logout {
    width: 100%;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-logout:hover {
    background: var(--danger);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 1150px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 0.85rem 1.15rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 0.85rem 1.15rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

@media (max-width: 850px) {
    .admin-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .main-content { padding: 1.5rem; }
}
/* =========================================================
   FLOATING OFF-CANVAS DRAWER & FULL-WIDTH CRUD TABLES
   ========================================================= */
.admin-topbar {
    background: var(--bg-dark);
    color: #fff;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid #1e293b;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-drawer-toggle {
    background: #1e293b;
    color: #fff;
    border: 1px solid #334155;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-drawer-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    z-index: 190;
}

.drawer-backdrop.open {
    display: block;
}

.floating-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    background: var(--bg-dark);
    color: #fff;
    z-index: 200;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(-100%);
    transition: transform 0.22s ease-in-out;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
}

.floating-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #1e293b;
}

.btn-drawer-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.drawer-nav button {
    text-align: left;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.drawer-nav button:hover,
.drawer-nav button.active {
    background: var(--primary);
    color: #fff;
}

.admin-workspace {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.crud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #f1f5f9;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1rem 0;
}

.crud-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-secondary {
    background: #334155;
    color: #fff;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
}

.data-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8fafc;
}

.hidden-view {
    display: none !important;
}
