/**
 * VeeWom Multi-Tools
 * Core Platform Stylesheet (Modern SaaS Design)
 *
 * @package VeeWom\MultiTools
 * @version 1.0.0
 */

/* ==========================================================================
   1. CSS Variables & Theme Tokens
   ========================================================================== */
:root {
    --mt-primary: #34495e;
    --mt-primary-dark: #2c3e50;
    --mt-accent: #3498db;
    --mt-accent-hover: #2980b9;
    --mt-success: #27ae60;
    --mt-warning: #f39c12;
    --mt-danger: #e74c3c;
    --mt-bg-light: #f8fafc;
    --mt-bg-white: #ffffff;
    --mt-text-main: #2d3748;
    --mt-text-muted: #718096;
    --mt-border: #e2e8f0;
    --mt-border-radius: 10px;
    --mt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --mt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mt-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mt-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Modern SaaS Hero Section
   ========================================================================== */
.mt-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 65px 0 55px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge-wrap {
    margin-bottom: 20px;
}

.hero-pill-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-pill-sub {
    display: inline-block;
    color: #94a3b8;
    font-size: 13px;
    margin-left: 10px;
}

.hero-headline {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-headline .highlight-text {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subheadline {
    font-size: 17px;
    color: #cbd5e1;
    max-width: 760px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Hero Search Bar */
.hero-search-wrapper {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.hero-search-box {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: var(--mt-transition);
}

.hero-search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35), 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-search-box .search-icon {
    font-size: 20px;
    color: #64748b;
    margin-right: 12px;
}

.hero-search-box input {
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 16px;
    color: var(--mt-text-main);
    width: 100%;
    padding: 8px 0;
    background: transparent;
}

.hero-search-box input::placeholder {
    color: #94a3b8;
}

.hero-search-box .btn-clear {
    background: #e2e8f0;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mt-transition);
    margin-right: 5px;
}

.hero-search-box .btn-clear:hover {
    background: #cbd5e1;
    color: #334155;
}

/* Quick Search Tags */
.quick-tags {
    margin-top: 15px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-label {
    color: #94a3b8;
    font-weight: 500;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: var(--mt-transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-tag:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-color: #38bdf8;
}

/* ==========================================================================
   3. Search Results Overlay Section
   ========================================================================== */
.search-results-container {
    background: #f1f5f9;
    padding: 35px 0;
    border-bottom: 2px solid #e2e8f0;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.search-results-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

/* ==========================================================================
   4. Section Headers & Layout Wrappers
   ========================================================================== */
.mt-section {
    padding: 60px 0;
}

.mt-section.bg-light {
    background-color: var(--mt-bg-light);
}

.section-title-wrap {
    margin-bottom: 45px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mt-accent);
    margin-bottom: 8px;
}

.section-heading {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.section-subtext {
    font-size: 16px;
    color: var(--mt-text-muted);
    margin: 0;
}

/* ==========================================================================
   5. Tool Tiles (Cards)
   ========================================================================== */
.tool-grid {
    display: flex;
    flex-wrap: wrap;
}

.tool-tile {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 20px;
    margin-bottom: 25px;
    height: calc(100% - 25px);
    display: flex;
    flex-direction: column;
    transition: var(--mt-transition);
    position: relative;
    overflow: hidden;
}

.tool-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--mt-shadow-lg);
    border-color: #cbd5e1;
}

.tool-tile-link {
    color: inherit !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tool-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.tool-tile-icon {
    font-size: 26px;
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mt-transition);
}

.tool-tile:hover .tool-tile-icon {
    background: #f1f5f9;
    transform: scale(1.05);
}

.tool-tile-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tool-tile-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.35;
    transition: var(--mt-transition);
}

.tool-tile:hover .tool-tile-title {
    color: var(--mt-accent);
}

.tool-tile-desc {
    font-size: 13.5px;
    color: var(--mt-text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.tool-cat-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-use-tool {
    font-weight: 700;
    color: var(--mt-accent);
}

.tool-tile:hover .btn-use-tool {
    color: var(--mt-accent-hover);
    transform: translateX(2px);
}

/* Popular Tool Ribbon Accent */
.tool-tile-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

/* ==========================================================================
   6. Category Cards
   ========================================================================== */
.category-card {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 24px;
    margin-bottom: 30px;
    transition: var(--mt-transition);
    height: calc(100% - 30px);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mt-shadow-md);
    border-color: #94a3b8;
}

.category-card-link {
    display: flex;
    align-items: flex-start;
    color: inherit !important;
    text-decoration: none !important;
    gap: 16px;
}

.category-card-icon {
    font-size: 24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--mt-transition);
}

.category-card:hover .category-card-icon {
    transform: scale(1.08);
}

.category-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.category-card-desc {
    font-size: 13px;
    color: var(--mt-text-muted);
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.category-count {
    font-size: 12.5px;
    font-weight: 700;
}

/* ==========================================================================
   7. Directory Tabs (Filter Pills)
   ========================================================================== */
.directory-tabs-wrap {
    margin-bottom: 35px;
}

.directory-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.directory-pills > li > a {
    background: #ffffff;
    color: #475569;
    border: 1px solid var(--mt-border);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--mt-transition);
}

.directory-pills > li > a:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.directory-pills > li.active > a,
.directory-pills > li.active > a:hover,
.directory-pills > li.active > a:focus {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   8. Feature Highlights Section
   ========================================================================== */
.feature-box {
    padding: 20px;
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 14px;
    color: var(--mt-text-muted);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   9. Tool Page & Workspace Styles
   ========================================================================== */
.tool-hero-content {
    padding: 10px 0;
}

.tool-category-badge {
    display: inline-block;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tool-pill-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    margin-bottom: 10px;
}

.tool-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 5px 0 10px 0;
}

.tool-hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0;
    line-height: 1.5;
}

.tool-count-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.tool-page-content {
    padding: 40px 0 60px;
    background: #f8fafc;
}

/* Tool Main Workspace Card */
.tool-card {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    margin-bottom: 30px;
    overflow: hidden;
}

.tool-card-header {
    background: #ffffff;
    padding: 24px 28px;
    border-bottom: 1px solid var(--mt-border);
}

.tool-header-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-icon-box {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--mt-border);
}

.tool-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px 0;
}

.tool-privacy-pill {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tool-card-body {
    padding: 28px;
}

/* Tool Form & Controls */
.tool-form-group {
    margin-bottom: 22px;
}

.tool-form-group label {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.tool-input {
    border: 1.5px solid var(--mt-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--mt-text-main);
    transition: var(--mt-transition);
    width: 100%;
}

.tool-input:focus {
    border-color: var(--mt-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.tool-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--mt-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Results Box */
.tool-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px;
    margin-top: 25px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.result-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-body {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.6;
}

/* Instructions Card */
.tool-guide-card {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 28px;
    margin-bottom: 30px;
}

.guide-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

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

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.step-num {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #bfdbfe;
}

.step-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    padding-top: 4px;
}

/* FAQ Card & Accordion */
.tool-faq-card {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 28px;
    margin-bottom: 30px;
}

.faq-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.faq-panel {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
}

.faq-panel .panel-heading {
    background: #ffffff !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
}

.faq-panel .panel-title a {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    text-decoration: none !important;
}

.faq-chevron {
    transition: transform 0.25s ease;
    margin-right: 8px;
    color: var(--mt-accent);
}

.faq-panel .panel-title a.collapsed .faq-chevron {
    transform: rotate(-90deg);
}

.faq-panel .panel-body {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9 !important;
    padding: 16px 18px !important;
}

/* Sidebar Boxes */
.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 22px;
    margin-bottom: 25px;
}

.sidebar-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tool-list li {
    margin-bottom: 12px;
}

.sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit !important;
    text-decoration: none !important;
    padding: 8px;
    border-radius: 6px;
    transition: var(--mt-transition);
}

.sidebar-tool-link:hover {
    background: #f8fafc;
}

.sidebar-tool-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mt-primary);
}

.sidebar-tool-info strong {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
}

.sidebar-tool-info small {
    color: var(--mt-text-muted);
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--mt-transition);
}

