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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
}

.logo svg {
    color: #6366f1;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #6366f1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Generator Section */
.generator-section {
    padding: 4rem 0;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.configuration-panel,
.output-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.configuration-panel h2,
.output-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.panel-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit select {
    width: 60px;
    flex-shrink: 0;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    flex-shrink: 0;
}

/* Multi-select */
select[multiple] {
    min-height: 100px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #5b21b6;
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Output Panel */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab:hover {
    color: #6366f1;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-description {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.code-output {
    background: #1e293b;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.code-output pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.code-output code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preview-container {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.preview-placeholder {
    text-align: center;
    color: #64748b;
}

.preview-placeholder h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Documentation Section */
.documentation-section {
    padding: 4rem 0;
    background: white;
}

.documentation-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.example-section {
    margin-bottom: 3rem;
}

.example-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.code-example {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.code-example pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attribute-group h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6366f1;
}

.attribute {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #6366f1;
}

.attribute h4 {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    color: #374151;
}

.attribute p {
    margin-bottom: 0.5rem;
    color: #374151;
}

.attribute small {
    color: #6b7280;
    font-style: italic;
}

.sandbox-options ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.sandbox-options li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature p {
    color: #64748b;
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases-section {
    padding: 4rem 0;
    background: white;
}

.use-cases-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.use-case h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.use-case p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .generator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .code-actions {
        flex-direction: column;
    }

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

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

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .configuration-panel,
    .output-panel {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .documentation-section,
    .features-section,
    .use-cases-section {
        padding: 2rem 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Template Page Specific Styles */
.template-section {
    padding: 4rem 0;
}

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

.template-configuration,
.template-output {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.template-grid-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.template-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.template-option:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.template-option.selected {
    border-color: #6366f1;
    background: #f8fafc;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.template-option .template-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.template-option h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.template-option p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Templates Explained Section */
.templates-explained {
    padding: 4rem 0;
    background: #f8fafc;
}

.templates-explained h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.template-explanation {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.template-header .template-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.template-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.template-header p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.use-cases {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #6366f1;
}

.use-cases strong {
    color: #1e293b;
}

.attributes-explanation h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.attributes-explanation ul {
    list-style: none;
    padding: 0;
}

.attributes-explanation li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.attributes-explanation li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.attributes-explanation code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.security-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.security-note h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.security-note p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive adjustments for template page */
@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .template-grid-select {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .template-option {
        padding: 0.75rem;
    }

    .template-option .template-icon {
        font-size: 1.5rem;
    }

    .template-header {
        flex-direction: column;
        text-align: center;
    }

    .template-header .template-icon {
        align-self: center;
    }

    .attributes-explanation li {
        padding-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .template-grid-select {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-explanation {
        padding: 1rem;
    }

    .template-header .template-icon {
        font-size: 2rem;
    }
}

/* Blog Page Specific Styles */
.blog-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-category h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #6366f1;
}

.blog-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.blog-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-weight: bold;
}

.blog-content {
    flex: 1;
}

.blog-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
    line-height: 1.3;
}

.blog-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.blog-link {
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.blog-link:hover {
    color: #5b21b6;
    text-decoration: underline;
}

/* Blog responsive design */
@media (max-width: 768px) {
    .blog-articles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .blog-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }

    .blog-category {
        padding: 1rem;
    }

    .blog-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .blog-articles {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 1rem;
    }

    .blog-content h3 {
        font-size: 0.875rem;
    }

    .blog-content p {
        font-size: 0.8rem;
    }

    .blog-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Search and filter functionality (future enhancement) */
.blog-search {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-search input {
    max-width: 400px;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.blog-search input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Category tags */
.category-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tools Page Specific Styles */
.tools-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.tools-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tools-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tools-category h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #6366f1;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tool-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.tool-card .tool-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card .tool-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.tool-card .tool-content p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.tool-area {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-area textarea,
.tool-area input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-area input {
    min-height: auto;
    height: 3rem;
}

.tool-area textarea:focus,
.tool-area input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-result {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 2px solid #334155 !important;
}

.tool-result:focus {
    border-color: #6366f1 !important;
}

/* Tool-specific styles */
.grid-controls,
.password-controls,
.lorem-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.grid-controls label,
.password-controls label,
.lorem-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.grid-controls input,
.password-controls input,
.lorem-controls input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.grid-preview {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.color-palette {
    margin-top: 1rem;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.color-swatch {
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: end;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    transform: scale(1.05);
}

.color-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    width: 100%;
    text-align: center;
}

.color-name {
    font-weight: 600;
    font-size: 0.75rem;
}

.color-hex {
    font-size: 0.625rem;
    opacity: 0.9;
    font-family: monospace;
}

.qr-result {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.text-stats {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.text-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.common-words {
    margin-top: 1rem;
}

.common-words h4 {
    margin-bottom: 0.5rem;
    color: #374151;
}

.common-words ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.common-words li {
    background: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #374151;
}

.hash-results {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.hash-result {
    margin-bottom: 1rem;
}

.hash-result:last-child {
    margin-bottom: 0;
}

.hash-value {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.hash-value:hover {
    background: #334155;
}

.validation-results {
    margin-top: 1rem;
}

.validation-results .success {
    color: #10B981;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border-left: 4px solid #10B981;
}

.validation-results .error {
    color: #EF4444;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border-left: 4px solid #EF4444;
    margin-bottom: 1rem;
}

.validation-results .warning {
    color: #F59E0B;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    border-left: 4px solid #F59E0B;
    margin-bottom: 1rem;
}

.validation-results ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

/* Legal Pages Styles */
.legal-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
}

.legal-section-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-block h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #6366f1;
}

.legal-section-block h3 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.legal-section-block p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.legal-section-block ul,
.legal-section-block ol {
    margin: 1rem 0 1rem 1.5rem;
    color: #4b5563;
}

.legal-section-block li {
    margin-bottom: 0.5rem;
}

.legal-section-block li strong {
    color: #1e293b;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
    margin: 1.5rem 0;
}

.contact-info h3 {
    margin-top: 0;
    color: #1e293b;
}

.effective-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.effective-date p {
    margin-bottom: 0.5rem;
}

.effective-date p:last-child {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Responsive Design for Tools and Legal Pages */
@media (max-width: 768px) {
    .tools-category,
    .tool-card {
        padding: 1rem;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .grid-controls,
    .password-controls,
    .lorem-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .palette-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .text-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .legal-content {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .tools-section,
    .legal-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .tool-area textarea,
    .tool-area input {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .palette-grid {
        grid-template-columns: 1fr;
    }
    
    .text-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
}

/* Resources Page Styles */
.resources-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.resource-search {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.resource-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource-category h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-description {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #6366f1;
}

.resource-header {
    margin-bottom: 1rem;
}

.resource-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.resource-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.resource-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.resource-features span {
    font-size: 0.875rem;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.resource-link {
    background: #6366f1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.resource-link:hover {
    background: #5b21b6;
    transform: translateY(-1px);
}

.resource-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.cta-buttons .btn-primary {
    background: white;
    color: #6366f1;
}

.cta-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modal Styles */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .resource-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .resource-card {
        padding: 1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .resource-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .resource-rating {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .resources-section {
        padding: 2rem 0;
    }
    
    .resource-search {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .resource-category {
        padding: 1rem;
    }
    
    .resource-category h2 {
        font-size: 1.5rem;
    }
    
    .resource-card {
        padding: 1rem;
    }
    
    .filter-buttons {
        gap: 0.25rem;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Loading animation for resource cards */
.resource-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.resource-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}