/* Arquivo CSS com Tailwind compilado */ 

/* Design System - Movimenta */

:root {
  /* Cores principais */
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  --primary-300: #d8b4fe;
  --primary-400: #c084fc;
  --primary-500: #a855f7;
  --primary-600: #9333ea;
  --primary-700: #7c3aed;
  --primary-800: #6b21a8;
  --primary-900: #581c87;
  
  /* Cores neutras */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Cores de estado */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Bordas */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Transições */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Links */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-700);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: white;
  border-color: var(--primary-600);
  box-shadow: 0 2px 4px rgba(147, 51, 234, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(147, 51, 234, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-success {
  background-color: var(--success-500);
  color: white;
  border-color: var(--success-500);
}

.btn-success:hover:not(:disabled) {
  background-color: var(--success-600);
  border-color: var(--success-600);
}

.btn-danger {
  background-color: var(--error-500);
  color: white;
  border-color: var(--error-500);
}

.btn-danger:hover:not(:disabled) {
  background-color: var(--error-600);
  border-color: var(--error-600);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Formulários */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: var(--transition);
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* Tabelas */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.badge-success {
  background-color: var(--success-50);
  color: var(--success-600);
}

.badge-warning {
  background-color: var(--warning-50);
  color: var(--warning-600);
}

.badge-danger {
  background-color: var(--error-50);
  color: var(--error-600);
}

/* Utilitários */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsividade */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Loading */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-radius: 50%;
  border-top-color: var(--primary-600);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alertas */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--success-50);
  border-color: var(--success-200);
  color: var(--success-700);
}

.alert-warning {
  background-color: var(--warning-50);
  border-color: var(--warning-200);
  color: var(--warning-700);
}

.alert-error {
  background-color: var(--error-50);
  border-color: var(--error-200);
  color: var(--error-700);
}

.alert-info {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-right: 1px solid var(--gray-200);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0.125rem 0;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(2px);
}

.sidebar-link.active {
  background-color: var(--primary-100);
  color: var(--primary-700);
  border-left: 3px solid var(--primary-600);
  padding-left: calc(1rem - 3px);
}

/* Espaço para o conteúdo ao lado do menu */
@media (min-width: 1024px) {
  main.pl-64 {
    padding-left: 16rem !important;
  }
}

/* Responsividade: sidebar recolhível (básico) */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  main.pl-64 {
    padding-left: 0;
  }
  
  .topbar {
    left: 0;
  }
}

