/* Estilos para a página de configurações */
/* Importando componentes específicos para settings */

.settings-container {
  max-width: 960px;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.settings-section.access-general {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.settings-section-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

.settings-section-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0;
}

.settings-option {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.settings-option input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-left: 0;
}

.settings-option label {
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.access-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.access-item:last-child {
  border-bottom: none;
}

.access-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  margin-right: 1rem;
}

.access-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-info {
  flex: 1;
}

.access-name {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.access-email {
  color: #6b7280;
  font-size: 0.875rem;
}

.access-role {
  margin-left: auto;
  position: relative;
}

.access-role-select {
  appearance: none;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.875rem;
  color: #111827;
  cursor: pointer;
  min-width: 200px;
  width: 200px;
  box-sizing: border-box;
  padding-right: 25px; /* Espaço para a seta do select */
  text-overflow: clip;
  white-space: nowrap;
}

.access-role-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.user-role {
  margin-left: auto;
  margin-right: 16px;
}

.role-select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

.user-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.user-actions button:hover {
  color: #f43f5e;
}

/* Estilos para o formulário de convite */
.invite-form {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.invite-form-header {
  margin-bottom: 1rem;
}

.invite-form-title {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

.invite-form-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.invite-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invite-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.invite-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.invite-role-select {
  width: 150px;
}

.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.invite-button:hover {
  background-color: #2563eb;
}

/* Estilos para a seção de acesso geral */
.access-general {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Botões de ação */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.button-secondary {
  background-color: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.button-secondary:hover {
  background-color: #f9fafb;
  color: #374151;
}

.button-primary {
  background-color: #3b82f6;
  color: white;
  border: none;
  min-width: 100px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 14px;
}

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

/* Ícones */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
}

.icon-link:hover {
  color: #374151;
}

/* Responsividade */
@media (max-width: 768px) {
  .settings-container {
    padding: 1rem;
  }
  
  .access-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .access-avatar {
    margin-bottom: 0.5rem;
  }
  
  .access-role {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .invite-input-group {
    flex-direction: column;
  }
  
  .invite-role-select {
    width: 100%;
  }
}

/* Estilos para a seção de notificação */
.notification-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.notification-option {
  margin-bottom: 1rem;
}

.notification-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.notification-checkbox {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.notification-message-container {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

.notification-message-header {
  margin-bottom: 0.5rem;
}

.notification-message-header label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.notification-message-wrapper {
  width: 100%;
  position: relative;
}

.notification-message-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

.notification-message-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Estilos para o dropdown de acesso geral */
.access-dropdown {
  position: relative;
  width: 100%;
}

.access-dropdown .visibility-select, .access-dropdown .general-access-role-select {
  border: none;
  outline: none;
  font-size: inherit;
  border: 1px solid #ffffff;
}

.access-dropdown .visibility-select:hover, .access-dropdown .general-access-role-select:hover {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  box-sizing: border-box;
}

.access-dropdown-selected {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.access-dropdown-selected:hover {
  border-color: #d1d5db;
}

.access-dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: background-color 0.2s;
}

.access-dropdown-icon svg {
  width: 20px;
  height: 20px;
  transition: color 0.2s;
}

.section-actions .tree-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: background-color 0.2s;
}

.access-dropdown-icon.globe {
  background-color: #e5f7ed;
}

.access-dropdown-icon.globe svg {
  color: #10b981;
}

.access-dropdown-icon.lock {
  background-color: #eff6ff;
}

.access-dropdown-icon.lock svg {
  color: #3b82f6;
}

.access-dropdown-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-dropdown-title {
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.access-dropdown-description {
  font-size: 0.875rem;
  color: #6b7280;
  padding-left: 5px;
}

.access-dropdown-arrow {
  margin-left: 8px;
  transition: transform 0.2s;
}

.access-dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: none;
}

.access-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.access-option:hover {
  background-color: #f9fafb;
}

.access-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.access-option-icon.globe {
  background-color: #e5f7ed;
}

.access-option-icon.globe svg {
  color: #10b981;
}

.access-option-icon.lock {
  background-color: #eff6ff;
}

.access-option-icon.lock svg {
  color: #3b82f6;
}

.access-option-content {
  flex: 1;
}

.access-option-title {
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.access-option-description {
  font-size: 0.875rem;
  color: #6b7280;
}

.access-option.selected {
  background-color: #f0f9ff;
}

/* Estilo para selects com opção owner "desabilitada" */
.has-disabled-owner option[value="owner"] {
  color: #ccc;
  font-style: italic;
}

/* Destaque para item com transferência pendente */
.access-item.pending-transfer {
  background-color: rgba(0, 123, 255, 0.05);
  border-left: 3px solid #007bff;
  padding-left: 10px;
  transition: all 0.3s ease;
}

/* Estilo para destacar item com transferência pendente */
.pending-transfer .access-role-select {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.text-link {
  color: #6B7280;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.75rem 0;
}

.text-link:hover {
  color: #374151;
  text-decoration: none;
}

.section-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}