.sidebar-category-list li a:hover,
.sidebar-category-list li.active a {
    background: #f1f5f9;
    color: #0f172a !important;
}

.sidebar-category-list .badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
}

/* ==========================================================================
   10. Mobile Responsiveness Breakpoints
   ========================================================================== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 28px;
    }
    .hero-subheadline {
        font-size: 15px;
    }
    .hero-search-box {
        padding: 4px 6px 4px 14px;
    }
    .hero-search-box input {
        font-size: 14px;
    }
    .section-heading {
        font-size: 24px;
    }
    .tool-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   11. Toast Notification Box
   ========================================================================== */
.mt-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    gap: 10px;
}

.mt-toast-success {
    background: #10b981;
}

.mt-toast-warning {
    background: #f59e0b;
}

.mt-toast-danger {
    background: #ef4444;
}

.mt-toast-info {
    background: #1e293b;
}

/* ==========================================================================
   12. Theme Toggle Buttons
   ========================================================================== */
.btn-theme-toggle-mobile {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px;
    float: right;
    margin-top: 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: var(--mt-transition);
}

.btn-theme-toggle-mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #38bdf8;
}

.theme-toggle-link {
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
}

.theme-toggle-link .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle-link:hover .theme-icon {
    transform: rotate(25deg);
}

