/* =========================================================
   SWIFTTOOLSPRO - COMPLETE MAIN STYLESHEET (style.css)
   ========================================================= */

* {
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* ---------------------------------------------------------
   1. HEADER & NAVIGATION (PERFECTLY ALIGNED & COMPACT)
   --------------------------------------------------------- */
header, .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 30px !important;
    height: 60px !important;
    min-height: 60px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box !important;
}

header .logo, 
.site-header .logo, 
header div:first-child, 
.site-header div:first-child {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

header img, 
.site-header img, 
.logo img, 
header .logo img {
    max-height: 42px !important;
    height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

header nav, 
.site-header nav, 
header ul, 
.site-header ul,
.nav-links, 
.main-menu {
    margin-left: auto !important;
    margin-right: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    height: 100% !important;
    list-style: none;
    padding: 0;
}

header nav a, .site-header nav a, header ul li a {
    text-decoration: none !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.2s ease;
}

header nav a:hover, .site-header nav a:hover {
    color: #6366f1 !important;
}

header .search-btn, .site-header .search-btn, header button, .site-header button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ---------------------------------------------------------
   2. MAIN TOOL CONTAINER & HERO HEADER (SHIFTED UPWARDS)
   --------------------------------------------------------- */
.stp-main-container {
    max-width: 1100px;
    margin: 5px auto 20px auto !important;
    padding: 0 20px !important;
}

.hero-header {
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
}

.hero-badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #6366f1;
    margin: 4px 0 4px 0 !important;
}

.hero-subtitle {
    color: #64748b;
    font-size: 13px;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   3. MODE SWITCHER BUTTONS
   --------------------------------------------------------- */
.tool-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px !important;
    flex-wrap: wrap;
}

.mode-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ---------------------------------------------------------
   4. WORKSPACE GRID & PANELS
   --------------------------------------------------------- */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.form-group {
    margin-bottom: 14px;
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stylish-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 13px;
    outline: none;
}

.dropzone {
    border: 2px dashed #818cf8;
    background: #f8fafc;
    border-radius: 12px;
    padding: 22px 15px;
    text-align: center;
    cursor: pointer;
}

.drop-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.drop-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.browse-link {
    color: #4f46e5;
    text-decoration: underline;
}

.file-info-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 230px;
    padding: 14px;
    margin-bottom: 16px;
    overflow-y: auto;
    max-height: 300px;
}

.preview-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 6px;
}

.preview-placeholder {
    color: #64748b;
    font-size: 13px;
}

.action-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-action {
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-convert {
    background: #10b981;
    color: white;
}

.btn-print {
    background: #0284c7;
    color: white;
}

/* ---------------------------------------------------------
   5. FAQ & FOOTER SECTION
   --------------------------------------------------------- */
.section-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    color: #334155;
}

.faq-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 14px;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.faq-question {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.faq-answer {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ---------------------------------------------------------
   6. RESPONSIVE MOBILE STYLES
   --------------------------------------------------------- */
@media (max-width: 768px) {
    header, .site-header {
        padding: 0 15px !important;
        height: 55px !important;
        min-height: 55px !important;
    }

    header img, .site-header img, .logo img {
        max-height: 34px !important;
        height: 34px !important;
    }

    header nav, .site-header nav, header ul, .site-header ul, .nav-links, .main-menu {
        display: none !important;
    }

    .stp-main-container {
        margin: 0 auto 15px auto !important;
        padding: 0 10px !important;
    }

    .hero-header {
        margin-bottom: 10px !important;
    }

    .hero-title {
        font-size: 20px !important;
    }

    .tool-switcher {
        margin-bottom: 12px !important;
    }

    .workspace-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .options-grid {
        grid-template-columns: 1fr !important;
    }
}