/* Melhorias para mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .card {
    border-radius: var(--radius);
  }
}

/* Topbar melhorada */
.topbar {
  background: linear-gradient(90deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Container responsivo */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Estilos específicos para o perfil */
.profile-photo-container {
  @apply relative inline-block;
}

.profile-photo {
  @apply w-32 h-32 rounded-full bg-gray-100 flex items-center justify-center overflow-hidden border-4 border-gray-200;
}

.profile-photo img {
  @apply w-full h-full object-cover rounded-full;
}

.profile-photo-upload {
  @apply absolute bottom-2 right-2 bg-blue-600 text-white rounded-full p-2 cursor-pointer shadow-lg hover:bg-blue-700 transition-colors duration-200;
}

.profile-info-grid {
  @apply grid grid-cols-1 md:grid-cols-2 gap-4;
}

.profile-info-item {
  @apply flex items-center justify-between py-2 border-b border-gray-100 last:border-b-0;
}

.profile-info-label {
  @apply font-medium text-gray-700;
}

.profile-info-value {
  @apply text-gray-900;
}

/* Estados de edição */
.edit-mode .form-input:not(:disabled) {
  @apply bg-white;
}

.edit-mode .profile-photo-upload {
  @apply block;
}

.view-mode .profile-photo-upload {
  @apply hidden;
}

/* Validação visual */
.form-input:invalid {
  @apply border-red-500;
}

.form-input:valid {
  @apply border-green-500;
}

/* Tooltips */
.tooltip {
  @apply relative;
}

.tooltip:hover .tooltip-text {
  @apply visible opacity-100;
}

.tooltip-text {
  @apply invisible opacity-0 absolute z-10 px-2 py-1 text-xs text-white bg-gray-900 rounded shadow-lg transition-opacity duration-300;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-text::after {
  content: "";
  @apply absolute top-full left-1/2 transform -translate-x-1/2;
  border: 5px solid transparent;
  border-top-color: #111827;
}

/* Melhorias para acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible para melhor acessibilidade */
.focus-visible:focus {
  @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

/* Estados de hover melhorados */
.hover-lift {
  @apply transition-transform duration-200;
}

.hover-lift:hover {
  @apply transform -translate-y-1 shadow-lg;
}

/* Gradientes sutis */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sombras personalizadas */
.shadow-soft {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Bordas personalizadas */
.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

/* Estados de carregamento para botões */
.btn-loading {
  @apply relative text-transparent;
}

.btn-loading::after {
  content: "";
  @apply absolute inset-0 flex items-center justify-center;
}

.btn-loading::after {
  @apply w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* Melhorias para formulários de senha */
.password-toggle {
  @apply absolute inset-y-0 right-0 pr-3 flex items-center;
}

.password-toggle button {
  @apply text-gray-400 hover:text-gray-600 focus:outline-none focus:text-gray-600;
}

/* Estilos para mensagens de erro/sucesso específicas do perfil */
.profile-message {
  @apply mb-6 rounded-lg p-4;
}

.profile-message.success {
  @apply bg-green-50 border border-green-200;
}

.profile-message.error {
  @apply bg-red-50 border border-red-200;
}

.profile-message .icon {
  @apply flex-shrink-0;
}

.profile-message .content {
  @apply ml-3;
}

.profile-message .title {
  @apply text-sm font-medium;
}

.profile-message.success .title {
  @apply text-green-800;
}

.profile-message.error .title {
  @apply text-red-800;
}

/* Melhorias para campos de endereço */
.address-grid {
  @apply grid grid-cols-1 md:grid-cols-3 gap-4;
}

.address-field {
  @apply relative;
}

.address-field .form-input {
  @apply pr-10;
}

.address-field .cep-button {
  @apply absolute inset-y-0 right-0 pr-3 flex items-center;
}

.address-field .cep-button button {
  @apply text-blue-600 hover:text-blue-800 focus:outline-none;
}

/* Estados de validação em tempo real */
.form-input.validating {
  @apply border-yellow-500;
}

.form-input.valid {
  @apply border-green-500;
}

.form-input.invalid {
  @apply border-red-500;
}

/* Indicadores de força da senha */
.password-strength {
  @apply mt-2;
}

.password-strength-bar {
  @apply h-2 bg-gray-200 rounded-full overflow-hidden;
}

.password-strength-fill {
  @apply h-full transition-all duration-300;
}

.password-strength-fill.weak {
  @apply bg-red-500 w-1/4;
}

.password-strength-fill.fair {
  @apply bg-yellow-500 w-1/2;
}

.password-strength-fill.good {
  @apply bg-blue-500 w-3/4;
}

.password-strength-fill.strong {
  @apply bg-green-500 w-full;
}

.password-strength-text {
  @apply text-xs mt-1;
}

.password-strength-text.weak {
  @apply text-red-600;
}

.password-strength-text.fair {
  @apply text-yellow-600;
}

.password-strength-text.good {
  @apply text-blue-600;
}

.password-strength-text.strong {
  @apply text-green-600;
}

/* Formulários Padronizados */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: var(--transition);
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: #007A9C;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1);
}

.form-input:disabled {
  background-color: var(--gray-50);
  cursor: not-allowed;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: #007A9C;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  resize: both;
  min-height: 120px;
  min-width: 100%;
  max-width: 100%;
  transition: var(--transition);
  line-height: 1.5;
  background-color: white;
}

.form-textarea:focus {
  outline: none;
  border-color: #007A9C;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1);
}

.form-textarea:hover {
  border-color: #9ca3af;
}

.form-help {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-required {
  color: var(--error-500);
  font-weight: 600;
}

/* Layout de Formulário */
.form-container {
  max-width: 4rem;
  margin: 0 auto;
}

.form-section {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.form-section-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.form-section-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.25rem 0 0 0;
}

.form-section-content {
  padding: 1.5rem;
}

.form-section-divider {
  border-bottom: 1px solid var(--gray-200);
  margin: 1.5rem 0;
  padding-bottom: 1rem;
}

.form-section-title-small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
}

.form-section-title-small i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Grid de Formulário */
.form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-grid-1 {
  grid-template-columns: 1fr;
}

.form-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Botões de Formulário */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  gap: 0.5rem;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.form-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-btn:active {
  transform: translateY(0);
}

.form-btn-primary {
  background: linear-gradient(135deg, #007A9C 0%, #005a7a 100%);
  color: white;
  border-color: #007A9C;
  box-shadow: 0 2px 4px rgba(0, 122, 156, 0.3);
}

.form-btn-primary:hover {
  background: linear-gradient(135deg, #005a7a 0%, #004a66 100%);
  border-color: #005a7a;
  box-shadow: 0 4px 12px rgba(0, 122, 156, 0.4);
}

.form-btn-secondary {
  background: white;
  color: #6b7280;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-btn-secondary:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: #ef4444;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.form-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.form-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Ícones dos botões */
.form-btn i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.form-btn:hover i {
  transform: scale(1.1);
}

/* Textarea melhorado */
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  resize: both;
  min-height: 120px;
  min-width: 100%;
  max-width: 100%;
  transition: var(--transition);
  line-height: 1.5;
  background-color: white;
}

.form-textarea:focus {
  outline: none;
  border-color: #007A9C;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1);
}

.form-textarea:hover {
  border-color: #9ca3af;
}

/* Container para textarea responsivo */
.form-textarea-container {
  position: relative;
  width: 100%;
}

.form-textarea-container .form-textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Grid de formulário melhorado */
.form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-grid-1 {
  grid-template-columns: 1fr;
}

.form-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Campos de descrição em largura total */
.form-section .form-grid-1 .form-group {
  grid-column: 1 / -1;
}

.form-section .form-grid-1 .form-textarea {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

/* Mensagens de Formulário */
.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
  margin-bottom: 1.5rem;
}

.form-message-success {
  background-color: var(--success-50);
  border-color: var(--success-500);
  color: var(--success-600);
}

.form-message-error {
  background-color: var(--error-50);
  border-color: var(--error-500);
  color: var(--error-600);
}

.form-message-warning {
  background-color: var(--warning-50);
  border-color: var(--warning-500);
  color: var(--warning-600);
}

/* Ícones de Seção */
.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.section-icon-blue { color: #3b82f6; }
.section-icon-green { color: #10b981; }
.section-icon-yellow { color: #f59e0b; }
.section-icon-purple { color: #8b5cf6; }
.section-icon-red { color: #ef4444; }

/* Estilos para mensagens de erro/sucesso específicas do perfil */
.profile-message {
  @apply mb-6 rounded-lg p-4;
}

.profile-message.success {
  @apply bg-green-50 border border-green-200;
}

.profile-message.error {
  @apply bg-red-50 border border-red-200;
}

.profile-message .icon {
  @apply flex-shrink-0;
}

.profile-message .content {
  @apply ml-3;
}

.profile-message .title {
  @apply text-sm font-medium;
}

.profile-message.success .title {
  @apply text-green-800;
}

.profile-message.error .title {
  @apply text-red-800;
}

/* Grid de endereço */
.address-grid {
  @apply grid grid-cols-1 md:grid-cols-3 gap-4;
}

.address-field {
  @apply relative;
}

.address-field .form-input {
  @apply pr-10;
}

.address-field .cep-button {
  @apply absolute inset-y-0 right-0 pr-3 flex items-center;
}

.address-field .cep-button button {
  @apply text-blue-600 hover:text-blue-800 focus:outline-none;
}

/* Estados de validação */
.form-input.validating {
  @apply border-yellow-500;
}

.form-input.valid {
  @apply border-green-500;
}

.form-input.invalid {
  @apply border-red-500;
}

/* Força da senha */
.password-strength {
  @apply mt-2;
}

.password-strength-bar {
  @apply h-2 bg-gray-200 rounded-full overflow-hidden;
}

.password-strength-fill {
  @apply h-full transition-all duration-300;
}

.password-strength-fill.weak {
  @apply bg-red-500 w-1/4;
}

.password-strength-fill.fair {
  @apply bg-yellow-500 w-1/2;
}

.password-strength-fill.good {
  @apply bg-blue-500 w-3/4;
}

.password-strength-fill.strong {
  @apply bg-green-500 w-full;
}

.password-strength-text {
  @apply text-xs mt-1;
}

.password-strength-text.weak {
  @apply text-red-600;
}

.password-strength-text.fair {
  @apply text-yellow-600;
}

.password-strength-text.good {
  @apply text-blue-600;
}

.password-strength-text.strong {
  @apply text-green-600;
}

/* Estilos específicos e fortes para botões de formulário */
.form-actions .form-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.875rem 1.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
  gap: 0.5rem !important;
  min-width: 140px !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.form-actions .form-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.form-actions .form-btn:active {
  transform: translateY(0) !important;
}

.form-actions .form-btn-primary {
  background: linear-gradient(135deg, #007A9C 0%, #005a7a 100%) !important;
  color: white !important;
  border-color: #007A9C !important;
  box-shadow: 0 2px 4px rgba(0, 122, 156, 0.3) !important;
}

.form-actions .form-btn-primary:hover {
  background: linear-gradient(135deg, #005a7a 0%, #004a66 100%) !important;
  border-color: #005a7a !important;
  box-shadow: 0 4px 12px rgba(0, 122, 156, 0.4) !important;
}

.form-actions .form-btn-secondary {
  background: white !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.form-actions .form-btn-secondary:hover {
  background: #f9fafb !important;
  color: #374151 !important;
  border-color: #9ca3af !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.form-actions .form-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

.form-actions .form-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.form-actions .form-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 156, 0.1) !important;
}

.form-actions .form-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.form-actions .form-btn i {
  font-size: 1rem !important;
  transition: transform 0.2s ease !important;
}

.form-actions .form-btn:hover i {
  transform: scale(1.1) !important;
}

.form-actions .form-btn span {
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Container dos botões */
.form-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid #e5e7eb !important;
  margin-top: 2rem !important;
}

@media (min-width: 640px) {
  .form-actions {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
} 