/* ==========================================================================
   13. Tool Status Badges & Interactive Preview Notice
   ========================================================================== */
.tool-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.tool-status-ready {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tool-status-preview {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.tool-preview-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #1e3a8a;
    line-height: 1.5;
}

.tool-preview-notice .preview-notice-icon {
    font-size: 18px;
    color: #2563eb;
    margin-top: 2px;
}

/* Drag and Drop Dropzone */
.tool-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: var(--mt-transition);
    position: relative;
    margin-bottom: 20px;
}

.tool-dropzone:hover,
.tool-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tool-dropzone .dropzone-icon {
    font-size: 42px;
    color: #64748b;
    margin-bottom: 12px;
    transition: var(--mt-transition);
}

.tool-dropzone:hover .dropzone-icon {
    color: #2563eb;
    transform: translateY(-3px);
}

.tool-dropzone .dropzone-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.tool-dropzone .dropzone-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.tool-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Options Grid & Radios */
.tool-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tool-radio-pill {
    display: block;
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--mt-transition);
    font-size: 13.5px;
    font-weight: 600;
}

.tool-radio-pill:hover,
.tool-radio-pill.active {
    border-color: var(--mt-accent);
    background: #eff6ff;
    color: #1d4ed8;
}

/* ==========================================================================
   14. Loading, Empty & Error States Components
   ========================================================================== */
/* Interactive State Switcher Bar */
.tool-state-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
    font-size: 12.5px;
}

.tool-state-switcher .state-label {
    font-weight: 700;
    color: #475569;
}

.tool-state-btn-group {
    display: inline-flex;
    gap: 4px;
}

.tool-state-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: var(--mt-transition);
}

.tool-state-btn:hover {
    background: #e2e8f0;
}

.tool-state-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Shimmer Skeleton Loader */
.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: mt-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes mt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-input {
    height: 44px;
    width: 100%;
    margin-bottom: 18px;
    border-radius: 8px;
}

.skeleton-btn {
    height: 44px;
    width: 160px;
    border-radius: 8px;
}

/* Button Loading State */
.btn.is-loading,
.tool-btn-primary.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.btn.is-loading .fa,
.tool-btn-primary.is-loading .fa {
    display: inline-block;
    animation: mt-spin 1s infinite linear;
}

@keyframes mt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State Component */
.mt-empty-state {
    text-align: center;
    padding: 45px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.mt-empty-state .empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.mt-empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.mt-empty-state p {
    font-size: 14px;
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 18px;
}

/* Error State Component */
.mt-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.mt-alert-error-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #991b1b;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mt-alert-error-msg {
    font-size: 13.5px;
    color: #b91c1c;
    margin: 0 0 12px;
}

