.filter-card {
  border: none;
  border-radius: 16px;
  background: var(--card-bg);
  padding: 2px;
  margin-bottom: 2rem;
}

.filter-card-inner {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 2rem;
}

.filter-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label i {
  color: var(--sistema-theme-primary);
  font-size: 1rem;
}

.form-control,
.form-select {
  border: 2px solid #6a6c6e;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.btn-search {
  background-color: var(--sistema-theme-primary);
  color: var(--sistema-theme-body-bg);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #4a5568;
  background: white;
  transition: all 0.3s ease;
}

.btn-clear:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
  transform: translateY(-2px);
  color: #2d3748;
}

.filter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-title i {
  color: var(--sistema-theme-primary);
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .filter-card-inner {
    padding: 1.5rem;
  }

  .filter-title {
    font-size: 1.25rem;
  }
}

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

.input-icon-filter i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  pointer-events: none;
}

.input-icon-filter .form-control {
  padding-left: 2.75rem;
}

.badge-filter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.sim-result-placeholder {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  border-radius: 24px;
  color: white;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 722px;
  animation: fadeInUp 0.6s ease-out;
}

.sim-result-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  animation: pulse 8s ease-in-out infinite;
}

.sim-placeholder-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

input#term {
  border: 2px solid #346df373;
  border-radius: 12px 0px 0px 12px;
  color: #3874ff;
  font-weight: 600;
  padding: 0.875rem 1rem;
}

/* ============================================
   FORM CARD STYLES
   ============================================ */

.sim-card {
  border: none;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.sim-card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.sim-card .card-body {
  padding: 2.5rem;
}

.card-body {
  min-height: 460px;
}

/* ============================================
   CARD HEADER
   ============================================ */

.sim-card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #346df373;
}

.sim-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-card-title i {
  color: #667eea;
  font-size: 1.5rem;
}

.sim-card-description {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.sim-form-group {
  position: relative;
}

.sim-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-label i {
  color: #667eea;
  font-size: 1rem;
}

/* ============================================
   INPUT STYLES
   ============================================ */

.sim-input {
  border: 2px solid #346df373;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sim-input:focus {
  border-color: #3874ff;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  outline: none;
}

.sim-input::placeholder {
  color: #adb5bd;
}

.sim-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ============================================
   INPUT GROUP
   ============================================ */

.sim-input-group {
  position: relative;
}

.sim-input-prefix {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  padding: 0.875rem 1rem;
}

.sim-input-group .sim-input {
  border-left: none;
  border-radius: 0 12px 12px 0;
}

.sim-years-display {
  border: 2px solid #346df373;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #3874ff;
  font-weight: 600;
  padding: 0.875rem 1rem;
}

/* ============================================
   SELECT STYLES
   ============================================ */

.sim-input.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 3rem;
}

/* ============================================
   WARNING MESSAGE
   ============================================ */

.sim-warning {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.sim-warning::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.sim-btn {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  border: none;
  color: white;
  padding: 1.125rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.sim-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.sim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
  color: white;
}

.sim-btn:hover::before {
  left: 100%;
}

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

.sim-btn i {
  font-size: 1.25rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.sim-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .sim-card .card-body {
    padding: 2rem 1.5rem;
  }

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

  .sim-card-title {
    font-size: 1.5rem;
  }

  .sim-card-title i {
    font-size: 1.25rem;
  }

  .sim-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .sim-card .card-body {
    padding: 1.5rem 1rem;
  }

  .sim-card-title {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .sim-input,
  .sim-input-prefix,
  .sim-years-display {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .sim-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .sim-card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .sim-btn {
    display: none;
  }
}

/* ============================================
   PLACEHOLDER ICON
   ============================================ */

.sim-placeholder-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.sim-placeholder-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.sim-placeholder-icon i {
  font-size: 3.5rem;
  color: #ffffff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.sim-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 70%);
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
  z-index: 1;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.sim-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sim-feature-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: default;
}

.sim-feature-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sim-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-feature-icon i {
  font-size: 1.5rem;
}

.sim-feature-content {
  text-align: left;
  flex: 1;
}

.sim-feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sim-feature-content p {
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   PLACEHOLDER FOOTER
   ============================================ */

.sim-placeholder-footer {
  margin-top: 2rem;
}

.sim-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
}

.sim-info-badge i {
  font-size: 1.1rem;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
.sim-results {
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.sim-container .row {
  align-items: flex-start !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .sim-result-placeholder {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .sim-placeholder-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  .sim-placeholder-icon i {
    font-size: 3rem;
  }

  .sim-icon-glow {
    width: 120px;
    height: 120px;
  }

  .sim-placeholder-title {
    font-size: 1.75rem;
  }

  .sim-placeholder-subtitle {
    font-size: 1rem;
  }

  .sim-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sim-results {
    padding: 1.5rem;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  .sim-result-placeholder {
    padding: 1.5rem 1rem;
  }

  .sim-placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .sim-placeholder-icon i {
    font-size: 2.5rem;
  }

  .sim-placeholder-title {
    font-size: 1.5rem;
  }

  .sim-placeholder-subtitle {
    font-size: 0.95rem;
  }

  .sim-feature-card {
    padding: 1.25rem;
  }

  .sim-feature-icon {
    width: 40px;
    height: 40px;
  }

  .sim-feature-icon i {
    font-size: 1.25rem;
  }

  .sim-info-badge {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .sim-result-placeholder {
    box-shadow: none;
    border: 1px solid var(--sim-border);
  }

  .sim-results {
    box-shadow: none;
    border: 1px solid var(--sim-border);
  }
}

/* ============================================
   MODERN RESULTS DESIGN
   ============================================ */

.sim-results {
  padding: 2.5rem;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

.result-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.result-card .card-header {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  color: white;
  padding: 1.75rem;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-card .card-header h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.result-card .card-header small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.result-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.result-card .card-body {
  padding: 2rem;
}

/* ============================================
   RESULT DATA GRID
   ============================================ */

.result-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.result-data-item {
  border-radius: 16px;
  padding: 1.25rem;
  border: 2px solid #346df373;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-data-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3874ff 0%, #1e40af 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-data-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-data-item:hover::before {
  opacity: 1;
}

.result-data-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-data-label i {
  font-size: 0.9rem;
  color: #3874ff;
}

.result-data-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.result-data-value.highlight {
  font-size: 1.5rem;
  color: #1e40af;
}

.result-data-value.total {
  font-size: 1.75rem;
  background: #1e40af;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SYSTEM BADGE
   ============================================ */

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.system-badge i {
  font-size: 1rem;
}

/* ============================================
   INSTALLMENT HIGHLIGHT
   ============================================ */

.installment-highlight {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid #667eea;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.installment-highlight-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.installment-highlight-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.installment-highlight-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* ============================================
   DOWNLOAD BUTTON
   ============================================ */

.btn-download-pdf {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  color: white;
}

.btn-download-pdf i {
  font-size: 1.25rem;
}

/* ============================================
   RATE COMPARISON
   ============================================ */

.rate-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rate-item {
  border: 2px solid #346df373;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.rate-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.rate-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.rate-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-data-item {
  animation: slideInRight 0.5s ease-out;
  animation-fill-mode: both;
}

.result-data-item:nth-child(1) {
  animation-delay: 0.1s;
}

.result-data-item:nth-child(2) {
  animation-delay: 0.15s;
}

.result-data-item:nth-child(3) {
  animation-delay: 0.2s;
}

.result-data-item:nth-child(4) {
  animation-delay: 0.25s;
}

.result-data-item:nth-child(5) {
  animation-delay: 0.3s;
}

.result-data-item:nth-child(6) {
  animation-delay: 0.35s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .sim-results {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .result-card .card-header {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .result-card .card-body {
    padding: 1.5rem;
  }

  .result-data-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .installment-highlight-value {
    font-size: 2rem;
  }

  .rate-comparison {
    grid-template-columns: 1fr;
  }

  .btn-download-pdf {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .result-card .card-header h6 {
    font-size: 1.1rem;
  }

  .result-data-value {
    font-size: 1.1rem;
  }

  .result-data-value.highlight {
    font-size: 1.25rem;
  }

  .result-data-value.total {
    font-size: 1.5rem;
  }

  .installment-highlight-value {
    font-size: 1.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .sim-results {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .result-card {
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .btn-download-pdf {
    display: none;
  }
}

/* ============================================
   MODAL MODERNIZADO - DADOS DO USUÁRIO
   ============================================ */

/* Backdrop do Modal */
#userDataModal .modal-backdrop {
  background-color: rgba(102, 126, 234, 0.1);
}

/* Container do Modal */
#userDataModal .modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

#userDataModal .modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header do Modal */
#userDataModal .modal-header {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  color: white;
  padding: 2rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#userDataModal .modal-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%);
  animation: headerPulse 3s ease-in-out infinite;
}

@keyframes headerPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

#userDataModal .modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

#userDataModal .modal-title i {
  font-size: 1.75rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

#userDataModal .btn-close {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

#userDataModal .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body do Modal */
#userDataModal .modal-body {
  padding: 2rem;
}

/* Badge de Segurança */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.security-badge i {
  font-size: 1rem;
}

/* Form Groups */
#userDataModal .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

#userDataModal .form-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#userDataModal .form-label i {
  color: #667eea;
  font-size: 1rem;
}

/* Input Container */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 1;
}

#userDataModal .form-control {
  padding: 14px 16px 14px 16px;
  border: 2px solid #346df373;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#userDataModal .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
}

#userDataModal .form-control:focus+i,
.input-with-icon:focus-within i {
  color: #667eea;
  transform: translateY(-50%) scale(1.1);
}

/* Estados de Validação */
#userDataModal .form-control.is-valid {
  border-color: #48bb78;
  background-image: none;
}

#userDataModal .form-control.is-invalid {
  border-color: #f56565;
  background-image: none;
}

#userDataModal .form-control.is-valid:focus {
  border-color: #48bb78;
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

#userDataModal .form-control.is-invalid:focus {
  border-color: #f56565;
  box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

/* Footer do Modal */
#userDataModal .modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  gap: 12px;
  justify-content: center;
}

/* Botões */
#userDataModal .btn {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#userDataModal .btn-secondary {
  background-color: #61676e;
  color: white;
}

#userDataModal .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#userDataModal .btn-primary {
  background: linear-gradient(135deg, #3874ff 0%, #1e40af 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

#userDataModal .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s ease;
}

#userDataModal .btn-primary:hover::before {
  left: 100%;
}

#userDataModal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#userDataModal .btn-primary:active {
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 576px) {
  #userDataModal .modal-dialog {
    margin: 0.5rem;
  }

  #userDataModal .modal-header,
  #userDataModal .modal-body,
  #userDataModal .modal-footer {
    padding: 1.5rem;
  }

  #userDataModal .modal-title {
    font-size: 1.25rem;
  }

  #userDataModal .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

.sim-modal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.sim-modal-checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  margin-top: 2px;
}

.sim-modal-checkbox-label {
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.kpi-dashboard {
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border-left: 4px solid #6366f1;
  height: 100%;
}

.kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kpi-card.card-blue {
  border-left-color: #6366f1;
}

.kpi-card.card-green {
  border-left-color: #10b981;
}

.kpi-card.card-orange {
  border-left-color: #f59e0b;
}

.kpi-card.card-purple {
  border-left-color: #8b5cf6;
}

.kpi-card.card-pink {
  border-left-color: #ec4899;
}

.kpi-card.card-teal {
  border-left-color: #14b8a6;
}

.kpi-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.kpi-card.card-blue .kpi-icon {
  color: #6366f1;
}

.kpi-card.card-green .kpi-icon {
  color: #10b981;
}

.kpi-card.card-orange .kpi-icon {
  color: #f59e0b;
}

.kpi-card.card-purple .kpi-icon {
  color: #8b5cf6;
}

.kpi-card.card-pink .kpi-icon {
  color: #ec4899;
}

.kpi-card.card-teal .kpi-icon {
  color: #14b8a6;
}

.kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.kpi-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}

.kpi-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .kpi-value {
    font-size: 1.5rem;
  }

  .kpi-icon {
    font-size: 1.75rem;
  }
}