@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* Tela de Login */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-header {
  margin-bottom: 30px;
}

.login-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 15px;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #666;
  font-size: 1rem;
}

.login-form {
  margin-bottom: 30px;
}

.login-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.login-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.login-form .form-input:focus {
  outline: none;
  border-color: #667eea;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
}

.login-info p {
  margin-bottom: 5px;
}

/* Tela Principal */
.main-container {
  min-height: 100vh;
  background: #f5f7fa;
  position: relative;
}

.app-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 50px;
}

  .header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.system-status i {
  font-size: 8px;
  color: #6b7280;
  transition: all 0.3s ease;
}

.system-status.healthy i {
  color: #10b981;
  animation: pulse 2s infinite;
}

.system-status.warning i {
  color: #f59e0b;
  animation: pulse 1s infinite;
}

.system-status.error i {
  color: #ef4444;
  animation: pulse 0.5s infinite;
}

.system-status.initializing i {
  color: #3b82f6;
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

.header-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-btn:hover {
  background: #f8f9fa;
}

.sync-btn {
  background: #28a745;
  color: white;
  font-size: 12px;
  padding: 5px 12px;
}

.sync-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.menu-btn {
  color: #666;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  color: #333;
  background: #f8f9fa;
}

/* Menu lateral direito */
.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  /* Garantir que o menu seja visível */
  display: block;
}

.side-menu.open {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile i {
  font-size: 2.5rem;
  color: #667eea;
}

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

.user-info span {
  font-weight: 600;
  color: #333;
}

.user-type {
  font-size: 0.8rem;
  color: #666;
  font-weight: normal;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-menu-btn:hover {
  background: #e9ecef;
  color: #333;
}

.menu-content {
  padding: 20px;
}

.menu-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.menu-item:hover {
  background: #f8f9fa;
  transform: translateX(3px);
}

.menu-item i {
  width: 16px;
  text-align: center;
}

.logout-item {
  color: #dc3545;
  margin-top: 20px;
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
}

.logout-item:hover {
  background: #f8d7da;
  color: #721c24;
}

/* Overlay do menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Container de conteúdo */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Lista de Cadastros */
.cadastros-container {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cadastros-count {
  background: #667eea;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

/* Grid de cadastros */
.cadastros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cadastro-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ddd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cadastro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.cadastro-card.rascunho {
  border-left-color: #ffc107;
}

.cadastro-card.pronto {
  border-left-color: #28a745;
}

.cadastro-card.incompleto {
  border-left-color: #dc3545;
}

.cadastro-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.cadastro-info {
  flex: 1;
}

.cadastro-nome {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.cadastro-data {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.cadastro-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cadastro-status.rascunho {
  background: #fff3cd;
  color: #856404;
}

.cadastro-status.pronto {
  background: #d4edda;
  color: #155724;
}

.cadastro-status.incompleto {
  background: #f8d7da;
  color: #721c24;
}

.cadastro-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #666;
}

.action-btn:hover {
  background: #f8f9fa;
}

.edit-btn:hover {
  color: #007bff;
}

.delete-btn:hover {
  color: #dc3545;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

/* Botão enviar todos */
.enviar-todos-container {
  text-align: center;
  margin-top: 30px;
}

.send-all-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.send-all-btn:hover {
  transform: translateY(-2px);
}

/* Formulário */
.form-container {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #5a6268;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Seções do formulário */
.section {
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.section-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-content {
  padding: 20px;
}

/* Grid do formulário */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Grupos de formulário */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
}

.form-input.error {
  border-color: #dc3545;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #667eea;
}

/* Checkboxes e Radios */
.checkbox-group, .radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.checkbox-item:hover, .radio-item:hover {
  background: #f8f9fa;
}

.checkbox-item input, .radio-item input {
  margin: 0;
}

/* Moradores */
.morador-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #e9ecef;
}

.morador-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.morador-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.remove-morador {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s ease;
}

.remove-morador:hover {
  background: #c82333;
}

/* Botões do formulário */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover {
  transform: none;
}

/* Painel de campos faltando */
.campos-faltando-painel {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.campos-faltando-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #856404;
}

.campos-faltando-header i {
  font-size: 1.2rem;
  color: #ffc107;
}

.campos-faltando-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.campos-faltando-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.secao-campos {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #ffc107;
}

.secao-campos h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secao-campos ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.secao-campos li {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 5px;
  position: relative;
}

.secao-campos li:before {
  content: '•';
  color: #ffc107;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.fechar-painel-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #856404;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.fechar-painel-btn:hover {
  background: rgba(255, 193, 7, 0.2);
}

/* Campos faltando destacados */
.campo-faltando {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

/* Campos obrigatórios */
.campo-obrigatorio {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.campo-obrigatorio:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Campos condicionais ocultos */
.form-group[style*="display: none"] {
  display: none !important;
}

/* Transições suaves */
.form-group {
  transition: all 0.3s ease;
}

/* Indicador de campo obrigatório */
.form-label.required::after {
  content: ' *';
  color: #dc3545;
  font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    text-align: left;
    padding: 8px 15px;
  }
  
  .header-actions {
    flex-direction: row;
    gap: 8px;
  }
  
  .side-menu {
    width: 280px;
    right: -280px;
    /* Garantir que o menu seja visível em mobile */
    display: block;
  }
  
  .cadastros-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .checkbox-group, .radio-group {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .content-container {
    padding: 15px;
  }
  
  .cadastros-container, .form-container {
    padding: 20px;
  }
  
  .campos-faltando-content {
    grid-template-columns: 1fr;
  }
  
  .campos-faltando-painel {
    padding: 15px;
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 6px 12px;
  }
  
  .header-title {
    font-size: 0.9rem;
    gap: 4px;
  }
  
  .menu-btn {
    font-size: 18px;
    padding: 6px 10px;
  }
  
  .cadastro-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .cadastro-actions {
    justify-content: center;
  }
  
  .form-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .back-btn {
    align-self: flex-start;
  }
  
  .side-menu {
    width: 100%;
    right: -100%;
    /* Garantir que o menu seja visível em telas pequenas */
    display: block;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #3b82f6;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.message-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Aviso de offline */
.offline-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  z-index: 10000;
  animation: slideDown 0.3s ease;
}

.offline-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  color: #92400e;
  font-weight: 500;
  font-size: 14px;
}

.offline-content i {
  font-size: 16px;
}

.close-warning {
  background: none;
  border: none;
  color: #92400e;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.close-warning:hover {
  background: rgba(146, 64, 14, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Sistema de Modais */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px 25px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.modal-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.modal-icon.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modal-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.modal-icon.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.modal-body {
  padding: 20px 25px;
  color: #666;
  line-height: 1.6;
}

.modal-footer {
  padding: 0 25px 25px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: #666;
}

.modal-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.modal-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.modal-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast-icon {
  font-size: 18px;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  font-size: 14px;
}

.toast-message {
  color: #666;
  font-size: 13px;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #666;
}

/* Responsividade dos modais */
@media (max-width: 768px) {
  .modal {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    padding: 15px 20px 0;
  }
  
  .modal-body {
    padding: 15px 20px;
  }
  
  .modal-footer {
    padding: 0 20px 20px;
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
  }
  
  .toast-container {
    left: 20px;
    right: 20px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
} 