:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --blue-light: #8baff1;
    --blue-button: #8baff1;
    --green: #10b981;
    --green-light: #d1fae5;
    --dark-bg: #0b375b;
    --bg-color: #eef2f6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: center; /* Centraliza a logo */
    align-items: center;
    padding: 16px 24px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.logo {
    height: 32px;
}

.btn-close {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.btn-close:hover {
    background: #f1f5f9;
}

/* Main Container */
.app-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Steps Transition */
.step-container {
    width: 100%;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step-container.active {
    display: block;
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.card.bg-transparent {
    background: transparent;
    padding: 0;
}

/* Typography */
.text-center { text-align: center; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1.2;
}

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

/* Step Badge */
.step-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-bg);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 16px;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px #e0f2fe;
}

input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

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

.input-icon-wrapper input {
    padding-right: 48px;
    border-color: var(--border);
}

.input-icon-wrapper input:focus {
    border-color: var(--primary);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:not(:disabled):hover {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.btn-green {
    background-color: var(--green);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-green:hover {
    background-color: #059669;
}

/* Security List */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.security-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Step 2 - Loading Spinners */
.loading-state {
    padding: 40px 0;
}

.spinner-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.spinner-circle.green-bg {
    background-color: var(--green);
    box-shadow: 0 0 0 15px var(--green-light);
    animation: pulse 2s infinite;
}

.spinner-circle.light-bg {
    background-color: var(--green-light);
    box-shadow: none;
}

.spinner-circle.blue-outline {
    background-color: transparent;
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 10px #e0f2fe;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Step 3 - Progress List */
.progress-list {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
}

.progress-card {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.progress-card:last-child {
    margin-bottom: 0;
}

.progress-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-icon.green {
    background-color: var(--green);
}

.progress-icon.blue {
    background-color: var(--primary);
}

.progress-icon.spinner-border {
    border: 3px solid var(--primary);
    border-top-color: transparent;
    background: transparent;
    animation: spin 1s linear infinite;
}

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

.progress-content {
    flex: 1;
}

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

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-text.active {
    color: var(--dark-bg);
}

.progress-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
}

.badge-blue {
    background-color: #e0f2fe;
    color: var(--primary);
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.progress-bar-container {
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 2px;
}

.green-bar {
    background-color: var(--green);
}

.blue-bar {
    background-color: var(--primary);
}

.loading-bar {
    width: 50%;
    animation: loadingBar 2s infinite ease-in-out;
    transform-origin: left;
}

@keyframes loadingBar {
    0% { width: 0%; transform: translateX(0); }
    50% { width: 50%; transform: translateX(100%); }
    100% { width: 0%; transform: translateX(200%); }
}

.secure-connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-top: 24px;
}

.dot.green {
    width: 8px;
    height: 8px;
    background-color: var(--green);
    border-radius: 50%;
}

/* Step 4 - Data List */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--green-light);
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
}

.data-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.data-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.data-info label {
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 2px;
}

.data-info span {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-bg);
}

.check {
    color: var(--green);
}

.form-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 16px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 24px;
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
    margin-top: auto;
}
