/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

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

/* Header Styles - Matching Nafezly */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

.nav.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.nav-section h3 {
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-section li {
    margin-bottom: 0.3rem;
}

.nav-section a {
    text-decoration: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-section i {
    font-size: 0.8rem;
    width: 16px;
}

.lang-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.lang-btn:hover {
    background: #e9ecef;
}

.menu-btn {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #e9ecef;
}

/* Main Content */
.main {
    padding: 1.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

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

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

.breadcrumb i {
    font-size: 0.7rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* QR Code Generator Section */
.qr-section {
    margin-bottom: 2.5rem;
}

.qr-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-wrapper {
    margin-bottom: 2rem;
}

.input-wrapper label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.input-group {
    position: relative;
}

#textInput, #batchInput {
    width: 100%;
    padding: 1rem;
    padding-left: 60px; /* Make room for action buttons */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    font-family: 'Cairo', sans-serif;
}

#textInput:focus, #batchInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-actions {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-action {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-action:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #007bff;
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.char-count {
    font-family: monospace;
}

.data-type {
    font-weight: 500;
}

/* QR Settings */
.qr-settings {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.qr-settings h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group > label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Size Settings */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.size-btn {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.size-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.size-btn.active {
    border-color: #007bff;
    background: #e3f2fd;
    color: #007bff;
}

.size-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.size-btn small {
    color: #6c757d;
    font-size: 0.8rem;
}

.custom-size {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.custom-size label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    min-width: 80px;
}

.custom-size input[type="range"] {
    flex: 1;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    outline: none;
    appearance: none;
}

.custom-size input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.custom-size input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#customSizeValue {
    font-weight: 600;
    color: #007bff;
    font-family: monospace;
    min-width: 60px;
    text-align: center;
}

/* Color Settings */
.color-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-option {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.color-option label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    min-width: 80px;
}

.color-option input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-value {
    font-family: monospace;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
}

.color-presets {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.color-presets span {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.color-preset {
    width: 35px;
    height: 35px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-preset:hover {
    border-color: #007bff;
    transform: scale(1.1);
}

/* Logo Upload */
.logo-upload {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

#logoInput {
    display: none;
}

.btn-upload, .btn-remove-logo {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background: #0056b3;
}

.btn-remove-logo {
    background: #dc3545;
}

.btn-remove-logo:hover {
    background: #c82333;
}

.logo-preview {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.logo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
}

/* Advanced Options */
.advanced-options {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

.advanced-options h4 {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: 1px solid #e9ecef;
    background: white;
}

.option-checkbox:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Action Button */
.action-wrapper {
    text-align: center;
}

.btn-generate {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
    justify-content: center;
}

.btn-generate:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-generate:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Output Section */
.output-section {
    margin-bottom: 2rem;
}

.qr-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-preview h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.qr-container {
    background: white;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 2rem;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.qr-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.qr-size, .qr-type {
    font-family: monospace;
    font-weight: 500;
}

/* Download Options */
.download-options {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.download-options h4 {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.btn-download, .btn-copy-qr {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: #1e7e34;
}

.btn-copy-qr {
    background: #007bff;
}

.btn-copy-qr:hover {
    background: #0056b3;
}

/* QR Details */
.qr-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.qr-details h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Examples Section */
.examples-section {
    margin-bottom: 2rem;
}

.examples-section h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

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

.btn-example {
    background: white;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    min-height: 80px;
    justify-content: center;
}

.btn-example:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-example i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.btn-example span {
    font-weight: 500;
    line-height: 1.3;
}

/* Batch Section */
.batch-section {
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.batch-section h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.batch-input {
    margin-bottom: 1.5rem;
}

.batch-input textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    resize: vertical;
    margin-bottom: 1rem;
}

.batch-input textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-batch {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-batch:hover {
    background: #138496;
}

.batch-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.batch-qr-item .qr-mini {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.batch-qr-item .qr-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.batch-qr-item .qr-download {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Batch Toggle */
.batch-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-toggle-batch {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle-batch:hover {
    background: #5a6268;
}

/* Info Section - Two Column Layout */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-section .info-card,
.about-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.info-section .info-card h2,
.about-card h2 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-section .info-card i {
    color: #007bff;
}

.info-section .info-card p,
.about-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* QR Guide */
.qr-guide {
    margin-bottom: 2.5rem;
}

.qr-guide h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.guide-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.guide-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.guide-header i {
    font-size: 2rem;
    color: #007bff;
}

.guide-header h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Popular Tools */
.popular-tools {
    margin-bottom: 2rem;
}

.popular-tools h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.tool-card {
    background: white;
    padding: 1.2rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.tool-card:hover,
.tool-card.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #007bff;
}

.tool-card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #007bff;
}

.tool-card span {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo {
    height: 35px;
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 6px;
    text-align: center;
    line-height: 35px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #007bff;
    color: white;
}

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

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

.footer-section ul a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Copy success animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-copy-qr.copied {
    animation: copySuccess 0.3s ease;
    background: #28a745 !important;
}

/* QR Code Animation */
@keyframes qrGenerate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

.qr-container.generating {
    animation: qrGenerate 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        min-width: 280px;
        grid-template-columns: 1fr;
    }

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

    .qr-card {
        padding: 1.2rem;
    }

    #textInput, #batchInput {
        padding-left: 15px;
        font-size: 0.9rem;
    }

    .input-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .size-options {
        grid-template-columns: 1fr 1fr;
    }

    .color-settings {
        grid-template-columns: 1fr;
    }

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

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

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

    .download-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

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

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

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

    .qr-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .batch-results {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

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

    .qr-card {
        padding: 1rem;
    }

    .btn-generate {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }

    .size-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .btn-example {
        padding: 0.8rem;
        min-height: 70px;
    }

    .btn-example i {
        font-size: 1.2rem;
    }

    .guide-grid {
        gap: 1rem;
    }

    .qr-container {
        padding: 1rem;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .batch-results {
        grid-template-columns: 1fr;
    }

    .color-presets {
        flex-wrap: wrap;
    }

    .custom-size {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }