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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #48bb78, #38a169);
    --danger-gradient: linear-gradient(135deg, #f56565, #e53e3e);
    --info-gradient: linear-gradient(135deg, #4299e1, #3182ce);
    --warning-gradient: linear-gradient(135deg, #ed8936, #dd6b20);
    
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    --z-modal: 1000;
    --z-toast: 2000;
}



.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-6);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
    font-weight: 600;
}

.loading-content p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.app-container {
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
}


.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.nav-brand i {
    font-size: 1.5rem;
    color: #667eea;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
}


.header {
    margin-bottom: var(--space-8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.header-text {
    text-align: left;
}


.quick-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.quick-btn {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.quick-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-btn i {
    font-size: 1rem;
    color: #667eea;
}


.footer {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-section h4 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: 1rem;
}

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

.footer-section li {
    margin-bottom: var(--space-2);
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-section li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom p {
    margin-bottom: var(--space-2);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}


.main-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.action-btn {
    padding: var(--space-5);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: var(--space-4);
    flex-shrink: 0;
}

.btn-icon i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    line-height: 1.2;
}

.btn-desc {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.3;
}

.btn-arrow {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: transform var(--transition-base);
}

.action-btn:hover .btn-arrow {
    transform: translateX(5px);
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}



.container {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.header {
    margin-bottom: var(--space-12);
}

.header-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto var(--space-6);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 400;
}



.status-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-8);
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

.status-bar i {
    color: var(--gray-500);
    font-size: 0.9rem;
}



.main-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.action-btn {
    padding: var(--space-6);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    color: white;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 1.5rem;
    width: 30px;
}

.btn-content span {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.btn-content small {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.add-btn {
    background: var(--success-gradient);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
}

.delete-btn {
    background: var(--danger-gradient);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
}

.delete-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 101, 101, 0.4);
}

.decode-btn {
    background: var(--info-gradient);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
}

.decode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(66, 153, 225, 0.4);
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-2xl);
    animation: slideIn 0.3s ease-out;
}

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

.modal-header {
    padding: var(--space-8);
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: var(--space-8);
}

.input-section {
    margin-bottom: var(--space-8);
}

label {
    display: block;
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: var(--gray-800);
}

#card-input, #result-output {
    width: 100%;
    height: 200px;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color var(--transition-base);
}

#card-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#result-output {
    background-color: var(--gray-50);
    color: var(--gray-800);
}

.button-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.modal-btn {
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    color: white;
    min-width: 120px;
    justify-content: center;
}

.process-btn {
    background: var(--primary-gradient);
}

.paste-btn {
    background: var(--success-gradient);
}

.clear-btn {
    background: var(--warning-gradient);
}

.copy-btn {
    background: var(--info-gradient);
}

.save-btn {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



@media (max-width: 768px) {
    .container {
        padding: var(--space-6);
        margin: var(--space-4);
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .status-bar {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .action-btn {
        min-height: 70px;
    }
    
    .action-btn i {
        font-size: 1.25rem;
    }
    
    .history-actions {
        gap: var(--space-2);
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .history-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        background: var(--gray-100);
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-md);
        color: var(--gray-600);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-base);
    }
    
    .history-btn:hover {
        background: var(--gray-200);
        color: var(--gray-800);
        transform: scale(1.05);
    }
    
    .history-btn.danger {
        color: #e53e3e;
        background: rgba(229, 62, 62, 0.1);
        border-color: rgba(229, 62, 62, 0.3);
    }
    
    .history-btn.danger:hover {
        background: rgba(229, 62, 62, 0.2);
        color: #c53030;
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--space-2);
    }
    
    .container {
        padding: var(--space-4);
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .modal-header {
        padding: var(--space-5);
    }
    
    .modal-body {
        padding: var(--space-5);
    }
}



.hidden {
    display: none !important;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}



::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}



button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}



@media print {
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}



.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: modalFadeIn var(--transition-base) ease-out;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: var(--white);
    margin: 0;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn var(--transition-base) ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.advanced-modal {
    max-width: 900px;
}

.result-modal-content {
    max-width: 1000px;
    max-height: 85vh;
}

