:root { --primary: #4f46e5; --primary-dark: #4338ca; --success: #22c55e; --warning: #eab308; --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-700: #374151; --gray-800: #1f2937; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); min-height: 100vh; padding: 2rem; color: var(--gray-800); } .container { max-width: 800px; margin: 0 auto; } .header { text-align: center; margin-bottom: 2.5rem; } .header h1 { font-size: 2.25rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.75rem; } .header p { color: var(--gray-700); font-size: 1.125rem; } .card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); margin-bottom: 1.5rem; transition: all 0.3s ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); } .input-group { margin-bottom: 1.5rem; } .input-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; } .input-header i { font-size: 1.5rem; color: var(--primary); } .input-header label { font-weight: 600; color: var(--gray-700); font-size: 1.125rem; } textarea { width: 100%; padding: 0.75rem; border: 2px solid var(--gray-200); border-radius: 0.75rem; font-size: 1rem; font-family: 'Inter', sans-serif; resize: vertical; transition: all 0.2s ease; } textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); } button { width: 100%; padding: 1rem; background: var(--primary); color: white; border: none; border-radius: 0.75rem; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } button:hover { background: var(--primary-dark); } button i { font-size: 1.25rem; } .result-card { display: none; animation: slideIn 0.3s ease-out; } .result-card.active { display: block; } .percentage { text-align: center; margin-bottom: 1.5rem; } .percentage-circle { width: 150px; height: 150px; margin: 0 auto; position: relative; background: conic-gradient(var(--primary) var(--percentage), var(--gray-100) 0); border-radius: 50%; display: flex; align-items: center; justify-content: center; } .percentage-circle::before { content: ''; position: absolute; width: 110px; height: 110px; background: white; border-radius: 50%; } .percentage-value { position: relative; font-size: 2rem; font-weight: 700; color: var(--primary); } .result-section { background: var(--gray-50); border-radius: 0.75rem; padding: 1rem; margin-bottom: 1rem; } .result-section h3 { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; } .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; } .tag { background: white; padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.875rem; border: 1px solid var(--gray-200); } /* Popup Geral */ .popup-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1000; animation: fadeIn 0.3s ease-out; } .popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 2rem; border-radius: 1rem; max-width: 90%; width: 400px; text-align: center; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); animation: popIn 0.3s ease-out; } .popup h2 { color: var(--gray-800); font-size: 1.5rem; margin-bottom: 1rem; } .popup p { color: var(--gray-700); margin-bottom: 1.5rem; line-height: 1.5; } .popup-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } .popup-button { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .popup-button.primary { background: var(--primary); color: white; border: none; } .popup-button.primary:hover { background: var(--primary-dark); } .popup-button.secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); } .popup-button.secondary:hover { background: var(--gray-200); } /* New styles for loading spinner */ .loading-spinner { display: none; width: 30px; height: 30px; border: 3px solid var(--gray-200); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s linear infinite; margin: 0 auto; } @keyframes spin { to { transform: rotate(360deg); } } /* Tutorial popup styles */ .tutorial-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 2rem; border-radius: 1rem; max-width: 90%; width: 500px; z-index: 1002; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); } .tutorial-step { display: none; text-align: center; } .tutorial-step.active { display: block; animation: fadeIn 0.3s ease-out; } .tutorial-step img { max-width: 100%; height: auto; margin-bottom: 1rem; border-radius: 0.5rem; } .tutorial-navigation { display: flex; justify-content: space-between; margin-top: 1.5rem; } .disclaimer { background: var(--gray-50); border-radius: 0.75rem; padding: 1rem; margin-top: 1.5rem; font-size: 0.875rem; color: var(--gray-700); border: 1px solid var(--gray-200); } /* Popup para Token */ #popupOverlayToken { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1001; /* um nível acima do outro popup */ animation: fadeIn 0.3s ease-out; } #popupToken { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; padding: 2rem; border-radius: 1rem; max-width: 90%; width: 400px; text-align: center; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); animation: popIn 0.3s ease-out; max-height: 80vh; overflow-y: auto; } #popupToken h2 { color: var(--gray-800); font-size: 1.5rem; margin-bottom: 1rem; } #popupToken p { color: var(--gray-700); margin-bottom: 1rem; line-height: 1.5; } #tokenInput { width: 100%; padding: 0.75rem; margin-bottom: 1rem; border: 2px solid var(--gray-200); border-radius: 0.75rem; font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.2s ease; } #tokenInput:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); } /* Botão "X" para fechar popup do Token */ .close-token-popup { position: fixed; top: 1px; width: 10px; height: 10px; right: 0px; font-size: 1.2rem; color: var(--gray-700); background: transparent; border: none; cursor: pointer; } .close-token-popup:hover { color: var(--primary-dark); } /* Animações */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes popIn { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } } @keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 640px) { body { padding: 1rem; } .header h1 { font-size: 1.75rem; } .card { padding: 1rem; } }