/* QR Generator Styles */

/* Prevent White Flash on Load */
html {
    background-color: #0f172a;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #0f172a;
    min-height: 100vh;
}

.dark {
    color-scheme: dark;
}

/* Navigation Header - Dark by Default to Prevent Flash */
.tool-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #818cf8;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-home:hover {
    background: rgba(129, 140, 248, 0.2);
    transform: translateX(-2px);
}

.tool-header-logo {
    height: 32px;
    width: auto;
}

/* Main Content Adjustment */
#root {
    padding-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-header {
        padding: 10px 15px;
    }

    .back-home {
        font-size: 13px;
        padding: 6px 12px;
    }

    .tool-header-logo {
        height: 28px;
    }

    #root {
        padding-top: 56px;
    }
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.dark .loading-indicator {
    background: rgba(31, 41, 55, 0.95);
}

.loading-indicator.show {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.dark .loading-spinner {
    border-color: #374151;
    border-top-color: #818cf8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.dark .loading-text {
    color: #9ca3af;
}