.modal-header {
    padding: var(--space-6) var(--space-8);
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header.success-header {
    background: var(--success-gradient);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.modal-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-icon.success-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modal-title-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
    line-height: 1.2;
}

.modal-title-section p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modal-body {
    padding: var(--space-8);
    flex: 1;
    overflow-y: auto;
}

.input-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.section-header label {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
}

.input-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.separator {
    opacity: 0.5;
}

.input-container {
    position: relative;
    margin-bottom: var(--space-6);
}

#card-input, #result-output {
    width: 100%;
    min-height: 200px;
    padding: var(--space-5);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--gray-800);
}

#card-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--gray-50);
}

#result-output {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.result-container {
    position: relative;
}

.result-section {
    margin-bottom: var(--space-8);
}


.button-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.result-buttons {
    margin-top: var(--space-8);
}

.modal-btn {
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.primary-btn {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.secondary-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}


.status-message {
    margin-top: var(--space-6);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    display: none;
    border-left: 4px solid;
}

.status-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--gray-800);
    border-left-color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.status-message.error {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--gray-800);
    border-left-color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.status-message.warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--gray-800);
    border-left-color: #ed8936;
    border: 1px solid rgba(237, 137, 54, 0.3);
}


.notification-toast {
    position: fixed;
    top: 90px;
    right: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 300px;
    z-index: var(--z-toast);
    transform: translateX(120%);
    transition: transform var(--transition-base);
    overflow: hidden;
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-content {
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--success-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.toast-text {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.toast-progress {
    height: 3px;
    background: var(--success-gradient);
    width: 100%;
    animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
    .container { 
        padding: var(--space-4); 
        margin: var(--space-2); 
        width: calc(100% - var(--space-4));
    }
    .modal-content { 
        margin: var(--space-1); 
        width: calc(100% - var(--space-2)); 
        max-height: 95vh;
    }
    .button-group { 
        flex-direction: column; 
        gap: var(--space-3);
    }
    .modal-btn {
        width: 100%;
        min-height: 48px;
        padding: var(--space-4) var(--space-5);
        font-size: 1rem;
    }
    .analysis-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: var(--space-3);
    }
    .header-content { 
        flex-direction: column; 
        text-align: center;
        gap: var(--space-4);
    }
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: var(--space-4);
    }
    .modal-header { 
        padding: var(--space-4) var(--space-5); 
        flex-direction: column;
        gap: var(--space-3);
    }
    .modal-body { 
        padding: var(--space-5); 
    }
    .notification-toast { 
        right: var(--space-4); 
        left: var(--space-4); 
        min-width: auto; 
    }
    .status-bar {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
        padding: var(--space-3) var(--space-4);
        margin: var(--space-4) 0;
    }
    .status-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    .status-item i {
        font-size: 0.9rem;
    }
    .nav-tools {
        gap: var(--space-2);
    }
    .nav-btn {
        min-width: 44px;
        min-height: 44px;
        padding: var(--space-3);
    }
    .action-btn {
        min-height: 80px;
        padding: var(--space-5);
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .btn-icon {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
        margin-right: var(--space-4);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-icon i {
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .btn-content {
        flex: 1;
    }
    .btn-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .btn-desc {
        font-size: 0.85rem;
        margin-top: var(--space-1);
    }
    .quick-actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    .quick-btn {
        width: 100%;
        min-height: 56px;
        padding: var(--space-4);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .container {
        margin: var(--space-1);
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }
    .main-container {
        padding: 0;
    }
    .navbar {
        padding: var(--space-3) var(--space-4);
        position: sticky;
        top: 0;
        z-index: 100;
        flex-wrap: nowrap;
    }
    .nav-brand {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        flex: 1;
        min-width: 0;
    }
    .nav-brand span {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-tools {
        display: flex;
        gap: var(--space-1);
        flex-shrink: 0;
    }
    .nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .status-bar {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
        margin: var(--space-3) 0;
        border-radius: var(--radius-lg);
    }
    .status-item {
        font-size: 0.8rem;
        justify-content: center;
        padding: var(--space-1) 0;
    }
    .status-item i {
        font-size: 0.85rem;
    }
    .main-buttons {
        gap: var(--space-4);
    }
    .action-btn {
        min-height: 70px;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        margin-right: var(--space-3);
        flex-shrink: 0;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-icon i {
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .btn-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-title {
        font-size: 1rem;
        line-height: 1.1;
        margin-bottom: var(--space-1);
    }
    .btn-desc {
        font-size: 0.8rem;
        opacity: 0.85;
        line-height: 1.2;
    }
    .btn-arrow {
        font-size: 1rem;
        margin-left: var(--space-2);
    }
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    .copyright {
        font-size: 0.8rem;
    }
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    .modal-header {
        padding: var(--space-4);
        border-radius: 0;
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    .modal-header-left {
        flex: 1;
        min-width: 0;
    }
    .modal-header-right {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: var(--space-2);
    }
    .result-stats {
        display: none;
    }
    .progress-step {
        display: none;
    }
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .modal-body {
        padding: var(--space-4);
        flex: 1;
        overflow-y: auto;
    }
    .button-group {
        flex-direction: column;
        gap: var(--space-3);
    }
    .modal-btn {
        width: 100%;
        min-height: 48px;
        padding: var(--space-3) var(--space-4);
        font-size: 0.95rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .result-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }
    .format-select {
        width: 100%;
        min-width: auto;
    }
    #card-input, #result-output {
        min-height: 200px;
        font-size: 16px;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }
    .input-overlay, .result-overlay {
        position: static;
        margin-top: var(--space-3);
    }
    .input-tools, .result-tools {
        justify-content: center;
        gap: var(--space-3);
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    
    .history-actions {
        gap: var(--space-3);
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
    }
    
    .history-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: var(--radius-md);
        background: var(--gray-100);
        border: 1px solid var(--gray-300);
        color: var(--gray-600);
        transition: all var(--transition-base);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .history-btn:hover {
        background: var(--gray-200);
        color: var(--gray-800);
        transform: scale(1.05);
        border-color: var(--gray-400);
    }
    
    .history-btn.danger {
        color: #e53e3e;
        background: rgba(229, 62, 62, 0.1);
        border-color: rgba(229, 62, 62, 0.3);
    }
    
    .history-btn.danger:hover {
        background: rgba(229, 62, 62, 0.2);
        color: #c53030;
        border-color: rgba(197, 48, 48, 0.4);
    }
    .input-tool-btn, .result-tool-btn {
        flex: 1;
        min-height: 44px;
        font-size: 0.9rem;
        background: var(--gray-100);
        border: 1px solid var(--gray-300);
    }
    .action-btn {
        min-height: 70px;
        border-radius: var(--radius-lg);
    }
    .btn-title {
        font-size: 1.1rem;
    }
    .btn-desc {
        font-size: 0.85rem;
    }
    .footer {
        margin-top: var(--space-8);
    }
    .footer-section {
        text-align: center;
    }
    .footer-section:last-child kbd {
        display: none;
    }
    .footer-section:last-child ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-section:last-child li {
        font-size: 0.8rem;
        margin: var(--space-1) 0;
        color: var(--gray-600);
        line-height: 1.3;
        padding: var(--space-1) 0;
    }
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .analysis-item {
        padding: var(--space-3);
        text-align: center;
    }
    .analysis-value {
        font-size: 1.2rem;
    }
    .analysis-label {
        font-size: 0.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    .stat-card {
        padding: var(--space-4);
        text-align: center;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .help-sections {
        gap: var(--space-6);
    }
    .help-section:has(.shortcuts) {
        display: none;
    }
    .help-section:has(.mobile-tips) {
        display: block !important;
    }
    .mobile-tips {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }
    .mobile-tip {
        background: var(--gray-50);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
        line-height: 1.3;
        color: var(--gray-700);
        border-left: 4px solid #667eea;
        word-break: break-word;
    }
    .file-upload-area {
        padding: var(--space-6);
        border-radius: var(--radius-lg);
    }
    .file-upload-area p {
        font-size: 0.9rem;
        margin: var(--space-2) 0;
    }
    .file-upload-area small {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .footer-section:last-child h4 {
        font-size: 0.9rem;
        margin-bottom: var(--space-2);
    }
    .footer-section:last-child li {
        font-size: 0.75rem;
        margin: var(--space-05) 0;
        padding: var(--space-05) 0;
    }
    .mobile-tip {
        padding: var(--space-2);
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .help-section h3 {
        font-size: 1rem;
    }
}


.hidden { display: none !important; }
.loading { pointer-events: none; opacity: 0.7; }
.fade-in { animation: fadeIn 0.3s ease-out; }
.slide-up { animation: slideUp 0.3s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


::-webkit-scrollbar { 
    width: 0px; 
    height: 0px;
    background: transparent;
    display: none;
}
::-webkit-scrollbar-track { 
    background: transparent;
    display: none;
}
::-webkit-scrollbar-thumb { 
    background: transparent;
    display: none;
}
::-webkit-scrollbar-corner {
    background: transparent;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html, body, textarea, div, .modal-content, .modal-body, .history-list, .result-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
textarea::-webkit-scrollbar,
div::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.history-list::-webkit-scrollbar,
.result-container::-webkit-scrollbar {
    display: none !important;
    width: 0;
    height: 0;
}


@media print {
    .navbar, .modal, .notification-toast { display: none !important; }
    body { background: white; }
    .container { box-shadow: none; border: 1px solid #ccc; }
}


@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}




.help-modal {
    max-width: 800px;
}

.help-sections {
    display: grid;
    gap: var(--space-8);
}

.help-section {
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.help-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    font-weight: 600;
}

.help-section h3 i {
    color: #667eea;
    font-size: 1.2rem;
}

.help-section ul {
    list-style: none;
    margin: var(--space-3) 0;
}

.help-section li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
}

.help-section li:last-child {
    border-bottom: none;
}

.shortcuts {
    display: grid;
    gap: var(--space-3);
}

.shortcut {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.shortcut kbd {
    background: var(--gray-700);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-right: var(--space-2);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.format-example {
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    font-family: var(--font-mono);
    margin-top: var(--space-4);
    white-space: pre-line;
}

.pwa-install-section {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-top: var(--space-3);
}

.pwa-install-info {
    margin-bottom: var(--space-4);
}

.pwa-install-info ul {
    margin: var(--space-2) 0;
    padding-left: var(--space-4);
    list-style: disc;
}

.pwa-install-info li {
    margin: var(--space-1) 0;
    border: none;
    padding: 0;
}

.pwa-install-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.install-instructions {
    padding: var(--space-3);
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
}

.install-instructions p {
    margin: 0;
}


.stats-modal {
    max-width: 900px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.time-saved-card::before {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.stat-icon {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 1.2rem;
    color: var(--gray-400);
    opacity: 0.7;
}

.stats-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .stats-actions {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    .stats-actions .modal-btn {
        width: 100%;
        max-width: 250px;
    }
}


.history-modal {
    max-width: 700px;
}

.empty-history {
    text-align: center;
    padding: var(--space-12);
    color: var(--gray-500);
}

.empty-history i {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-history h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-6);
}

.history-item {
    padding: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    background: var(--white);
    transition: all var(--transition-base);
}

.history-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.history-action {
    font-weight: 600;
    color: var(--gray-800);
    padding: var(--space-1) var(--space-3);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.history-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.history-details {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.history-actions {
    display: flex;
    justify-content: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}


.input-overlay {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    z-index: 10;
}

.input-tools {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 768px) {
    .input-tools {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .input-tool-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.input-tool-btn, .result-tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.input-tool-btn:hover, .result-tool-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.result-overlay {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 10;
}

.result-tools {
    display: flex;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}


.file-upload-section {
    margin-top: var(--space-6);
}

.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.qr-scanner-modal {
    max-width: 500px;
    width: 95%;
    margin: 20px auto;
}

body.dark-theme .qr-scanner-modal {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme #qr-reader {
    background: #1a202c !important;
}

#qr-reader {
    width: 100%;
    margin: 0 auto;
}

#qr-reader__camera_selection {
    display: none;
}

body.dark-theme #qr-reader__camera_selection {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

#qr-reader__dashboard_section {
    border: none !important;
}

#qr-reader__scan_region {
    border: none !important;
}

body.dark-theme #qr-reader__dashboard_section {
    background: #1a202c !important;
    color: #e2e8f0 !important;
}

body.dark-theme #qr-reader__scan_region {
    border-color: #4a5568 !important;
}

.qr-results {
    margin: 20px 0;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.qr-results h4 {
    margin-bottom: 10px;
    color: var(--gray-800);
}

.qr-results p {
    font-family: var(--font-mono);
    background: var(--white);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    word-break: break-all;
}

body.dark-theme .qr-results {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .qr-results h4 {
    color: #f7fafc;
}

body.dark-theme .qr-results p {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .modal-content.qr-scanner-modal {
    background: #2d3748;
    border-color: #4a5568;
}

.scan-result {
    text-align: center;
}

@media (max-width: 768px) {
    .qr-scanner-modal {
        width: 95%;
        margin: 10px;
    }
    
    #qr-reader {
        width: 100%;
    }
    
    body.dark-theme #qr-reader {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}

.file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: var(--space-3);
}

.file-upload-area:hover i {
    color: #667eea;
}

.file-upload-area p {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.file-upload-area small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.add-limit-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.add-limit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.option-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-base);
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    background: var(--white);
    flex-shrink: 0;
}

.option-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

.option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
}

.limit-card-options {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.limit-card-options .option-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.limit-card-options .option-section:last-child {
    margin-bottom: 0;
}

body.dark-theme .option-label {
    color: #e2e8f0;
}

body.dark-theme .option-label:hover {
    color: #f7fafc;
}

body.dark-theme .checkmark {
    border-color: #4a5568;
    background: #2d3748;
}

body.dark-theme .option-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

body.dark-theme .option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
}

body.dark-theme .limit-card-options {
    border-top: 1px solid #4a5568;
}

.processing-options {
    margin: var(--space-6) 0;
    padding: var(--space-5);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.modal-progress {
    display: flex;
    gap: var(--space-2);
}

.progress-step {
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.progress-step.active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}


.analysis-section {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.analysis-section h4 {
    margin-bottom: var(--space-5);
    color: var(--gray-800);
    font-weight: 600;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.analysis-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.analysis-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.analysis-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}


.result-stats {
    display: flex;
    gap: var(--space-4);
}

.stat-item {
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.stat-item small {
    font-size: 0.8rem;
    opacity: 0.8;
}


.result-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.format-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    margin: 0;
}

.format-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 200px;
    transition: all var(--transition-base);
}

.format-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.format-select:hover {
    border-color: var(--gray-400);
}


body.dark-theme .format-label {
    color: #cbd5e0;
}

body.dark-theme .format-select {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .format-select:focus {
    border-color: #667eea;
}

.qr-scanner-modal {
    max-width: 500px;
    width: 95%;
    margin: 20px auto;
}

.camera-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}

.camera-controls select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-primary);
}

.camera-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

body.dark-theme .camera-controls {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .camera-controls select {
    background: rgba(45, 55, 72, 0.9);
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .camera-controls select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-theme .format-select:hover {
    border-color: #718096;
}

body.dark-theme .modal-btn.secondary-btn {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .modal-btn.secondary-btn:hover {
    background: #718096;
    border-color: #a0aec0;
    color: #f7fafc;
}


body.dark-theme {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

body.dark-theme .app-container {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body.dark-theme .navbar {
    background: rgba(26, 32, 44, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .nav-brand {
    color: #e2e8f0;
}

body.dark-theme .nav-btn {
    color: #a0aec0;
}

body.dark-theme .nav-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

body.dark-theme .container {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-theme .container::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

body.dark-theme .header-icon {
    background: var(--primary-gradient);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

body.dark-theme h1 {
    color: #f7fafc;
}

body.dark-theme .subtitle {
    color: #cbd5e0;
}

body.dark-theme .copyright {
    color: #a0aec0;
}

body.dark-theme .status-bar {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

body.dark-theme .status-bar i {
    color: #a0aec0;
}

body.dark-theme .quick-btn {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-theme .quick-btn:hover {
    background: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .quick-btn i {
    color: #667eea;
}

body.dark-theme .footer-section h4 {
    color: #f7fafc;
}

body.dark-theme .footer-section li {
    color: #cbd5e0;
}

body.dark-theme .footer-bottom {
    color: #a0aec0;
}


body.dark-theme .modal-content {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .modal-header {
    background: var(--primary-gradient);
}

body.dark-theme .qr-scanner-modal .modal-header {
    background: var(--primary-gradient);
}

body.dark-theme .modal-body {
    color: #e2e8f0;
}

body.dark-theme .section-header label {
    color: #f7fafc;
}

body.dark-theme .input-stats {
    color: #cbd5e0;
}

body.dark-theme #card-input,
body.dark-theme #result-output {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme #card-input:focus {
    background: #2d3748;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-theme #result-output {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .result-tools {
    background: rgba(26, 32, 44, 0.95);
    border-color: #4a5568;
}

body.dark-theme .result-tool-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

body.dark-theme .result-tool-btn:hover {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .processing-options {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .option-label {
    color: #e2e8f0;
}

body.dark-theme .option-label:hover {
    color: #f7fafc;
}

body.dark-theme .checkmark {
    border-color: #4a5568;
    background: #2d3748;
}

body.dark-theme .option-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: transparent;
}

body.dark-theme .secondary-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

body.dark-theme .secondary-btn:hover {
    background: #718096;
    border-color: #a0aec0;
}

body.dark-theme .file-upload-area {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .file-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-theme .file-upload-area i {
    color: #718096;
}

body.dark-theme .file-upload-area:hover i {
    color: #667eea;
}

body.dark-theme .file-upload-area p {
    color: #e2e8f0;
}

body.dark-theme .file-upload-area small {
    color: #a0aec0;
}


body.dark-theme .notification-toast {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .toast-title {
    color: #f7fafc;
}

body.dark-theme .toast-text {
    color: #cbd5e0;
}

body.dark-theme .toast-close {
    color: #a0aec0;
}

body.dark-theme .toast-close:hover {
    background: #4a5568;
    color: #e2e8f0;
}


body.dark-theme .history-item.enhanced {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .history-item.enhanced:hover {
    border-color: #718096;
    box-shadow: var(--shadow-md);
}

body.dark-theme .history-main-info {
    color: #e2e8f0;
}

body.dark-theme .history-date {
    color: #a0aec0;
}

body.dark-theme .history-btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

body.dark-theme .history-btn:hover {
    background: #718096;
    color: #f7fafc;
}

body.dark-theme .history-stats .stat {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .history-stats .stat strong {
    color: #f7fafc;
}

body.dark-theme .history-stats .stat.error {
    color: #fc8181;
    background: rgba(229, 62, 62, 0.15);
    border-color: rgba(229, 62, 62, 0.4);
}

body.dark-theme .history-stats .stat.error strong {
    color: #fc8181;
}

body.dark-theme .preview-text {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

body.dark-theme .preview-label {
    color: #cbd5e0;
}

body.dark-theme .history-search-container {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

body.dark-theme .search-input-group {
    background: #4a5568;
    border-color: #718096;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

body.dark-theme .search-input-group input {
    background: transparent;
    color: #f7fafc;
}

body.dark-theme .search-input-group input::placeholder {
    color: #a0aec0;
}

body.dark-theme .search-input-group i {
    color: #a0aec0;
}

body.dark-theme .search-clear-btn {
    background: #718096;
    color: #f7fafc;
}

body.dark-theme .search-clear-btn:hover {
    background: #a0aec0;
    color: #ffffff;
}

body.dark-theme .empty-history {
    color: #a0aec0;
}

body.dark-theme .empty-history h3 {
    color: #e2e8f0;
}

body.dark-theme .empty-history p {
    color: #a0aec0;
}


body.dark-theme .stat-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
}

body.dark-theme .stat-value {
    color: #f7fafc;
}

body.dark-theme .stat-label {
    color: #cbd5e0;
}

body.dark-theme .stat-icon {
    color: #718096;
}


body.dark-theme .analysis-section {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .analysis-section h4 {
    color: #f7fafc;
}

body.dark-theme .analysis-item {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .analysis-value {
    color: #f7fafc;
}

body.dark-theme .analysis-label {
    color: #cbd5e0;
}


body.dark-theme .help-section {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .help-section h3 {
    color: #f7fafc;
}

body.dark-theme .help-section p {
    color: #cbd5e0;
}

body.dark-theme .help-section ul {
    color: #cbd5e0;
}

body.dark-theme .help-section li {
    color: #cbd5e0;
    border-bottom-color: #4a5568;
}

body.dark-theme .help-section strong {
    color: #f7fafc;
}

body.dark-theme .mobile-tip {
    background: #1a202c;
    border: 1px solid #4a5568;
    color: #cbd5e0;
    border-left: 4px solid #667eea;
}

body.dark-theme .mobile-tip:hover {
    background: #2d3748;
    border-color: #718096;
}

body.dark-theme .shortcut {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}

body.dark-theme .shortcut kbd {
    background: #4a5568;
    color: #f7fafc;
}

body.dark-theme .format-example {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-theme .pwa-install-section {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-theme .pwa-install-info {
    color: #cbd5e0;
}

body.dark-theme .pwa-install-info p {
    color: #cbd5e0;
}

body.dark-theme .pwa-install-info ul {
    color: #cbd5e0;
}

body.dark-theme .pwa-install-info li {
    color: #cbd5e0;
}

body.dark-theme .pwa-install-info strong {
    color: #f7fafc;
}

body.dark-theme .install-instructions {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}



.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.modal-btn.loading span {
    opacity: 0;
}

.modal-btn.loading .btn-loading {
    display: block;
}


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


.history-modal {
    max-width: 800px;
}

.history-search-container {
    padding: var(--space-3) var(--space-5);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin: 0 auto;
    height: 42px;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group i.fa-search {
    position: absolute;
    left: var(--space-4);
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

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


.history-modal {
    max-width: 800px;
}

.history-search-container {
    padding: var(--space-3) var(--space-5);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin: 0 auto;
    height: 42px;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group i.fa-search {
    position: absolute;
    left: var(--space-4);
    color: var(--gray-400);
    font-size: 1rem;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-group input {
    width: 100%;
    padding: var(--space-3) var(--space-12) var(--space-3) var(--space-12);
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--gray-800);
    font-family: var(--font-mono);
    height: 100%;
    border-radius: 50px;
}

.search-input-group input::placeholder {
    color: var(--gray-400);
    font-family: var(--font-sans);
}

.search-clear-btn {
    position: absolute;
    right: var(--space-3);
    width: 20px;
    height: 20px;
    border: none;
    background: var(--gray-200);
    border-radius: 50%;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all var(--transition-base);
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.search-clear-btn:hover {
    background: var(--gray-300);
    color: var(--gray-700);
}

.search-results-header {
    padding: var(--space-4);
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    text-align: center;
    font-weight: 500;
}

.empty-history .modal-btn.secondary-btn {
    max-width: 200px;
    margin: var(--space-4) auto;
    padding: var(--space-3) var(--space-4);
    font-size: 0.9rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.empty-history .modal-btn.secondary-btn i {
    font-size: 0.8rem;
}

.history-item.enhanced {
    padding: var(--space-5);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    background: var(--white);
}

@media (max-width: 768px) {
    .empty-history .modal-btn.secondary-btn {
        max-width: 100%;
        width: 100%;
        padding: var(--space-4);
        font-size: 1rem;
    }
    
    .empty-history .modal-btn.secondary-btn i {
        font-size: 0.9rem;
    }
}

.history-item.enhanced:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.history-main-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.history-action {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
    padding: var(--space-2) var(--space-3);
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    display: inline-block;
    width: fit-content;
}

.history-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.history-actions {
    display: flex;
    gap: var(--space-2);
}

@media (max-width: 480px) {
    .history-search-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .search-input-group input {
        padding: var(--space-3) var(--space-10) var(--space-3) var(--space-10);
        font-size: 16px;
    }
    
    .search-clear-btn {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

.history-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.history-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
    transform: scale(1.05);
}

.history-btn.danger {
    color: #e53e3e;
}

.history-btn.danger:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #c53030;
}

.history-stats {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.history-stats .stat {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: var(--space-2) var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.history-stats .stat.error {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    border-color: rgba(229, 62, 62, 0.3);
}

.history-stats .stat strong {
    color: var(--gray-800);
}

.history-preview {
    margin-top: var(--space-4);
}

.preview-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.preview-text {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-700);
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
    white-space: pre-wrap;
    margin: 0;
}

.history-footer-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-6);
}

@media (max-width: 768px) {
    .history-footer-actions {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    .history-footer-actions .modal-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .empty-history .modal-btn {
        width: 100%;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .pwa-content {
        gap: var(--space-2);
    }
    
    .pwa-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .pwa-text strong {
        font-size: 1rem;
        margin-bottom: var(--space-1);
    }
    
    .pwa-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .pwa-actions {
        gap: var(--space-2);
    }
    
    .pwa-btn {
        min-height: 44px;
        padding: var(--space-2) var(--space-3);
        font-size: 0.9rem;
        border-radius: var(--radius-md);
    }
    
    .history-search-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .search-input-group input {
        padding: var(--space-3) var(--space-10) var(--space-3) var(--space-10);
        font-size: 16px;
    }
}