:root {
    --primary-color: #2563EB;
    --primary-hover: #1d4ed8;
    --bg-color: #FAFAFA;
    --text-color: #1F2937;
    --light-bg: #FAFAFA;
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.04);
    --hover-shadow: 0 6px 18px rgba(0,0,0,0.06);
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: #FAFAFA;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header, header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 24px;
    flex-wrap: nowrap;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.search-container {
    flex: 0 0 auto;
}

.search-container input, .search-bar input {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: 300px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    color: var(--text-color);
}

.search-container input:focus, .search-bar input:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    color: inherit;
    flex: 0 0 auto;
    margin-left: 10px;
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: left;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-color);
    display: block;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.tool-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tool Pages specific styles */
.tool-section {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.tool-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tool-workspace {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

textarea, input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f9fafb;
    color: var(--text-color);
}

textarea {
    min-height: 250px;
    resize: vertical;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.live-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.stat-box {
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.case-buttons, .action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

button:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
    background-color: white;
    color: #4b5563;
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: #f3f4f6;
    color: var(--text-color);
}

.result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    font-size: 1rem;
}

.info-section {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.info-section h2 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section p {
    margin-bottom: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-info p {
    color: #6b7280;
    max-width: 400px;
}

.footer-links-group h4 {
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info p {
        margin: 0 auto;
    }
    
    .live-stats {
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .tool-section {
        padding: 1.5rem;
    }
}

/* Related Tools */
.related-tools {
    margin-top: 80px;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}
.related-tools h3 {
    margin-bottom: 20px;
}
.related-tools ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0;
}
.related-tools li {
    background: #F9FAFB;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}
.related-tools a {
    text-decoration: none;
    color: #2563EB;
    font-weight: 500;
    transition: all 0.2s ease;
}
.related-tools a:hover {
    text-decoration: underline;
}

/* UI Upgrade Additions */
.tool-hero { max-width: 800px; margin: 40px auto; text-align: center; }
.tool-hero p { color: #6B7280; line-height: 1.6; font-size: 16px; margin: 0 auto; max-width: 600px; }
.result-box { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; padding: 20px; display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.copy-btn { padding: 0.75rem 1.75rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; background-color: var(--primary-color); color: white; }
.copy-btn:hover { background-color: var(--primary-hover); }
.dark-mode { background: #111827; color: #E5E7EB; }
.dark-mode header, .dark-mode .site-header { background: #1F2937; border-color: #374151; }
.dark-mode .tool-card, .dark-mode .result-box, .dark-mode .tool-section, .dark-mode .info-section, .dark-mode footer, .dark-mode .related-tools, .dark-mode .faq, .dark-mode textarea, .dark-mode .about-section, .dark-mode .contact-section, .dark-mode .content-wrapper, .dark-mode .page-container, .dark-mode .about-content, .dark-mode .contact-content { background: #1F2937; border-color: #374151; color: #E5E7EB; }
.dark-mode .about-section p, .dark-mode .contact-section p, .dark-mode .info-section p { color: #D1D5DB; }
.dark-mode .tool-card h2, .dark-mode .tool-title, .dark-mode .tool-hero h1, .dark-mode .related-tools h3, .dark-mode .faq h2, .dark-mode .faq h3 { color: #E5E7EB; }
.dark-mode textarea, .dark-mode input, .dark-mode select { background: #111827; border-color: #374151; color: #E5E7EB; }
.dark-mode .nav-links a, .dark-mode .logo a { color: #E5E7EB; }
.faq { margin-top: 40px; padding: 20px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; }
.faq h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text-color); }
.faq h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-color); }
.faq p { line-height: 1.6; color: #6B7280; margin-bottom: 20px; }


.site-credit { font-size: 13px; color: #6B7280; margin-top: 6px; font-style: italic; letter-spacing: 0.5px; }


/* === MOBILE RESPONSIVENESS UPDATES === */

.header-container{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
gap:10px;
}

.search-container input{
width:100%;
max-width:300px;
}

.nav-links{
display:flex;
flex-wrap:wrap;
gap:10px;
}

.tools-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.tool-card{
width:100%;
}

textarea{
width:100%;
min-height:180px;
font-size:16px;
padding:12px;
}

footer{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
text-align:center;
}

footer a{
font-size:14px;
}

@media (max-width:768px){

.header-container{
flex-direction:column;
align-items:flex-start;
}

.search-container{
width:100%;
}

.nav-links{
width:100%;
justify-content:flex-start;
}

.tools-grid{
grid-template-columns:1fr;
}

}

/* =============================================
   SEO UPGRADE — BREADCRUMB, SEO CONTENT, FAQ
   ============================================= */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #6b7280; }
.breadcrumb-sep { color: #9ca3af; }

/* SEO Content Section */
.seo-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    margin-top: 50px;
    line-height: 1.7;
}
.seo-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.75;
}
.seo-content ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.seo-content ul li {
    padding: 0.35rem 0;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.7;
}
.seo-content ul li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}
.seo-content a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.seo-content a:hover { text-decoration: underline; }

/* FAQ Section */
.faq-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    margin-top: 50px;
    line-height: 1.7;
}
.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.75rem;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.faq-item p { color: #4b5563; line-height: 1.7; margin: 0; }

/* Enhanced Related Tools */
.related-tools {
    margin-top: 50px;
    padding: 2.5rem 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.related-tools h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.related-tools ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}
.related-tools li {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.related-tools li:hover { border-color: var(--primary-color); }
.related-tools a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.93rem;
}

/* Info section links */
.info-section a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.info-section a:hover { text-decoration: underline; }

/* SEO intro block on homepage */
.seo-intro-block {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}
.seo-intro-block p { color: #4b5563; font-size: 1.05rem; line-height: 1.75; }

/* Dark mode for new sections */
.dark-mode .seo-content,
.dark-mode .faq-section {
    background: #1F2937;
    border-color: #374151;
}
.dark-mode .seo-content h2,
.dark-mode .faq-section h2,
.dark-mode .faq-item h3 { color: #E5E7EB; }
.dark-mode .seo-content p,
.dark-mode .seo-content ul li,
.dark-mode .faq-item p { color: #D1D5DB; }
.dark-mode .faq-item { border-color: #374151; }
.dark-mode .breadcrumb,
.dark-mode .breadcrumb span { color: #9ca3af; }
.dark-mode .related-tools li { background: #111827; border-color: #374151; }
.dark-mode .seo-intro-block p { color: #9ca3af; }
.dark-mode .related-tools li:hover { border-color: #60a5fa; }