﻿/* ===== NAVBAR FORCE FIX ===== */
nav.navbar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    background: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===============================
   GLOBAL VARIABLES
================================ */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #f9fafb;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* =========================
   TYPOGRAPHY SYSTEM
========================= */
h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.3rem; font-weight: 500; }
h5 { font-size: 1.1rem; font-weight: 500; }
h6 { font-size: 0.95rem; font-weight: 500; }

/* ===============================
   RESET
================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

/* ===============================
   LAYOUT
================================ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ===============================
   HEADER
================================ */
header {
    background: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-container {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1;
}

.logo img { height: 28px; margin-right: 10px; display: block; }

nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 25px; }
nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}
nav ul li a:hover { color: var(--primary-color); }
.mobile-menu-btn { display: none; font-size: 26px; background: none; border: none; cursor: pointer; }

/* ===============================
   HERO
================================ */
.hero {
    background: transparent;
    padding: 32px 0 24px 0;
    text-align: center;
    margin: 0;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 10px; color: #1f2937; }
.hero p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; color: #6b7280; }

.hero-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(37,99,235,0.18), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(99,102,241,0.18), transparent 40%),
                linear-gradient(135deg, #eef2ff, #f8fafc);
    position: relative;
    z-index: 1;
}
.hero-title { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 18px; color: #555; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; margin-bottom: 30px; }
.hero-features { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-feature {
    background: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.hero-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tool-preview { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.tool-preview i { font-size: 22px; color: #2563eb; }

/* ===============================
   TOOLS GRID
================================ */
.tools-section { padding: 40px 0 60px 0; }
.tools-grid { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; gap: 20px !important; }

@media (min-width: 992px) {
    .col-lg-5-custom { flex: 0 0 20%; max-width: 20%; }
}

/* ===== CARD DESIGN ===== */
.tool-card {
    aspect-ratio: auto;
    min-height: 200px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
    transition: 0.2s ease;
}
.tool-card:hover { background: #ffffff; border-color: #BDBDBD; }

.tool-icon {
    font-size: 42px;
    margin-bottom: 16px;
    background: none;
    width: auto;
    height: auto;
    display: block;
}
.tool-icon svg { width: 48px !important; height: 48px !important; transition: transform 0.2s ease; }
.tool-card:hover .tool-icon svg { transform: scale(1.15); }

.tool-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.tool-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    min-height: auto;
}

/* ===============================
   AUTH FORMS
================================ */
.auth-container {
    max-width: 420px;
    margin: 72px auto;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}
.auth-container h2 { text-align: center; margin-bottom: 24px; font-weight: 700; }
.auth-container form { display: flex; flex-direction: column; }
.auth-container label { font-weight: 500; margin-bottom: 6px; }
.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 18px;
    font-size: 15px;
}
.auth-container input:focus { outline: none; border-color: var(--primary-color); }
.auth-container button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.auth-container button:hover { background: var(--primary-hover); }
.auth-footer { margin-top: 16px; text-align: center; }
.auth-footer a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ===============================
   FOOTER
================================ */
footer { background: #111827; color: #fff; padding: 60px 0 25px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-column h3 { margin-bottom: 18px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: #d1d5db; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.copyright { margin-top: 30px; text-align: center; color: #9ca3af; font-size: 0.9rem; }

/* ===============================
   MISC COMPONENTS
================================ */
.breadcrumb-nav { font-size: 14px; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; color: #0d6efd; }
.breadcrumb a:hover { text-decoration: underline; }

.faq-section h2 { margin-bottom: 30px; }
.faq-item { margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 5px; }
.faq-accordion { text-align: left; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-icon { font-size: 1.4rem; color: #9ca3af; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { margin-top: 10px; color: #6b7280; line-height: 1.6; }

.tool-toc ul { list-style: none; padding: 0; }
.tool-toc li { margin-bottom: 8px; }
.tool-toc a { text-decoration: none; color: #0d6efd; }
.tool-toc a:hover { text-decoration: underline; }

.upload-box {
    border: 2px dashed #ccc;
    padding: 40px;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}
.upload-box.dragover { border-color: #007bff; background: #f0f8ff; }
.upload-icon { font-size: 40px; margin-bottom: 10px; }
#fileList { list-style: none; padding-left: 0; margin-top: 10px; }
#fileList li { padding: 5px 0; font-size: 14px; }

.workflow-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.workflow-card:hover { transform: translateY(-5px); }
.dashboard-page { background-color: #FFFFFF; min-height: 100vh; }

.trust-badges { display: flex; justify-content: center; gap: 70px; margin-top: 30px; flex-wrap: wrap; }
.trust-item { text-align: center; color: #6b7280; }
.trust-icon svg { width: 42px; height: 42px; margin-bottom: 8px; color: #9ca3af; transition: all 0.2s ease; }
.trust-item span { font-size: 0.85rem; font-weight: 500; }
.trust-item:hover svg { color: #374151; transform: scale(1.08); }

/* ===============================
   NAVBAR ENTERPRISE
================================ */
.navbar-enterprise {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff;
    display: block !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.navbar { padding-top: 5px !important; padding-bottom: 5px !important; }
.navbar-toggler { border: none; }
.navbar-logo { height: 60px; width: auto; }
.btn-signup { background: #ff4d4f; color: #fff !important; border-radius: 6px; padding: 6px 12px; font-weight: 600; }
.btn-login { font-weight: 500; }
.container-wide { max-width: 1400px !important; padding-left: 24px; padding-right: 24px; }

header { height: 50px !important; }
.header-container { height: 50px !important; }
.header-full {
    width: 100%;
    max-width: 100%;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {
    /* Navbar */
    nav {
        position: fixed;
        background: #fff;
        width: 100%;
        top: 56px;
        left: 0;
        padding: 20px;
        transition: 0.3s ease;
        transform: translateY(0);
    }
    nav.active { transform: translateY(0); }
    nav ul { flex-direction: column; }
    nav ul li { margin: 12px 0; }
    .mobile-menu-btn { display: block; }

    /* Hero section */
    .hero-section {
        margin-top: 50px !important;
        padding: 40px 16px !important;
        text-align: center;
    }
    .hero-title { font-size: clamp(26px, 7vw, 36px) !important; line-height: 1.2 !important; margin-bottom: 12px !important; }
    .hero-subtitle { font-size: clamp(13px, 3.5vw, 15px) !important; padding: 0 8px !important; margin-bottom: 20px !important; }
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    .hero-buttons .btn { padding: 10px 16px !important; font-size: 14px !important; white-space: nowrap !important; }
    .hero-features {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .hero-feature {
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        background: white !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    }
    .hero-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        padding: 24px 16px !important;
        margin-top: 30px !important;
    }
    .tool-preview {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .tool-preview i { font-size: 28px !important; }
    .tool-preview span { font-size: 13px !important; }

/* Tools Grid - 2 cards per row */
    .tools-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .col-lg-5-custom, .col-md-3, .col-sm-6 {
        height: auto !important;
        min-height: auto !important;
    }

.row.g-4 > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .row.g-4 {
        align-items: flex-start !important;
    }

    .tool-card {
        align-items: center !important;
        text-align: center !important;
        min-height: 200px;
        height: auto !important;
        padding: 16px !important;
    }

    .tool-icon {
        font-size: 22px !important;
        margin-bottom: 0 !important;
        display: inline-flex !important;
    }

    .tool-icon svg {
    width: 44px !important;
    height: 44px !important;
}

    .tool-card h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        display: inline !important;
        color: #1f2937 !important;
    }

    /* Description row */
    .tool-card p {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        color: #6b7280 !important;
        width: 100% !important;
    }

.tool-card-top {
        justify-content: center !important;
        text-align: center !important;
    }

.tool-card .tool-icon {
    margin-bottom: 0 !important;
}

   .tool-card .tool-icon {
        margin-bottom: 0 !important;
        display: inline-flex !important;
        width: auto !important;
    }
    
    /* Bigger icon */
    .tool-icon svg {
        width: 44px !important;
        height: 44px !important;
    }

   /* Title */
    .tool-card h3 {
        font-size: 16px !important;
        margin: 0 !important;
    }

.tool-card p {
        padding-left: 0 !important; /* remove previous offset */
        text-align: center !important;
    }

.tool-card-top .tool-icon,
.tool-card-top h3 {
    display: inline-block !important;
    width: auto !important;
}

.tool-card {
        height: auto !important;
        min-height: unset !important;
    }

    .tool-card.h-100 {
        height: auto !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr !important; }
    .auth-container { margin: 48px 15px; }
    .hero-buttons .btn { padding: 8px 12px !important; font-size: 13px !important; }
    .hero-feature { padding: 6px 8px !important; font-size: 11px !important; }
    .hero-card { gap: 12px !important; padding: 16px 12px !important; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 5px;
        margin-top: 10px;
        border-radius: 10px;
    }
}