/* ==========================================================================
   15. Complete Dark Mode Theme System
   ========================================================================== */
[data-theme="dark"] {
    --mt-bg-light: #0b1120;
    --mt-bg-white: #1e293b;
    --mt-text-main: #f1f5f9;
    --mt-text-muted: #94a3b8;
    --mt-border: #334155;
    --mt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --mt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --mt-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body,
[data-theme="dark"] .outer-wrapper,
[data-theme="dark"] .tool-page-content,
[data-theme="dark"] .inner-content {
    background-color: #0b1120 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] #header-main {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

/* ==========================================================================
   Desktop Navigation Dropdown Hover & Megamenu Architecture
   ========================================================================== */
@media (min-width: 768px) {
    .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: mtNavFadeIn 0.2s ease-in-out forwards;
    }
    .navbar-nav > li.dropdown > .dropdown-menu {
        margin-top: 0;
        transition: opacity 0.2s ease-in-out;
    }
}

@keyframes mtNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .navbar-nav > li.dropdown.open > .dropdown-menu {
        display: block !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        box-shadow: none !important;
    }
}

[data-theme="dark"] .navbar-default {
    background-color: #1e293b !important;
    border: none !important;
}

[data-theme="dark"] .navbar-default .navbar-nav > li > a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .navbar-default .navbar-nav > li > a:hover,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a {
    color: #38bdf8 !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .yamm-content {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .yamm-content a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .yamm-content a:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .dropdown-header {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tool-tile,
[data-theme="dark"] .category-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .sidebar-box,
[data-theme="dark"] .tool-guide-card,
[data-theme="dark"] .tool-faq-card,
[data-theme="dark"] .faq-panel .panel-heading,
[data-theme="dark"] .tool-card-header {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tool-tile-title,
[data-theme="dark"] .category-card-title,
[data-theme="dark"] .tool-card-title,
[data-theme="dark"] .guide-title,
[data-theme="dark"] .faq-title,
[data-theme="dark"] .sidebar-box-title,
[data-theme="dark"] .faq-panel .panel-title a,
[data-theme="dark"] .sidebar-tool-info strong,
[data-theme="dark"] .section-heading,
[data-theme="dark"] .feature-box h3,
[data-theme="dark"] .search-results-header h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .tool-tile-icon,
[data-theme="dark"] .tool-icon-box,
[data-theme="dark"] .sidebar-tool-icon {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tool-tile-footer,
[data-theme="dark"] .faq-panel .panel-body,
[data-theme="dark"] .sidebar-box-title,
[data-theme="dark"] .result-header {
    border-color: #334155 !important;
}

[data-theme="dark"] .tool-tile-desc,
[data-theme="dark"] .category-card-desc,
[data-theme="dark"] .section-subtext,
[data-theme="dark"] .feature-box p,
[data-theme="dark"] .faq-panel .panel-body,
[data-theme="dark"] .step-text,
[data-theme="dark"] .sidebar-tool-info small {
    color: #94a3b8 !important;
}

[data-theme="dark"] .sidebar-category-list li a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .sidebar-category-list li a:hover,
[data-theme="dark"] .sidebar-category-list li.active a {
    background: #0f172a !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .sidebar-category-list .badge {
    background: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .tool-input {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .tool-input:focus {
    border-color: #38bdf8 !important;
}

[data-theme="dark"] .tool-dropzone {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tool-dropzone:hover,
[data-theme="dark"] .tool-dropzone.dragover {
    border-color: #38bdf8 !important;
    background: #1e293b !important;
}

[data-theme="dark"] .tool-dropzone .dropzone-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tool-result-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .result-header h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .result-body {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .directory-pills > li > a {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .directory-pills > li > a:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .directory-pills > li.active > a {
    background: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #0f172a !important;
}

[data-theme="dark"] .step-num {
    background: #0f172a !important;
    border-color: #1e3a8a !important;
    color: #60a5fa !important;
}

[data-theme="dark"] .tool-preview-notice {
    background: #172554 !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .tool-state-switcher {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .tool-state-switcher .state-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tool-state-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .tool-state-btn:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .tool-state-btn.active {
    background: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8 !important;
}

[data-theme="dark"] .mt-empty-state {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .mt-empty-state h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .mt-empty-state p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .skeleton-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .skeleton-shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%) !important;
}

[data-theme="dark"] .bcrumb-wrap {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .bcrumbs a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bcrumbs li.active span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e293b !important;
}

[data-theme="dark"] footer h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] footer a {
    color: #94a3b8 !important;
}

[data-theme="dark"] footer a:hover {
    color: #38bdf8 !important;
}

[data-theme="dark"] .footer-bottom {
    background: #090d16 !important;
    border-top: 1px solid #1e293b !important;
    color: #64748b !important;
}

[data-theme="dark"] .btn-default {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .btn-default:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Google AdSense Placements & Containers
   ========================================================================== */
.mt-ad-container {
    margin: 25px auto;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--mt-border-radius);
    padding: 12px 10px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.mt-ad-container.mt-ad-top {
    margin: 20px auto 25px;
    min-height: 100px;
}

.mt-ad-container.mt-ad-mid {
    margin: 35px auto;
    min-height: 120px;
}

.mt-ad-container.mt-ad-bottom {
    margin: 35px auto 20px;
    min-height: 150px;
}

.mt-ad-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
}

.mt-ad-inner {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt-ad-sidebar-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 12px 8px;
    margin-bottom: 25px;
}

[data-theme="dark"] .mt-ad-container,
[data-theme="dark"] .mt-ad-sidebar-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .mt-ad-label {
    color: #64748b !important;
}

/* ==========================================================================
   Long-Form SEO Educational Article Styles
   ========================================================================== */
.tool-article-card {
    background: #ffffff;
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-border-radius);
    padding: 35px 30px;
    margin-bottom: 30px;
    transition: var(--mt-transition);
}

.seo-long-form-article .article-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.seo-long-form-article .article-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.35;
}

.seo-long-form-article .article-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-long-form-article .article-meta-badges .badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

.seo-long-form-article .lead-paragraph {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    font-weight: 400;
    margin-bottom: 25px;
}

.seo-long-form-article h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-long-form-article p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 18px;
}

.seo-long-form-article .formula-box {
    background: #0f172a;
    color: #38bdf8;
    padding: 18px 22px;
    border-radius: 8px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 15px 0 20px;
    overflow-x: auto;
    border-left: 4px solid #38bdf8;
}

.seo-long-form-article .formula-box code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.seo-long-form-article .article-steps {
    padding-left: 20px;
    margin-bottom: 25px;
}

.seo-long-form-article .article-steps li {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 14px;
}

.seo-long-form-article .article-steps li strong {
    color: #0f172a;
}

.seo-long-form-article .use-case-card,
.seo-long-form-article .formula-card,
.seo-long-form-article .comparison-mode-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    height: calc(100% - 20px);
}

.seo-long-form-article .use-case-card h4,
.seo-long-form-article .formula-card h4,
.seo-long-form-article .comparison-mode-box h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.seo-long-form-article .article-table {
    margin: 20px 0;
    font-size: 13.5px;
}

.seo-long-form-article .article-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
}

[data-theme="dark"] .tool-article-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .seo-long-form-article .article-header {
    border-color: #334155 !important;
}

[data-theme="dark"] .seo-long-form-article .article-main-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .seo-long-form-article h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .seo-long-form-article p,
[data-theme="dark"] .seo-long-form-article .lead-paragraph,
[data-theme="dark"] .seo-long-form-article .article-steps li {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .seo-long-form-article .article-steps li strong {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .seo-long-form-article .use-case-card,
[data-theme="dark"] .seo-long-form-article .formula-card,
[data-theme="dark"] .seo-long-form-article .comparison-mode-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .seo-long-form-article .use-case-card h4,
[data-theme="dark"] .seo-long-form-article .formula-card h4,
[data-theme="dark"] .seo-long-form-article .comparison-mode-box h4 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .seo-long-form-article .article-table th {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}
