  
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #000000;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 16px;
        }

        .container {
            background-color: #141414;
            border-radius: 12px;
            padding: 28px;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        }

        h1 {
            color: #ffffff;
            text-align: center;
            margin-bottom: 20px;
            font-weight: 600;
            font-size: 24px;
        }

        .input-group {
            margin-bottom: 14px;
        }

        label {
            display: block;
            color: #a0a0a0;
            margin-bottom: 5px;
            font-size: 12px;
            font-weight: 400;
        }

        input[type="url"] {
            width: 100%;
            padding: 12px 14px;
            border: 2px solid #2a2a2a;
            border-radius: 8px;
            background-color: #1e1e1e;
            color: #ffffff;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        input[type="url"]:focus {
            outline: none;
            border-color: #00b4d8;
        }

        input[type="url"]::placeholder {
            color: #555555;
            font-size: 13px;
        }

        .custom-panel {
            background-color: #1a1a1a;
            border-radius: 8px;
            padding: 14px;
            margin-bottom: 14px;
            border: 1px solid #2a2a2a;
        }

        .panel-title {
            color: #ffffff;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .panel-title svg {
            width: 14px;
            height: 14px;
        }

        .color-item label {
            font-size: 11px;
            margin-bottom: 5px;
        }

        .color-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: #1e1e1e;
            border: 2px solid #2a2a2a;
            border-radius: 6px;
            padding: 6px 10px;
        }

        input[type="color"] {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background: none;
            padding: 0;
        }

        input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        input[type="color"]::-webkit-color-swatch {
            border: 2px solid #444;
            border-radius: 5px;
        }

        .color-hex {
            color: #cccccc;
            font-size: 12px;
            font-family: 'Courier New', monospace;
        }

        .color-error {
            color: #e74c3c;
            font-size: 11px;
            margin-top: 5px;
            display: none;
            align-items: center;
            gap: 5px;
        }

        .color-error.show {
            display: flex;
        }

        .color-error svg {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
        }

        .qr-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
            margin-bottom: 14px;
            background-color: #1a1a1a;
            border-radius: 10px;
            padding: 20px;
            position: relative;
            border: 1px solid #2a2a2a;
            transition: border-color 0.3s ease;
        }

        .qr-wrapper.active {
            border-color: #00b4d8;
        }

        .qr-placeholder {
            text-align: center;
            color: #555555;
        }

        .qr-placeholder svg {
            width: 56px;
            height: 56px;
            margin-bottom: 10px;
            opacity: 0.4;
        }

        .qr-placeholder p {
            font-size: 13px;
            font-weight: 300;
        }

        #qrcode {
            display: none;
        }

        #qrcode canvas, #qrcode img {
            display: block;
            border-radius: 6px;
            max-width: 100%;
        }

        .url-display {
            text-align: center;
            color: #777777;
            font-size: 11px;
            word-break: break-all;
            min-height: 16px;
            margin-bottom: 12px;
            padding: 0 4px;
        }

        .download-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #48cae4 100%);
            color: #ffffff;
            font-family: 'Poppins', sans-serif;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            opacity: 0.5;
            pointer-events: none;
        }

        .download-btn.active {
            opacity: 1;
            pointer-events: all;
        }

        .download-btn:hover.active {
            background: linear-gradient(135deg, #023e8a 0%, #0077b6 50%, #00b4d8 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
        }

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

        .download-btn svg {
            width: 18px;
            height: 18px;
        }

        .history-section {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid #2a2a2a;
        }

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

        .history-title {
            color: #ffffff;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .history-title svg {
            width: 14px;
            height: 14px;
        }

        .clear-btn {
            color: #e74c3c;
            font-size: 11px;
            cursor: pointer;
            background: none;
            border: none;
            font-family: 'Poppins', sans-serif;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .clear-btn:hover {
            opacity: 1;
            text-decoration: underline;
        }

        .history-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .history-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: #1a1a1a;
            border: 1px solid #2a2a2a;
            border-radius: 6px;
            padding: 8px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .history-item:hover {
            background-color: #222222;
            border-color: #00b4d8;
            transform: translateX(3px);
        }

        .history-qr {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            background-color: #ffffff;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .history-qr img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .history-info {
            flex: 1;
            min-width: 0;
        }

        .history-url {
            color: #cccccc;
            font-size: 11px;
            word-break: break-all;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
        }

        .history-date {
            color: #555555;
            font-size: 10px;
        }

        .history-empty {
            color: #444444;
            font-size: 12px;
            text-align: center;
            padding: 12px;
            font-style: italic;
        }

        .footer {
            margin-top: 18px;
            padding-top: 12px;
            border-top: 1px solid #2a2a2a;
            text-align: center;
        }

        .footer-text {
            color: #777777;
            font-size: 11px;
            font-weight: 300;
            margin-bottom: 4px;
        }

        .footer-link {
            color: #00b4d8;
            text-decoration: none;
            font-weight: 500;
            font-size: 12px;
            transition: color 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .footer-link:hover {
            color: #48cae4;
            text-decoration: underline;
        }

        .footer-link svg {
            width: 14px;
            height: 14px;
        }

        .footer-name {
            color: #aaaaaa;
            font-weight: 500;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .qr-appear {
            animation: fadeIn 0.4s ease forwards;
        }

        /* ==================== RESPONSIVO: TELAS GRANDES ==================== */
        @media (min-width: 768px) {
            body {
                padding: 40px 20px;
            }

            .container {
                padding: 40px;
                max-width: 480px;
            }

            h1 {
                font-size: 28px;
                margin-bottom: 28px;
            }

            .input-group {
                margin-bottom: 18px;
            }

            input[type="url"] {
                padding: 14px 16px;
                font-size: 15px;
            }

            .custom-panel {
                padding: 18px;
                margin-bottom: 18px;
            }

            .qr-wrapper {
                min-height: 240px;
                padding: 24px;
                margin-bottom: 18px;
            }

            .qr-placeholder svg {
                width: 72px;
                height: 72px;
            }

            .download-btn {
                padding: 16px;
                font-size: 16px;
            }

            .history-section {
                margin-top: 24px;
                padding-top: 18px;
            }

            .history-item {
                padding: 10px 12px;
            }

            .history-qr {
                width: 44px;
                height: 44px;
            }

            .footer {
                margin-top: 24px;
                padding-top: 16px;
            }

            .footer-text {
                font-size: 12px;
            }

            .footer-link {
                font-size: 13px;
            }
        }

        /* ==================== RESPONSIVO: CELULARES PEQUENOS ==================== */
        @media (max-width: 380px) {
            body {
                padding: 8px;
            }

            .container {
                padding: 18px;
                border-radius: 10px;
            }

            h1 {
                font-size: 20px;
                margin-bottom: 14px;
            }

            .qr-wrapper {
                min-height: 160px;
                padding: 14px;
            }

            .qr-placeholder svg {
                width: 44px;
                height: 44px;
            }

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