/* CSS Custom Properties & Reset */
:root {
    --bg-main: #0a0f1d;
    --bg-sidebar: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(12px);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 10;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.accent-text {
    color: var(--primary);
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-btn {
    background: none;
    border: none;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.nav-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
    color: white;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.connected .dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.disconnected .dot {
    background-color: var(--error);
    box-shadow: 0 0 8px var(--error);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.header-title h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.api-speed {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-yellow {
    color: var(--warning);
}

/* Tab Contents Toggle */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn var(--transition-fast) forwards;
}

.tab-content.active {
    display: flex;
}

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

/* Card Styling (Glassmorphism) */
.card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.stat-info .value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

/* Stat color variations */
.stat-card.total {
    border-left: 4px solid var(--info);
}
.stat-card.total .stat-icon {
    background-color: var(--info-bg);
    color: var(--info);
}

.stat-card.completed {
    border-left: 4px solid var(--success);
}
.stat-card.completed .stat-icon {
    background-color: var(--success-bg);
    color: var(--success);
}

.stat-card.pending {
    border-left: 4px solid var(--warning);
}
.stat-card.pending .stat-icon {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.stat-card.failed {
    border-left: 4px solid var(--error);
}
.stat-card.failed .stat-icon {
    background-color: var(--error-bg);
    color: var(--error);
}

/* Progress Card styling */
.progress-card {
    padding: 24px 32px;
}

.progress-bar-wrapper {
    width: 100%;
    margin-top: 16px;
}

.progress-bar {
    height: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.progress-fill {
    height: 100%;
    transition: width var(--transition-smooth);
}

.fill-success {
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.fill-error {
    background-color: var(--error);
}

.percentage {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

/* Control & Log splits */
.dashboard-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: stretch;
}

.control-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.control-group {
    margin-bottom: 24px;
}

.control-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.number-input-wrapper {
    position: relative;
}

.number-input-wrapper input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: white;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-mono);
    outline: none;
    transition: var(--transition-fast);
}

.number-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.input-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.control-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Console Logs Card */
.logs-card {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.console-box {
    flex-grow: 1;
    background-color: #05070f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.console-line {
    border-left: 2px solid transparent;
    padding-left: 8px;
    animation: lineFadeIn 0.2s ease-out;
}

@keyframes lineFadeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

.console-line.info {
    color: #38bdf8;
    border-color: var(--info);
}

.console-line.success {
    color: #34d399;
    border-color: var(--success);
}

.console-line.warning {
    color: #fbbf24;
    border-color: var(--warning);
}

.console-line.error {
    color: #f87171;
    border-color: var(--error);
}

.console-line.system {
    color: var(--text-muted);
}

.console-time {
    color: #475569;
    margin-right: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Button Styles */
.btn {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-text-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
    padding: 6px;
    border-radius: 50%;
}

.btn-text-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background-color: var(--error-bg);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: var(--error);
    color: white;
}

/* Product Database Filtering & Grid */
.filter-card {
    padding: 24px;
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.search-box {
    position: relative;
    flex-grow: 1;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: white;
    padding: 12px 16px 12px 48px;
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.filter-selects select {
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 12px 20px;
    font-size: 14.5px;
    outline: none;
    cursor: pointer;
    min-width: 160px;
    max-width: 220px;
    transition: var(--transition-fast);
}

.filter-selects select:focus {
    border-color: var(--primary);
}

/* Product list container & grid */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card design */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.08);
}

.product-img-wrapper {
    height: 180px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    overflow: hidden;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-barcode {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
    /* Limit lines to 2 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    margin-top: auto;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-category {
    background-color: var(--info-bg);
    color: var(--info);
}

.badge-company {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-qty {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.product-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    background-color: rgba(0, 0, 0, 0.08);
}

.product-actions .btn {
    flex-grow: 1;
}

/* States on list */
.empty-state, .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14.5px;
    max-width: 400px;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

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

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.btn-page {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-page:hover:not(:disabled) {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers span {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-numbers span:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
}

.page-numbers span.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers span.dots {
    cursor: default;
    background: none;
    border: none;
}

/* Premium Form Styling */
.form-card {
    max-width: 800px;
    margin: 0 auto;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: white;
    padding: 14px 18px;
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* Modal Overlay & Modal Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 900px;
    max-width: 90%;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    color: white;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    height: 100%;
}

.modal-left {
    padding: 40px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-product-img-box {
    height: 240px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-product-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.modal-product-meta h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tag-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.parsed-details h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.details-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.details-table td:last-child {
    font-family: var(--font-mono);
    text-align: right;
    color: white;
}

.modal-right {
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-right h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.code-generator-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.barcode-render-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.render-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.canvas-wrapper {
    background-color: white;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.canvas-wrapper svg {
    max-width: 100%;
}

.canvas-wrapper canvas {
    max-width: 100%;
}

.download-btn {
    width: 100%;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0f172a;
    border: 1px solid var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: var(--error);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast-icon {
    font-size: 18px;
    color: var(--success);
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
}
