/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.topbar {
    background-color: #1a00bc;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .user-info img {
    width: 50px;
    height: 50px;
  }

  .user-name {
    position: absolute;
    top: 3rem;
    left: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 3rem;
  }

  .icons {
    display: flex;
    gap: 1.5rem;
  }

  .icons img {
    height: 24px;
  }

  .main-header {
    background-color: #1a00bc;
    color: white;
    padding: 1rem 1.5rem 2.5rem 1.5rem;
  }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    color: #334155;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.content {
    max-width: 64rem;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: #475569;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header p {
    max-width: 36rem;
    margin: 0 auto;
}

/* Card */
.card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.card-content {
    padding: 1rem 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem 1.5rem;
}

.card-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form */
.form-space {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.security-info {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
    gap: 0.5rem;
}

.icon-lock {
    color: #64748b;
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.button-primary {
    background-color: #1a00bc;
    color: white;
    width: 100%;
}

.button-primary:hover {
    background-color: #047857;
}

.button-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-outline {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #334155;
}

.button-outline:hover {
    background-color: #f8fafc;
}

.button-success {
    background-color: #2563eb;
    color: white;
    width: 100%;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-success:hover {
    background-color: #1d4ed8;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* Alert */
.alert {
    display: flex;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.alert-warning {
    background-color: #fef9c3;
    border: 1px solid #fde68a;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.alert-title {
    color: #b91c1c;
    margin-bottom: 0.25rem;
}

.alert-description {
    color: #991b1b;
    font-size: 0.875rem;
}

.icon-alert-circle {
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Grid */
.grid-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

.info-box {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: white;
}

.info-title {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.info-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning {
    color: #ca8a04;
}

.danger {
    color: #dc2626;
}

.info-score {
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score {
    font-size: 1.5rem;
    font-weight: 700;
}

.score-low {
    color: #dc2626;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.score-note {
    color: #64748b;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Divida Box */
.divida-box {
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    background-color: #fff1f2;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.divida-header {
    background-color: #fee2e2;
    padding: 1rem;
    border-bottom: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.divida-header h3 {
    color: #b91c1c;
    font-size: 1rem;
    font-weight: 600;
}

.divida-data {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.divida-content {
    padding: 1rem;
}

.divida-info {
    margin-bottom: 1rem;
}

.divida-tipo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.divida-detalhes {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.divida-credor {
    font-size: 0.875rem;
    color: #475569;
}

.divida-valor {
    font-weight: 700;
    font-size: 1.125rem;
    color: #dc2626;
}

/* Upsell Card */
.card-upsell {
    border-color: #a7f3d0;
    background: linear-gradient(to right, #ecfdf5, #f0fdfa);
}

.card-header-upsell {
    border-bottom: 1px solid #a7f3d0;
}

.header-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-shield {
    color: #1a00bc;
}

.upsell-title {
    color: #065f46;
}

.upsell-description {
    color: #047857;
}

.upsell-content {
    margin-top: 0.5rem;
}

.upsell-text {
    color: #334155;
    margin-bottom: 1rem;
}

.benefits-list {
    display: grid;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.icon-check {
    color: #1a00bc;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.icon-chevron {
    margin-left: 0.25rem;
}

.icon-unlock {
    margin-left: 0.5rem;
}

.icon-x-circle {
    color: #dc2626;
}

.payment-note {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1rem;
}

/* Nova Consulta */
.nova-consulta {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Resultado Container */
.resultado-container {
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 1rem;
}

.footer-note {
    margin-top: 0.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f0fdfa;
}

.modal-header h2 {
    color: #065f46;
    margin-top: 0.75rem;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 0.75rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.icon-check-circle {
    color: #1a00bc;
    margin: 0 auto;
}