/* ============================================
   GENERATOR-SPECIFIC STYLES
   Extends calculator.css for generator pages
   ============================================ */

/* Navigation Container Spacing */
.top-nav .nav-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.top-nav .nav-left,
.top-nav .nav-center,
.top-nav .nav-right {
    display: flex;
    align-items: center;
}

.top-nav .nav-left {
    flex-shrink: 0;
}

.top-nav .nav-center {
    flex: 1;
    justify-content: center;
}

.top-nav .nav-right {
    flex-shrink: 0;
    gap: 0.5rem;
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .top-nav .nav-container {
        gap: 1rem;
    }

    .top-nav .nav-center {
        flex: 1;
        justify-content: flex-end;
    }
}

/* Generator Logo Styles (matching converter pattern) */
.generator-logo-link {
    text-decoration: none;
}

.generator-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text-primary, #333);
}

.generator-text {
    display: flex;
    align-items: baseline;
}

.generator-g {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 1px;
}

.generator-rest {
    color: var(--text-primary, #333);
    font-weight: 700;
}

[data-theme="dark"] .generator-rest {
    color: #fff;
}

/* Ensure only active generator container is visible */
.generator-container {
    display: none;
}

.generator-container.active {
    display: block;
    /* Or flex, depending on internal layout */
}

/* Calculator Inputs - Generator specific adjustments */
.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Content Type Toggle */
.content-type-toggle {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.type-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

[data-theme="dark"] .type-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.type-btn:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

.type-btn.active {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border-color: #3B82F6;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .input-group label {
    color: #fff;
}

.input-group label i {
    color: #3B82F6;
}

/* Textarea for QR input */
.input-group textarea,
.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"],
.input-group input[type="url"],
.input-group input[type="number"],
.input-group input[type="tel"],
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
}

.input-group textarea {
    min-height: 120px;
}

[data-theme="dark"] .input-group textarea,
[data-theme="dark"] .input-group input[type="text"],
[data-theme="dark"] .input-group input[type="password"],
[data-theme="dark"] .input-group input[type="email"],
[data-theme="dark"] .input-group input[type="url"],
[data-theme="dark"] .input-group input[type="number"],
[data-theme="dark"] .input-group input[type="tel"],
[data-theme="dark"] .input-group select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Fix for select dropdown arrow in dark mode */
[data-theme="dark"] .input-group select option {
    background: #1a1a1a;
    color: #fff;
}

.input-group textarea:focus,
.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Options Row */
.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

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

/* Size Toggle Buttons */
.size-toggle,
.error-correction-toggle {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn,
.ec-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

[data-theme="dark"] .size-btn,
[data-theme="dark"] .ec-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.size-btn:hover,
.ec-btn:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

.size-btn.active,
.ec-btn.active {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border-color: #3B82F6;
}

/* Color Customization */
.color-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.color-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-input-wrapper label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #333);
}

[data-theme="dark"] .color-input-wrapper label {
    color: #fff;
}

.color-input-wrapper input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    background: var(--input-bg, #fff);
    transition: border-color 0.3s ease;
}

[data-theme="dark"] .color-input-wrapper input[type="color"] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.color-input-wrapper input[type="color"]:hover {
    border-color: #3B82F6;
}

/* Legacy color picker styles for backward compatibility */
.color-pickers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-picker-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Calculate/Generate Button */
.calculate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    border-radius: 8px;
    color: #EF4444;
    margin-top: 1rem;
}

.error-message i {
    font-size: 1.25rem;
}

/* Results Section */
.calculator-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .calculator-results {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

[data-theme="dark"] .result-card {
    background: rgba(0, 0, 0, 0.3);
}

.result-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary, #333);
}

