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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #2a2a3a;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-icon {
    font-size: 1.6rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

/* Tool Card */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-body {
    padding: 20px;
}

/* Form Elements */
textarea, input[type="text"], input[type="number"] {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea {
    min-height: 120px;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.tool-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

button.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

button.secondary:hover {
    background: var(--border);
}

/* Output */
.output {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 60px;
    max-height: 300px;
    overflow-y: auto;
}

.output:empty::before {
    content: 'Output will appear here...';
    color: var(--text-secondary);
}

/* Password Tool */
.password-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.password-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.password-options input[type="number"] {
    width: 70px;
}

.password-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.password-display {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
}

/* QR Code */
.qr-display {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    min-height: 100px;
}

.qr-display canvas {
    max-width: 200px;
}

/* Color Tool */
.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.color-input-group input[type="text"] {
    flex: 1;
}

.color-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-result {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.color-result code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

/* Text Counter */
.counter-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Lorem Ipsum */
.lorem-options {
    margin-bottom: 16px;
}

.lorem-options input {
    width: 80px;
}

.lorem-text {
    line-height: 1.8;
    font-family: 'Space Grotesk', sans-serif;
}

/* Ad Space */
.ad-space {
    margin: 40px 0;
    padding: 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.ad-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

/* About */
.about-section {
    padding: 60px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.about-section h2 {
    margin-bottom: 16px;
    color: var(--accent);
}

.about-section p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Homepage tool cards */
.tool-card-link {
    text-decoration: none;
    color: inherit;
}

.tools-grid .tool-card {
    padding: 30px;
    text-align: center;
    cursor: pointer;
}

.tools-grid .tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.tools-grid .tool-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tools-grid .tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tool page layout */
.tool-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tool-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tool-page .tool-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.tool-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--text-secondary);
}


/* Related Tools */
.related-tools {
    margin-top: 40px;
}

.related-tools h3 {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.related-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.related-grid a {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.related-grid a:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

/* Tool Info */
.tool-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.tool-info h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.tool-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}


/* Section Titles */
.section-title {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    color: var(--text-secondary);
    font-weight: 600;
}


/* Section Titles */
.section-title {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    color: var(--text-secondary);
    font-weight: 600;
}


/* SEO Content Section */
.seo-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
}

.seo-content h2 {
    color: var(--accent);
    margin-bottom: 16px;
}

.seo-content h3 {
    margin: 24px 0 12px;
    font-size: 1.1rem;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.seo-content ul {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 20px;
}

.seo-content li {
    margin: 8px 0;
}

.seo-content strong {
    color: var(--text-primary);
}

/* Footer link */
.footer a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 16px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Made by xctlabs */
.made-by {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.made-by a {
    margin-left: 0;
    font-weight: 600;
}

/* Legal & About Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.about-section {
    margin-bottom: 32px;
}

.contact-info {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.contact-info p {
    margin-bottom: 8px;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}


/* Blog Styles */
.blog-header {
    text-align: center;
    padding: 40px 20px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.blog-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.blog-card h2 {
    font-size: 1.25rem;
    margin: 12px 0;
    line-height: 1.4;
}

.blog-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-category {
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 16px;
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 32px;
}

.post-header h1 {
    font-size: 2.2rem;
    margin: 16px 0;
    line-height: 1.3;
}

.post-content h2 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.post-content h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.post-content ul, .post-content ol {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--accent);
}

.post-content pre {
    background: #1a1a2e;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent), #00b894);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    text-align: center;
}

.cta-box h3 {
    color: #000;
    margin-bottom: 8px;
}

.cta-box p {
    color: #000;
    opacity: 0.8;
    margin-bottom: 16px;
}

.cta-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}
