body { font-family: sans-serif; line-height: 1.6; max-width: 900px; margin: 0 auto; padding: 20px; }
nav { margin-bottom: 20px; border-bottom: 1px solid #ccc; padding-bottom: 10px; }

/* QR Generator Styles */
.qr-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.tab-btn { padding: 10px 20px; border: none; background: #f0f0f0; cursor: pointer; border-radius: 5px 5px 0 0; margin-right: 5px; }
.tab-btn.active { background: #007bff; color: white; }
.tab-btn:hover { background: #e0e0e0; }
.tab-btn.active:hover { background: #0056b3; }

.qr-form { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; display: none; }
.qr-form.active { display: block; }
.qr-form input, .qr-form select, .qr-form textarea { display: block; margin-bottom: 10px; width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.qr-form textarea { resize: vertical; min-height: 60px; }

.qr-settings { background: #e9ecef; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.qr-settings label { display: block; margin-bottom: 10px; }
.qr-settings input, .qr-settings select { margin-left: 10px; padding: 5px; border: 1px solid #ddd; border-radius: 4px; }
.qr-settings button { margin-right: 10px; padding: 10px 20px; background: #28a745; color: white; border: none; border-radius: 4px; cursor: pointer; }
.qr-settings button:hover { background: #218838; }

#qr-result { margin-top: 20px; text-align: center; }
.qr-preview { display: inline-block; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.qr-preview img { max-width: 300px; height: auto; }
.qr-info { margin-top: 15px; }
.qr-info input { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; }
.qr-info button { padding: 8px 16px; background: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; }
.qr-info button:hover { background: #545b62; }

article { background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 8px; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 20px;
    color: #333;
    font-size: 16px;
}

.modal-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.modal-btn:hover {
    background-color: #c82333;
}

/* Footer Styles */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
}

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

/* Breadcrumbs Styles */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #666;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

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

.breadcrumbs li:last-child {
    color: #666;
}

/* SEO Content */
.seo-content {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.seo-content h2 {
    color: #495057;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.seo-content h3 {
    color: #495057;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.seo-content p {
    line-height: 1.6;
    color: #6c757d;
}

.seo-content ul, .seo-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.seo-content li {
    margin-bottom: 5px;
    color: #6c757d;
}

/* Articles Page */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.articles-intro {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.articles-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.articles-link:hover {
    text-decoration: underline;
}

/* Custom QR Options */
.qr-advanced-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}
.qr-advanced-options label {
    display: inline-block;
    margin-right: 15px;
}
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.article-card h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #495057;
}

.article-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: #007bff;
}

.article-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        padding: 20px;
    }
}