[data-theme="dark"] .result-card h3 {
    color: #fff;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-card h4 {
    margin: 0;
    color: var(--text-primary, #666);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .stat-card h4 {
    color: #9ca3af;
}

.stat-card p {
    margin: 0.5rem 0 0;
    font-size: 2rem;
    font-weight: 800;
}

/* QR Code Display */
.qr-code-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#qrCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* QR Actions */
.qr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Legacy QR Code Canvas styles for backward compatibility */
.qr-canvas-wrapper {
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* QR Code Canvas/SVG - maintain square aspect ratio */
.qr-canvas-wrapper canvas,
.qr-canvas-wrapper svg {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 512px;
    aspect-ratio: 1 / 1;
}

#qr-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-btn.secondary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.download-btn.secondary:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Recalculate Button */
.recalculate-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #3B82F6;
    border: 2px solid #3B82F6;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.recalculate-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Input Hint */
.input-hint {
    font-size: 0.875rem;
    color: #6B7280;
    font-style: italic;
}

[data-theme="dark"] .input-hint {
    color: #9CA3AF;
}

/* Optional Badge */
.optional-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Examples Section - Prevent Overflow */
.examples-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Grid Layouts - Different column configurations */
/* 3-column grid for 3 items (e.g., Examples section) */
.example-grid,
.guide-steps.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* 2-column grid for 4 items (e.g., How to Use section) */
.guide-steps,
.guide-steps.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.example-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

[data-theme="dark"] .example-card {
    background: rgba(0, 0, 0, 0.3);
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Example card color variants */
.example-normal {
    border-color: #10B981;
}

.example-overweight {
    border-color: #F59E0B;
}

.example-underweight {
    border-color: #3B82F6;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.example-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary, #333);
}

[data-theme="dark"] .example-header h4 {
    color: #fff;
}

.example-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.example-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.example-detail .label {
    font-weight: 600;
    color: var(--text-primary, #333);
    flex-shrink: 0;
}

[data-theme="dark"] .example-detail .label {
    color: #d1d5db;
}

.example-detail .value {
    color: var(--light-text-color, #6B7280);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

[data-theme="dark"] .example-detail .value {
    color: #9ca3af;
}

.example-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .example-result {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.example-result .label {
    font-weight: 600;
    color: var(--text-primary, #333);
}

[data-theme="dark"] .example-result .label {
    color: #d1d5db;
}

.example-result .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #333);
}

[data-theme="dark"] .example-result .value {
    color: #fff;
}

.example-category {
    margin-top: 0.75rem;
    text-align: center;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

.category-badge.normal {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.category-badge.overweight {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.category-badge.underweight {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

/* Responsive Grid Layouts */
@media (max-width: 1024px) {

    /* Tablet: 3-column becomes 2-column */
    .example-grid,
    .guide-steps.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile: All grids become 1-column */
    .example-grid,
    .guide-steps,
    .guide-steps.cols-2,
    .guide-steps.cols-3 {
        grid-template-columns: 1fr;
    }

    .example-detail .value {
        font-size: 0.875rem;
    }
}

/* ========================================
   Advanced QR Code Options
   ======================================== */

/* Logo Upload */
.logo-upload-wrapper {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.upload-btn,
.clear-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.clear-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.clear-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

[data-theme="dark"] .clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Dot Style Toggle */
.style-toggle {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.style-btn {
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.style-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.style-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.style-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Corner Style Toggle */
.corner-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.corner-btn {
    padding: 0.875rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.corner-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.corner-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.corner-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* QR Code Display Container */
#qrCanvas {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

#qrCanvas canvas,
#qrCanvas svg {
    /* Removed !important to allow JavaScript sizing */
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .style-toggle {
        grid-template-columns: repeat(3, 1fr);
    }

    .style-btn {
        font-size: 0.7rem;
        padding: 0.6rem;
    }

    .style-icon {
        font-size: 1.25rem;
    }

    .corner-toggle {
        grid-template-columns: repeat(3, 1fr);
    }

    .corner-btn {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

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

    .logo-upload-wrapper {
        flex-direction: column;
    }

    .upload-btn,
    .clear-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   QR Generator: Two-Column Layout + Accordion
   ============================================ */

/* Container */
.qr-generator-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.generator-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text-primary);
}

/* Two-Column Layout */
.qr-two-column {
    display: block;
    width: 100%;
}

/* Left Column: Options Panel */
.options-panel {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Right Column: Preview Panel */
.preview-panel {
    position: relative;
}

.preview-sticky {
    position: sticky;
    top: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Accordion Styles
   ============================================ */

.accordion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.accordion-section {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.accordion-section:hover {
    border-color: var(--primary-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--hover-bg);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-header h3 i {
    font-size: 1rem;
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-section.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 2000px;
    overflow: visible;
    padding: 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-section.active .accordion-content {
    max-height: 2000px;
    padding: 1rem;
}

/* ============================================
   Preview Panel Styles
   ============================================ */

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-header h3 i {
    color: var(--primary-color);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    background: var(--input-bg);
    border-radius: 20px;
}

.status-indicator i {
    font-size: 0.6rem;
    color: #10b981;
}

.status-indicator.generating {
    color: var(--primary-color);
}

.status-indicator.generating i {
    color: var(--primary-color);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Preview Display Area */
.qr-preview-display {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border-radius: 8px;
    position: relative;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.preview-placeholder i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.preview-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

.qr-canvas-wrapper {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

[data-theme="dark"] .preview-loading {
    background: rgba(0, 0, 0, 0.85);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.preview-loading p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* QR Actions */
.qr-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.qr-actions .download-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-actions .download-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.qr-actions .download-btn:active {
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .qr-two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .preview-panel {
        order: -1;
        /* Move preview to top on tablet */
    }

    .preview-sticky {
        position: static;
        /* Remove sticky on mobile */
    }

    .qr-preview-display {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .generator-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .options-panel,
    .preview-sticky {
        padding: 1rem;
    }

    .accordion-header {
        padding: 0.875rem 1rem;
    }

    .accordion-header h3 {
        font-size: 0.95rem;
    }

    .accordion-section.active .accordion-content {
        padding: 1rem;
    }

    .preview-header h3 {
        font-size: 1rem;
    }

    .qr-preview-display {
        min-height: 250px;
    }

    .qr-canvas-wrapper {
        padding: 1rem;
    }

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

    .qr-actions .download-btn {
        width: 100%;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .accordion-section {
    border-color: #374151;
}

[data-theme="dark"] .accordion-section:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .accordion-header {
    background: #1f2937;
}

[data-theme="dark"] .accordion-header:hover {
    background: #374151;
}

[data-theme="dark"] .preview-header {
    border-bottom-color: #374151;
}

[data-theme="dark"] .qr-actions {
    border-top-color: #374151;
}

[data-theme="dark"] .preview-placeholder i {
    color: #4b5563;
}

/* ============================================
   Frame Selection UI
   ============================================ */

/* Frame Category Tabs */
.frame-category-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tab {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.category-tab i {
    font-size: 1.1rem;
}

.category-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Frame Grid */
.frame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    min-height: 200px;
    padding: 1rem;
    background: var(--input-bg);
    border-radius: 8px;
}

.frame-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.frame-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.frame-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
}

.frame-item.selected {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.frame-item.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.frame-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.frame-item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 0.3rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.frame-item:hover .frame-item-name {
    opacity: 1;
}

/* Selected Frame Info Card */
.selected-frame-card {
    padding: 1rem;
    background: var(--input-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 1rem;
}

.selected-frame-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.selected-frame-card p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.clear-frame-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.clear-frame-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Frame Grid */
@media (max-width: 768px) {
    .frame-category-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .category-tab {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
    }

    .category-tab i {
        font-size: 1rem;
    }

    .frame-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .frame-item-name {
        font-size: 0.65rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .frame-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .frame-item:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .frame-item.selected {
    background: #1f2937;
}

[data-theme="dark"] .selected-frame-card {
    background: #1f2937;
}


/* ========================================
   FLOATING DRAGGABLE PREVIEW
   ======================================== */

/* Floating Draggable Preview Panel */
.right-preview-panel {
    position: absolute;
    right: 20px;
    top: 100px;
    width: 400px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 900;
    display: flex;
    flex-direction: column;
    transition: none;
    /* Remove transition for smooth dragging */
    cursor: default;
}

[data-theme="dark"] .right-preview-panel {
    background: var(--card-bg);
}

.right-preview-panel.minimized .preview-body {
    display: none;
}

/* Drag Handle */
.preview-drag-handle {
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    user-select: none;
}

.preview-drag-handle:active {
    cursor: grabbing;
    background: #0056b3;
}

.preview-drag-handle i {
    font-size: 1.2rem;
}

.drag-hint {
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Preview Header */
.right-preview-panel .preview-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right-preview-panel .preview-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator i {
    color: #22c55e;
    font-size: 0.6rem;
}

.status-indicator.generating i {
    color: var(--primary-color);
    animation: pulse 1s ease-in-out infinite;
}

.preview-minimize-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preview-minimize-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Preview Body */
.preview-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(100vh - 260px);
}

.qr-preview-display {
    background: var(--input-bg);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder i {
    color: var(--border-color);
    margin-bottom: 1rem;
}

.preview-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.qr-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.download-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive */
@media (max-width: 1400px) {
    .right-preview-panel {
        width: 350px;
    }

    .options-panel-fullwidth {
        max-width: calc(100% - 390px);
    }
}

@media (max-width: 1024px) {
    .options-panel-fullwidth {
        max-width: 100%;
        margin-right: 0;
    }

    .preview-drag-handle {
        border-radius: 16px 16px 0 0;
    }

    .preview-body {
        max-height: calc(50vh - 140px);
    }
}

@media (max-width: 768px) {
    .right-preview-panel {
        max-height: 60vh;
    }

    .qr-preview-display {
        min-height: 200px;
        padding: 1rem;
    }
}

/* Dark Theme */
[data-theme="dark"] .right-preview-panel {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .preview-header {
    border-bottom-color: #374151;
}

[data-theme="dark"] .qr-preview-display {
    background: #111827;
}

[data-theme="dark"] .preview-minimize-btn {
    background: #111827;
}

[data-theme="dark"] .preview-minimize-btn:hover {
    background: var(--primary-color);
}

/* Static Preview Panel for non-QR/Password pages */
.static-preview-panel {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    background: transparent !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3) !important;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .static-preview-panel {
    background: transparent !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2) !important;
}

.static-preview-panel .preview-drag-handle {
    display: none !important;
}

.static-preview-panel .preview-body {
    max-height: none !important;
    padding: 2rem !important;
}

.static-preview-panel .preview-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .static-preview-panel .preview-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Content Sections Max-Width */
section.usage-guide-section,
section.examples-section,
section.info-section,
section.faq-section,
section.feature-section,
section.related-section {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

/* Additional specificity */
.main-content>section.usage-guide-section,
.main-content>section.examples-section,
.main-content>section.info-section,
.main-content>section.faq-section,
.main-content>section.feature-section,
.main-content>section.related-section {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

/* Consistent Detail Section Styling */
.step,
.feature-item,
.faq-item,
.info-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover,
.feature-item:hover,
.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .step,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .info-content {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Tablets and Desktop: Keep 2 columns for balanced layout */
@media (min-width: 769px) {
    .accordion {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Color Selection Buttons */
.color-selection-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-select-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.color-select-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.color-select-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color-light, rgba(99, 102, 241, 0.1));
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.color-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Color Picker Panel */
.color-picker-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--input-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.gradient-canvas-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

#gradientCanvas {
    display: block;
    width: 100%;
    height: 160px;
    cursor: crosshair;
    border-radius: 6px;
}

.gradient-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.hue-slider-wrapper {
    margin-bottom: 1rem;
}

.hue-slider {
    position: relative;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(to right,
            #ff0000 0%,
            #ffff00 17%,
            #00ff00 33%,
            #00ffff 50%,
            #0000ff 67%,
            #ff00ff 83%,
            #ff0000 100%);
    cursor: pointer;
}

.hue-cursor {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* RGB Inputs */
.rgb-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.rgb-input-group,
.hex-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rgb-input-group {
    flex: 1;
}

.hex-input-group {
    flex: 1.5;
}

.rgb-input-group label,
.hex-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.rgb-input,
.hex-input {
    width: 100%;
    padding: 0.5rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.rgb-input:focus,
.hex-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Remove number input spinners */
.rgb-input::-webkit-inner-spin-button,
.rgb-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rgb-input {
    -moz-appearance: textfield;
}

/* ============================================
   PASSWORD GENERATOR STYLES
   ============================================ */

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--input-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.checkbox-label:hover {
    background: var(--hover-bg);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.count-toggle,
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.count-btn,
.mode-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.mode-btn i {
    font-size: 1.25rem;
}

.count-btn:hover,
.mode-btn:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.count-btn.active,
.mode-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.generate-button-wrapper {
    margin-top: 1.5rem;
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.generate-btn i {
    font-size: 1.1rem;
}

.password-preview-display {
    min-height: 200px;
}

.password-list-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

.password-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-card {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.password-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.password-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-all;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.copy-btn {
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.strength-meter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.entropy {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.strength-bar {
    height: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.crack-time {
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-align: right;
}

.password-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}