:root {
    --brand-color: #6200ea;
    --brand-hover: #5000c2;
    --body-bg: #eff0f5;
    --card-bg: #ffffff;
    --footer-bg: #ffffff;
    
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    
    --container-width: 1100px;
    --header-height: 70px;
    --radius: 0px;
}


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-color); }


* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }


.site-header {
    background-color: var(--brand-color);
    height: var(--header-height);
    color: white;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.2);
    position: sticky; top: 0; z-index: 100;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}

.brand-logo-img { height: 40px; width: auto; display: block; }

.btn-back {
    background: rgba(255,255,255,0.15); color: white; padding: 8px 16px; 
    border-radius: var(--radius); font-size: 0.7rem; font-weight: 500; border: 1px solid transparent;border-radius: 25px;
}
.btn-back:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.3); }


.main-container {
    max-width: var(--container-width); width: 100%; margin: 40px auto; padding: 0 20px; flex: 1; 
}

.white-section {
    background-color: var(--card-bg); border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); padding: 20px; margin-bottom: 20px; border: 1px solid var(--border-color);
}


.tool-header { display: flex; flex-direction: column; gap: 10px; }
.breadcrumbs { font-size: 0.80rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--brand-color); text-decoration: underline; }
.breadcrumbs .sep { font-size: 0.7rem; color: #cbd5e0; }
.breadcrumbs .current { color: var(--text-main); font-weight: 600; }
.page-title { font-size: 2.2rem; font-weight: 700; color: #1a202c; line-height: 1.2; letter-spacing: -0.5px; }
.page-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 100%; margin-bottom: 40px;margin-top: 10px;}


/*content*/
.tool-content {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155; 
    line-height: 1.7;
    font-size: 16px; 
    margin: 0 auto; 
}

.tool-content h1, .tool-content h2, .tool-content h3, .tool-content h4 {
    color: #1e293b;
    margin-bottom: 0.75em;
    line-height: 1.3;
    letter-spacing: -0.02em;
    word-wrap: break-word; 
}

.tool-content h1 { font-size: 2.25rem; margin-top: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }
.tool-content h2 { font-size: 1.40rem;margin-top: 20px;font-weight: 700; }
.tool-content h3 { font-size: 1.10rem; color: #3b485f;font-weight: 600;}
.tool-content h4 { font-size: 1.18rem; font-weight: 500;}

.tool-content p {
    margin-bottom: 0.5em;
    color: #475569;
}

.tool-content ul, .tool-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.tool-content li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.tool-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s ease;
    word-break: break-word; 
}

.tool-content a:hover {
    color: #1d4ed8;
    text-decoration-thickness: 2px;
}

.tool-content blockquote {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    margin: 2em 0;
    padding: 1em 1.5em;
    font-style: italic;
    color: #475569;
    border-radius: 0 4px 4px 0;
}

.tool-content code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: #f1f5f9;
    color: #ef4444; 
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85em; 
}

.tool-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.25em;
    border-radius: 8px;
    margin-bottom: 1.5em;
    line-height: 1.5;
    overflow-x: auto; 
    white-space: pre; 
    -webkit-overflow-scrolling: touch; 
    max-width: 100%; 
}

.tool-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.9em;
}

.tool-content table {
    display: block; 
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-size: 0.95em;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
}

.tool-content th, .tool-content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.tool-content th {
    background-color: #f8fafc;
    font-weight: 600;
}

.tool-content img {
    max-width: 100%; 
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
    display: block; 
}

.tool-content hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 3em 0;
}

@media (max-width: 768px) {
    .main-container {
        padding:0 5px;
    }
    .white-section{
padding: 20px;
    }
    .tool-content {
        font-size: 15px; 
        padding: 0 15px; 
    }

    .tool-content h1 { font-size: 1.75rem; }
    .tool-content h2 { font-size: 1.5rem; }
    .tool-content h3 { font-size: 1.25rem; }
    .tool-content h4 { font-size: 1.1rem; }

    .tool-content h1, .tool-content h2, .tool-content h3 {
        margin-top: 1.5em; 
    }

    .tool-content ul, .tool-content ol {
        padding-left: 1.2em; 
    }

    .tool-content blockquote {
        margin: 1.5em 0;
        padding: 0.75em 1em; 
    }

    .tool-content table {
        font-size: 0.85em; 
    }
    
    .tool-content pre {
        padding: 1em;
        font-size: 13px; 
    }
}





.site-footer {
    background-color: var(--card-bg); /* Pure White */
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center; /* Centers the content */
    padding: 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center; /* Centers links horizontally */
    flex-wrap: wrap; /* Wraps gracefully on mobile */
    gap: 25px; /* Space between links */
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-grid { grid-template-columns: 1fr; }
    .footer-nav { flex-direction: column; gap: 15px; }
    .page-title { font-size: 1.5rem; }
}